Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 180224 - net-im/wengophone new ebuild
Summary: net-im/wengophone new ebuild
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Lowest enhancement
Assignee: voip herd (OBSOLETE)
URL:
Whiteboard: in voip overlay, layman -a voip
Keywords:
Depends on:
Blocks:
 
Reported: 2007-05-29 14:25 UTC by Chí-Thanh Christopher Nguyễn
Modified: 2008-09-17 20:02 UTC (History)
13 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
wengophone-2.1.ebuild (wengophone-2.1.ebuild,2.58 KB, text/plain)
2007-05-29 14:25 UTC, Chí-Thanh Christopher Nguyễn
Details
wengophone-2.1.ebuild (wengophone-2.1.ebuild,2.79 KB, text/plain)
2007-06-05 23:52 UTC, Chí-Thanh Christopher Nguyễn
Details
build failure (build.log,555.49 KB, text/plain)
2007-06-07 14:21 UTC, Patrizio Bassi
Details
wengophone-2.1.1.ebuild (wengophone-2.1.1.ebuild,2.89 KB, text/plain)
2007-07-04 04:30 UTC, Chí-Thanh Christopher Nguyễn
Details
wengophone-2.1.1-newerffmpeg-patches.tar.bz2 (wengophone-2.1.1-newerffmpeg-patches.tar.bz2,3.61 KB, application/octet-stream)
2007-08-07 14:59 UTC, Roberto Castagnola
Details
ebuild working with previous patches (wengophone-2.1.1-r1.ebuild,3.13 KB, text/plain)
2007-08-17 14:08 UTC, magillos
Details
wengophone-2.1.1.ebuild (wengophone-2.1.1.ebuild,3.16 KB, text/plain)
2007-08-20 17:33 UTC, Chí-Thanh Christopher Nguyễn
Details
wengophone-2.1.1-v4l2-patches.tar.bz2 (wengophone-2.1.1-v4l2-patches.tar.bz2,7.70 KB, application/x-bzip2)
2007-08-21 11:27 UTC, Chí-Thanh Christopher Nguyễn
Details
wengophone-2.1.1.ebuild (wengophone-2.1.1.ebuild,2.61 KB, text/plain)
2007-08-21 11:32 UTC, Chí-Thanh Christopher Nguyễn
Details
wengophone-2.1.1.ebuild (wengophone-2.1.1.ebuild,2.76 KB, text/plain)
2007-08-22 15:52 UTC, bouleetbil
Details
wengophone-2.1.99.2.ebuild (wengophone-2.1.99.2.ebuild,1.21 KB, text/plain)
2007-12-01 01:34 UTC, Alex J. Ivasyuv
Details
newly created patch file (wengophone-2.1-qt-4.3.diff,846 bytes, patch)
2008-03-18 22:49 UTC, Robert A.
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Chí-Thanh Christopher Nguyễn gentoo-dev 2007-05-29 14:25:03 UTC
I have written a new ebuild for wengophone-2.1. It is loosely based on the old wengophone ebuild in the tree and attachment 112754 [details].

Issues with boost-1.33 and gcc-4.1 still exist.

Reproducible: Always

Steps to Reproduce:
Comment 1 Chí-Thanh Christopher Nguyễn gentoo-dev 2007-05-29 14:25:59 UTC
Created attachment 120619 [details]
wengophone-2.1.ebuild

TODO:

* Figure out how to respect LINGUAS
* use cmake-utils.eclass from KDE 4 overlay
* Investigate working constellations of boost and gcc
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2007-05-29 19:02:14 UTC
What exactly are you requesting here? net-voip/wengophone-bin-2.1 is already in the tree...
Comment 3 Chí-Thanh Christopher Nguyễn gentoo-dev 2007-05-29 21:04:43 UTC
(In reply to comment #2)

I am aware of wengophone-bin. That is a binary ebuild that works on i386 only (amd64 with emul-linux-x86-*). It was introduced in bug 169000 because of build issues such as boost-1.33/gcc-4.1 incompatibility (bug 125446). 

This source ebuild in contrast will obey alsa/oss/xv USE flags (possibly more in the future) and can in principle be built on other architectures, though I didn't test that yet.
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2007-05-29 21:09:14 UTC
(In reply to comment #3)
> This source ebuild in contrast will obey alsa/oss/xv USE flags (possibly more
> in the future) and can in principle be built on other architectures, though I
> didn't test that yet.

Oh, you want the from-source one? Sorry, it still miserably fails to compile. See Bug 179305 Comment #2 and others.
Comment 5 Chí-Thanh Christopher Nguyễn gentoo-dev 2007-05-29 21:19:45 UTC
It compiles and installs fine on my amd64 box using the ebuild from attachment 120619 [details]. It runs a little unstable however. I am going to test with gcc-4.2 and/or boost-1.34.0 as soon as I can get them to emerge.
Comment 6 Jakub Moc (RETIRED) gentoo-dev 2007-05-29 21:23:40 UTC
Oh, so it just crashes, wonderful. Ship it... :P

Comment 7 Andrew Novikov 2007-05-31 22:54:20 UTC
This ebuild works on one of my x86 boxes, and crashes on another one every time I try to log in:
*** glibc detected *** qtwengophone: double free or corruption (!prev): 0x08b2a040 ***
======= Backtrace: =========
/lib/libc.so.6[0xb7a8a990]
/lib/libc.so.6(__libc_free+0x89)[0xb7a8bff9]
/usr/lib/libgnutls.so.13(gnutls_deinit+0x30d)[0x4e29c7bd]
======= Memory map: ========
I haven't figured out yet why. The two boxes are nearly identical except for compiler flags (one was cloned from the other some time ago). Both have gcc-4.1 and boost 1.33.1.
As for net-voip/wengophone-bin-2.1, it is virtually useless for me as I don't have sound with it.
Comment 8 Maarten Wisse 2007-06-04 13:09:47 UTC
> As for net-voip/wengophone-bin-2.1, it is virtually useless for me as I don't
> have sound with it.
> 
Go to /opt/wengophone and delete the libasound file in there. After that, it works for me.
Comment 9 Chí-Thanh Christopher Nguyễn gentoo-dev 2007-06-05 23:52:10 UTC
Created attachment 121298 [details]
wengophone-2.1.ebuild

Updated ebuild. Changes:

* Add portaudio USE-flag to address sound issues
* Allow building with boost-1.34_pre20061214

With boost-1.34_pre20061214, wengophone runs stable so far.
Comment 10 Patrizio Bassi 2007-06-07 14:21:24 UTC
Created attachment 121410 [details]
build failure
Comment 11 Patrizio Bassi 2007-06-07 14:22:25 UTC
Portage 2.1.2.9 (default-linux/amd64/2007.0, gcc-4.1.2, glibc-2.5-r3, 2.6.21.3 x86_64)
=================================================================
System uname: 2.6.21.3 x86_64 Intel(R) Core(TM)2 CPU 6300 @ 1.86GHz
Gentoo Base System release 1.12.10
Timestamp of tree: Thu, 07 Jun 2007 12:30:01 +0000
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [disabled]
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python:     2.4.4-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r7
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17.50.0.16
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.23b
virtual/os-headers:  2.6.21
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O3 -pipe -march=nocona -mtune=nocona -fomit-frame-pointer -mmmx -msse -msse2 -msse3 -mfpmath=sse"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /etc/mail/dspam /opt/openjms/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/lib/mozilla/defaults/pref /usr/share/X11/xkb /usr/share/config /var/run/dspam"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/eselect/compiler /etc/gconf /etc/php/apache1-php5/ext-active/ /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-O3 -pipe -march=nocona -mtune=nocona -fomit-frame-pointer -mmmx -msse -msse2 -msse3 -mfpmath=sse"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages metadata-transfer parallel-fetch sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="39"
LC_ALL="it_IT.utf8"
LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--enable-new-dtags -Wl,--as-needed -Wl,--hash-style=both"
LINGUAS="it"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/mnt/Dati/Gentoo/tmp/"
PORTDIR="/mnt/Dati/Gentoo/portage/"
PORTDIR_OVERLAY="/usr/local/portage/myportage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="64bit 7zip X X509 Xaw3d a52 aac aalib accessibility ace acl acpi activefilter adns aiglx aio alsa amd amd64 amr amrr amuled ao aoss apache2 arj asf aspnet2 async atk audacious audiofile authfile automount bash-completion berkdb bidi binary-drivers bitmap-fonts bittorrent bootsplash browserplugin bzip2 cairo calendar caps cdda cddb cdio cdparanoia cdr cgi charconv chardet chroot clamav clearcase cli client codecs corba cracklib crypt cscope css ctype cups curl cvs daemon dar64 dba dbus depth32 dga dhcp dio directfb diskio divx djbfft dmi dri dvd dvdr dvdread edl encode ethereal exif expat extraengine faac faad fam fastbuild fbcon ffmpeg fftw firefox flac flash foreign-package fortran ftp gcj gd gdbm geometry ggi gif gimp gimpprint glibc-omitfp glitz glut glx gnokii gnome gnutls gphoto2 gpm graphviz gs gtk gtk2 gtkhtml guile h264 hal iconv idea idn imagemagick imap innodb ipod ipv6 irda irmc isdnlog jack java java5 javamail javascript jikes jit joystick jpeg jpeg2k junit justify kde kdeenablefinal kdehiddenvisibility kerberos kqemu lame lcd lcms ldap libcaca libclamav libg++ libgda libusb lirc live lm_sensors lua lzo mad mailwrapper matroska md5sum mdb mhash midi mikmod mime mmx mmx2 mmxext mng mono mozcalendar mozdevelop mozilla mozsvg mozxmlterm mp3 mp4 mp4live mpeg mpeg2 mpeg4 mplayer mpm-prefork msn msnextras mudflap musepack mysql mysqli mythtv nagios-dns nagios-ntp nagios-ping nagios-ssh ncurses neXt network ngui nls nntp no_wxgtk1 nobsh nopie nossp noxalan nptl nptlonly nsplugin nv nvidia oav odbc ogg openal opengl openmp openssl operanom2 pam pcre pda pdf pdo pear perl php pmu png pnp postgres pppd pthreads python qemu-fast qhull qt3 qt4 quicktime quotas readline reflection rrdtool rtc ruby samba scanner sdl server session sftplogging sguil slang slp smp snortsam soap sockets socks5 softmmu softquota spamassassin speex spl sqlite3 sse sse2 sse3 ssl ssse3 subject-rewrite svg tcltk tcpd tetex tga theora tiff tokenizer truetype truetype-fonts trusted type1-fonts unicode usb userlocales vorbis wma wmf wmv wsconvert wxwindows x264 xanim xchatdccserver xchattext xcomposite xine xinerama xml xml2 xmlrpc xorg xosd xpm xprint xsl xv xvid xvm xvmc zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="it" USERLAND="GNU" VIDEO_CARDS="fbdev vesa vga nv nvidia"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

Comment 12 Chí-Thanh Christopher Nguyễn gentoo-dev 2007-06-08 00:51:16 UTC
(In reply to comment #10)
> build failure
> /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib64/libosip2.a(port_sema.o): relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC

This is possibly caused by your build configuration. Please read http://www.gentoo.org/proj/en/base/amd64/howtos/index.xml?part=1&chap=3
Comment 13 Patrizio Bassi 2007-06-08 06:07:29 UTC
thanks for reply, but the -fPIC flag should be automatically added...

i don't think adding it to cflags is good idea...
Comment 14 coran.fisher@gmail.com 2007-07-03 20:25:02 UTC
2.1.1 is out and appears to install if I rename the ebuild but /opt/wengophone/qtwengophone shows not found. 
Comment 15 Chí-Thanh Christopher Nguyễn gentoo-dev 2007-07-04 04:30:46 UTC
Created attachment 123850 [details]
wengophone-2.1.1.ebuild

updated ebuild. Changes:

* fix SRC_URI
* fail if boost-1.33 was built with gcc-4.1
Comment 16 Chí-Thanh Christopher Nguyễn gentoo-dev 2007-07-04 04:33:41 UTC
(In reply to comment #14)
> 2.1.1 is out and appears to install if I rename the ebuild but
> /opt/wengophone/qtwengophone shows not found. 

qtwengophone is installed to /usr/bin
Comment 17 Patrizio Bassi 2007-07-29 13:30:56 UTC
any news about the amd64 profile? i still cannot compile it :(
Comment 18 Chí-Thanh Christopher Nguyễn gentoo-dev 2007-07-29 13:48:19 UTC
(In reply to comment #17)
> any news about the amd64 profile? i still cannot compile it :(

Works fine here on my amd64 box. I still suspect that your build environment is broken, particularly your installation of libosip. Try to remove it, as wengophone comes with its own internal copy.
Comment 19 Patrizio Bassi 2007-07-29 14:07:43 UTC
i removed libosip

i get this:

[103%] Building CXX object wengophone/src/presentation/qt/CMakeFiles/qtwengophone.dir/webdirectory/QtWebDirectory.o
[103%] Building CXX object wengophone/src/presentation/qt/CMakeFiles/qtwengophone.dir/qrc_wengophone.o
Linking CXX executable qtwengophone
/mnt/Dati/Gentoo/tmp/portage/net-voip/wengophone-2.1/work/wengophone-2.1/build/libs/owpixertool/libowpixertool.a(pixertool.o): In function `pix_convert':
/mnt/Dati/Gentoo/tmp/portage/net-voip/wengophone-2.1/work/wengophone-2.1/libs/owpixertool/src/pixertool.cpp:99: undefined reference to `avpicture_fill(AVPicture*, unsigned char*, int, int, int)'
/mnt/Dati/Gentoo/tmp/portage/net-voip/wengophone-2.1/work/wengophone-2.1/libs/owpixertool/src/pixertool.cpp:100: undefined reference to `avpicture_fill(AVPicture*, unsigned char*, int, int, int)'
/mnt/Dati/Gentoo/tmp/portage/net-voip/wengophone-2.1/work/wengophone-2.1/libs/owpixertool/src/pixertool.cpp:126: undefined reference to `img_resample_init(int, int, int, int)'
/mnt/Dati/Gentoo/tmp/portage/net-voip/wengophone-2.1/work/wengophone-2.1/libs/owpixertool/src/pixertool.cpp:135: undefined reference to `avpicture_get_size(int, int, int)'
/mnt/Dati/Gentoo/tmp/portage/net-voip/wengophone-2.1/work/wengophone-2.1/libs/owpixertool/src/pixertool.cpp:135: undefined reference to `av_malloc(unsigned int)'
/mnt/Dati/Gentoo/tmp/portage/net-voip/wengophone-2.1/work/wengophone-2.1/libs/owpixertool/src/pixertool.cpp:136: undefined reference to `avpicture_fill(AVPicture*, unsigned char*, int, int, int)'
/mnt/Dati/Gentoo/tmp/portage/net-voip/wengophone-2.1/work/wengophone-2.1/libs/owpixertool/src/pixertool.cpp:140: undefined reference to `img_resample(ImgReSampleContext*, AVPicture*, AVPicture const*)'
/mnt/Dati/Gentoo/tmp/portage/net-voip/wengophone-2.1/work/wengophone-2.1/libs/owpixertool/src/pixertool.cpp:141: undefined reference to `img_resample_close(ImgReSampleContext*)'
/mnt/Dati/Gentoo/tmp/portage/net-voip/wengophone-2.1/work/wengophone-2.1/libs/owpixertool/src/pixertool.cpp:145: undefined reference to `img_convert(AVPicture*, int, AVPicture const*, int, int, int)'
/mnt/Dati/Gentoo/tmp/portage/net-voip/wengophone-2.1/work/wengophone-2.1/libs/owpixertool/src/pixertool.cpp:152: undefined reference to `av_free(void*)'
/mnt/Dati/Gentoo/tmp/portage/net-voip/wengophone-2.1/work/wengophone-2.1/libs/owpixertool/src/pixertool.cpp:156: undefined reference to `img_convert(AVPicture*, int, AVPicture const*, int, int, int)'
/mnt/Dati/Gentoo/tmp/portage/net-voip/wengophone-2.1/work/wengophone-2.1/libs/owpixertool/src/pixertool.cpp:165: undefined reference to `av_free(void*)'
/mnt/Dati/Gentoo/tmp/portage/net-voip/wengophone-2.1/work/wengophone-2.1/libs/owpixertool/src/pixertool.cpp:149: undefined reference to `av_free(void*)'
/mnt/Dati/Gentoo/tmp/portage/net-voip/wengophone-2.1/work/wengophone-2.1/build/libs/owpixertool/libowpixertool.a(pixertool.o): In function `_nv12_to_yuv420p':
/mnt/Dati/Gentoo/tmp/portage/net-voip/wengophone-2.1/work/wengophone-2.1/libs/owpixertool/src/pixertool.cpp:175: undefined reference to `av_malloc(unsigned int)'
/mnt/Dati/Gentoo/tmp/portage/net-voip/wengophone-2.1/work/wengophone-2.1/build/libs/owpixertool/libowpixertool.a(pixertool.o): In function `pix_free':
/mnt/Dati/Gentoo/tmp/portage/net-voip/wengophone-2.1/work/wengophone-2.1/libs/owpixertool/src/pixertool.cpp:62: undefined reference to `av_free(void*)'
/mnt/Dati/Gentoo/tmp/portage/net-voip/wengophone-2.1/work/wengophone-2.1/build/libs/owpixertool/libowpixertool.a(pixertool.o): In function `pix_alloc':
/mnt/Dati/Gentoo/tmp/portage/net-voip/wengophone-2.1/work/wengophone-2.1/libs/owpixertool/src/pixertool.cpp:44: undefined reference to `avcodec_init()'
/mnt/Dati/Gentoo/tmp/portage/net-voip/wengophone-2.1/work/wengophone-2.1/libs/owpixertool/src/pixertool.cpp:50: undefined reference to `av_malloc(unsigned int)'
/mnt/Dati/Gentoo/tmp/portage/net-voip/wengophone-2.1/work/wengophone-2.1/build/libs/owpixertool/libowpixertool.a(pixertool.o): In function `pix_size':
/mnt/Dati/Gentoo/tmp/portage/net-voip/wengophone-2.1/work/wengophone-2.1/libs/owpixertool/src/pixertool.cpp:69: undefined reference to `avpicture_get_size(int, int, int)'
/mnt/Dati/Gentoo/tmp/portage/net-voip/wengophone-2.1/work/wengophone-2.1/build/libs/owpixertool/libowpixertool.a(ffmpeg-pixertool.o): In function `pix_convert_avpicture':
/mnt/Dati/Gentoo/tmp/portage/net-voip/wengophone-2.1/work/wengophone-2.1/libs/owpixertool/src/ffmpeg/ffmpeg-pixertool.c:135: undefined reference to `img_convert'
/mnt/Dati/Gentoo/tmp/portage/net-voip/wengophone-2.1/work/wengophone-2.1/build/wengophone/src/buildid/libowbuildid.a(WengoPhoneBuildId.o): In function `WengoPhoneBuildId::getAvcodecVersion()':
/mnt/Dati/Gentoo/tmp/portage/net-voip/wengophone-2.1/work/wengophone-2.1/wengophone/src/WengoPhoneBuildId.cpp:84: undefined reference to `avcodec_version()'
/mnt/Dati/Gentoo/tmp/portage/net-voip/wengophone-2.1/work/wengophone-2.1/build/wifo/phapi/libphapi.so: undefined reference to `img_resample_close'
/mnt/Dati/Gentoo/tmp/portage/net-voip/wengophone-2.1/work/wengophone-2.1/build/wifo/phapi/libphapi.so: undefined reference to `img_resample_init'
collect2: ld returned 1 exit status
make[2]: *** [wengophone/src/presentation/qt/qtwengophone] Error 1
make[1]: *** [wengophone/src/presentation/qt/CMakeFiles/qtwengophone.dir/all] Error 2
make: *** [all] Error 2
Comment 20 Patrizio Bassi 2007-07-29 15:17:04 UTC
previous was with 2.1 ebuild

2.1.1 has same issue:

[102%] Building CXX object wengophone/src/presentation/qt/CMakeFiles/qtwengophone.dir/qrc_wengophone.o
Linking CXX executable qtwengophone
/mnt/Dati/Gentoo/tmp/portage/net-voip/wengophone-2.1.1/work/wengophone-2.1.1/build/libs/owpixertool/libowpixertool.a(pixertool.o): In function `pix_convert':
/mnt/Dati/Gentoo/tmp/portage/net-voip/wengophone-2.1.1/work/wengophone-2.1.1/libs/owpixertool/src/pixertool.cpp:99: undefined reference to `avpicture_fill(AVPicture*, unsigned char*, int, int, int)'
/mnt/Dati/Gentoo/tmp/portage/net-voip/wengophone-2.1.1/work/wengophone-2.1.1/libs/owpixertool/src/pixertool.cpp:100: undefined reference to `avpicture_fill(AVPicture*, unsigned char*, int, int, int)'
/mnt/Dati/Gentoo/tmp/portage/net-voip/wengophone-2.1.1/work/wengophone-2.1.1/libs/owpixertool/src/pixertool.cpp:126: undefined reference to `img_resample_init(int, int, int, int)'
/mnt/Dati/Gentoo/tmp/portage/net-voip/wengophone-2.1.1/work/wengophone-2.1.1/libs/owpixertool/src/pixertool.cpp:135: undefined reference to `avpicture_get_size(int, int, int)'
/mnt/Dati/Gentoo/tmp/portage/net-voip/wengophone-2.1.1/work/wengophone-2.1.1/libs/owpixertool/src/pixertool.cpp:135: undefined reference to `av_malloc(unsigned int)'
/mnt/Dati/Gentoo/tmp/portage/net-voip/wengophone-2.1.1/work/wengophone-2.1.1/libs/owpixertool/src/pixertool.cpp:136: undefined reference to `avpicture_fill(AVPicture*, unsigned char*, int, int, int)'
/mnt/Dati/Gentoo/tmp/portage/net-voip/wengophone-2.1.1/work/wengophone-2.1.1/libs/owpixertool/src/pixertool.cpp:140: undefined reference to `img_resample(ImgReSampleContext*, AVPicture*, AVPicture const*)'
/mnt/Dati/Gentoo/tmp/portage/net-voip/wengophone-2.1.1/work/wengophone-2.1.1/libs/owpixertool/src/pixertool.cpp:141: undefined reference to `img_resample_close(ImgReSampleContext*)'


[cut]

Comment 21 Patrizio Bassi 2007-07-29 16:14:47 UTC
i think this is ffmpeg issue:

/usr/include/ffmpeg/avcodec.h declares those deprecated. probably they removed from latest build in portage.

i'm quite sure as linphone shows almost the same issues...

/mnt/Dati/Gentoo/tmp/portage/net-voip/linphone-1.7.1/work/linphone-1.7.1/mediastreamer2/src/.libs/libmediastreamer.so: undefined reference to `img_resample_init'
/mnt/Dati/Gentoo/tmp/portage/net-voip/linphone-1.7.1/work/linphone-1.7.1/mediastreamer2/src/.libs/libmediastreamer.so: undefined reference to `img_resample_close'
/mnt/Dati/Gentoo/tmp/portage/net-voip/linphone-1.7.1/work/linphone-1.7.1/mediastreamer2/src/.libs/libmediastreamer.so: undefined reference to `img_resample'
/mnt/Dati/Gentoo/tmp/portage/net-voip/linphone-1.7.1/work/linphone-1.7.1/mediastreamer2/src/.libs/libmediastreamer.so: undefined reference to `img_convert'
collect2: ld returned 1 exit status

Comment 22 Patrizio Bassi 2007-07-29 16:15:58 UTC
almost sure it got removed

grep img_resample_init `equery files ffmpeg`

/usr/include/ffmpeg/avcodec.h:attribute_deprecated ImgReSampleContext *img_resample_init(int output_width, int output_height,
Comment 23 Chí-Thanh Christopher Nguyễn gentoo-dev 2007-07-29 17:07:15 UTC
FYI: I built wengophone with latest stable ffmpeg. Be sure to run revdep-rebuild after installing a new version of that library.

As wengophone comes with lots of internal libraries, there could be interference between them and system-installed ones.
Comment 24 Patrizio Bassi 2007-07-29 17:24:43 UTC
are you sure about ffmpeg?
i opened bug #187029 for missing functions...

and in the linphone mailing list seems they are aware of this change... i wonder how could you manage that sincerely..
Comment 25 Patrizio Bassi 2007-07-29 20:42:38 UTC
actually i downgraded ffmpeg: this fixed linphone but not wengo..

all functions are in /usr/lib/libavcodec.so correctly.
are you sure we're linking against this lib?

[102%] Building CXX object wengophone/src/presentation/qt/CMakeFiles/qtwengophone.dir/qrc_wengophone.o
Linking CXX executable qtwengophone
/mnt/Dati/Gentoo/tmp/portage/net-voip/wengophone-2.1.1/work/wengophone-2.1.1/build/libs/owpixertool/libowpixertool.a(pixertool.o): In function `pix_convert':
/mnt/Dati/Gentoo/tmp/portage/net-voip/wengophone-2.1.1/work/wengophone-2.1.1/libs/owpixertool/src/pixertool.cpp:99: undefined reference to `avpicture_fill(AVPicture*, unsigned char*, int, int, int)'
/mnt/Dati/Gentoo/tmp/portage/net-voip/wengophone-2.1.1/work/wengophone-2.1.1/libs/owpixertool/src/pixertool.cpp:100: undefined reference to `avpicture_fill(AVPicture*, unsigned char*, int, int, int)'
/mnt/Dati/Gentoo/tmp/portage/net-voip/wengophone-2.1.1/work/wengophone-2.1.1/libs/owpixertool/src/pixertool.cpp:126: undefined reference to `img_resample_init(int, int, int, int)'
/mnt/Dati/Gentoo/tmp/portage/net-voip/wengophone-2.1.1/work/wengophone-2.1.1/libs/owpixertool/src/pixertool.cpp:135: undefined reference to `avpicture_get_size(int, int, int)'
/mnt/Dati/Gentoo/tmp/portage/net-voip/wengophone-2.1.1/work/wengophone-2.1.1/libs/owpixertool/src/pixertool.cpp:135: undefined reference to `av_malloc(unsigned int)'
/mnt/Dati/Gentoo/tmp/portage/net-voip/wengophone-2.1.1/work/wengophone-2.1.1/libs/owpixertool/src/pixertool.cpp:136: undefined reference to `avpicture_fill(AVPicture*, unsigned char*, int, int, int)'
/mnt/Dati/Gentoo/tmp/portage/net-voip/wengophone-2.1.1/work/wengophone-2.1.1/libs/owpixertool/src/pixertool.cpp:140: undefined reference to `img_resample(ImgReSampleContext*, AVPicture*, AVPicture const*)'
/mnt/Dati/Gentoo/tmp/portage/net-voip/wengophone-2.1.1/work/wengophone-2.1.1/libs/owpixertool/src/pixertool.cpp:141: undefined reference to `img_resample_close(ImgReSampleContext*)'
/mnt/Dati/Gentoo/tmp/portage/net-voip/wengophone-2.1.1/work/wengophone-2.1.1/libs/owpixertool/src/pixertool.cpp:145: undefined reference to `img_convert(AVPicture*, int, AVPicture const*, int, int, int)'
/mnt/Dati/Gentoo/tmp/portage/net-voip/wengophone-2.1.1/work/wengophone-2.1.1/libs/owpixertool/src/pixertool.cpp:152: undefined reference to `av_free(void*)'
/mnt/Dati/Gentoo/tmp/portage/net-voip/wengophone-2.1.1/work/wengophone-2.1.1/libs/owpixertool/src/pixertool.cpp:156: undefined reference to `img_convert(AVPicture*, int, AVPicture const*, int, int, int)'
/mnt/Dati/Gentoo/tmp/portage/net-voip/wengophone-2.1.1/work/wengophone-2.1.1/libs/owpixertool/src/pixertool.cpp:165: undefined reference to `av_free(void*)'
/mnt/Dati/Gentoo/tmp/portage/net-voip/wengophone-2.1.1/work/wengophone-2.1.1/libs/owpixertool/src/pixertool.cpp:149: undefined reference to `av_free(void*)'
/mnt/Dati/Gentoo/tmp/portage/net-voip/wengophone-2.1.1/work/wengophone-2.1.1/build/libs/owpixertool/libowpixertool.a(pixertool.o): In function `_nv12_to_yuv420p':
/mnt/Dati/Gentoo/tmp/portage/net-voip/wengophone-2.1.1/work/wengophone-2.1.1/libs/owpixertool/src/pixertool.cpp:175: undefined reference to `av_malloc(unsigned int)'
/mnt/Dati/Gentoo/tmp/portage/net-voip/wengophone-2.1.1/work/wengophone-2.1.1/build/libs/owpixertool/libowpixertool.a(pixertool.o): In function `pix_free':
/mnt/Dati/Gentoo/tmp/portage/net-voip/wengophone-2.1.1/work/wengophone-2.1.1/libs/owpixertool/src/pixertool.cpp:62: undefined reference to `av_free(void*)'
/mnt/Dati/Gentoo/tmp/portage/net-voip/wengophone-2.1.1/work/wengophone-2.1.1/build/libs/owpixertool/libowpixertool.a(pixertool.o): In function `pix_alloc':
/mnt/Dati/Gentoo/tmp/portage/net-voip/wengophone-2.1.1/work/wengophone-2.1.1/libs/owpixertool/src/pixertool.cpp:44: undefined reference to `avcodec_init()'
/mnt/Dati/Gentoo/tmp/portage/net-voip/wengophone-2.1.1/work/wengophone-2.1.1/libs/owpixertool/src/pixertool.cpp:50: undefined reference to `av_malloc(unsigned int)'
/mnt/Dati/Gentoo/tmp/portage/net-voip/wengophone-2.1.1/work/wengophone-2.1.1/build/libs/owpixertool/libowpixertool.a(pixertool.o): In function `pix_size':
/mnt/Dati/Gentoo/tmp/portage/net-voip/wengophone-2.1.1/work/wengophone-2.1.1/libs/owpixertool/src/pixertool.cpp:69: undefined reference to `avpicture_get_size(int, int, int)'
/mnt/Dati/Gentoo/tmp/portage/net-voip/wengophone-2.1.1/work/wengophone-2.1.1/build/wengophone/src/buildid/libowbuildid.a(WengoPhoneBuildId.o): In function `WengoPhoneBuildId::getAvcodecVersion()':
/mnt/Dati/Gentoo/tmp/portage/net-voip/wengophone-2.1.1/work/wengophone-2.1.1/wengophone/src/WengoPhoneBuildId.cpp:84: undefined reference to `avcodec_version()'
collect2: ld returned 1 exit status
make[2]: *** [wengophone/src/presentation/qt/qtwengophone] Error 1
make[1]: *** [wengophone/src/presentation/qt/CMakeFiles/qtwengophone.dir/all] Error 2
make: *** [all] Error 2


Comment 26 pjv 2007-08-05 14:41:35 UTC
Wengophone-2.1.1 needs an extra libsamplerate dependency, I think. Works (fine) if you use gcc-4.1 and boost-1.34.1. It seems to be a huge and long emerge however, and the program takes awfully long to startup, and it could also be a bit more stable. Any way to prevent it from using my bluetooth headset by default (as it seems to do if I have it in asound.conf) instead of my internal soundcard?

Thx, 
Comment 27 Roberto Castagnola 2007-08-07 14:59:30 UTC
Created attachment 127174 [details]
wengophone-2.1.1-newerffmpeg-patches.tar.bz2

Fixes building with latest ffmpeg (0.4.9_p20070616-r1)
Contains
  phapi_newerffmpeg.diff
  pixertool_newerffmpeg.diff
  wengophone_externavcodec.diff

Patches are from http://dev.openwengo.com/trac/openwengo/trac.cgi/ticket/1741 with minor changes to be applied on wengophone-2.1.1
Comment 28 Patrizio Bassi 2007-08-07 19:36:11 UTC
after long time i got wengophone compiled for amd64!!!!
thanks for patches

excellent!

please push to portage asap :)))))
Comment 29 Christophe PEREZ 2007-08-08 18:46:28 UTC
(In reply to comment #8)
> > As for net-voip/wengophone-bin-2.1, it is virtually useless for me as I don't
> > have sound with it.
> > 
> Go to /opt/wengophone and delete the libasound file in there. After that, it
> works for me.
> 

Worked for me.
Could be great if the ebuild was updated, no ?
Comment 30 Chí-Thanh Christopher Nguyễn gentoo-dev 2007-08-09 06:19:13 UTC
(In reply to comment #28)
> please push to portage asap :)))))

Someone would be needed to maintain wengophone or proxy-maintain it for me. genstef was the previous maintainer, I'll try to contact him on IRC.

Updated ebuild to incorporate Roberto Castagnola's patches from attachment 127174 [details] will follow shortly.
Comment 31 magillos 2007-08-17 14:08:04 UTC
Created attachment 128394 [details]
ebuild working with previous patches

Quick but working ebuild. It applys newerffmpeg patches.
Comment 32 Chí-Thanh Christopher Nguyễn gentoo-dev 2007-08-20 17:33:01 UTC
Created attachment 128702 [details]
wengophone-2.1.1.ebuild

add libsamplerate/libsndfile dependency as per comment 26 to the ebuild from attachment 128394 [details] with patches from attachment 127174 [details] thanks to pjv, Roberto Castagnola and magillos
Comment 33 Chí-Thanh Christopher Nguyễn gentoo-dev 2007-08-21 11:27:36 UTC
Created attachment 128760 [details]
wengophone-2.1.1-v4l2-patches.tar.bz2

patches for v4l2 support (eg. uvc webcams) taken from http://dev.openwengo.com/trac/openwengo/trac.fcgi/ticket/1470
Comment 34 Patrizio Bassi 2007-08-21 11:32:06 UTC
Christopher, wonderful job, but i think the priority is having wengo in the portage.
the first patches were really needed because of ffmpeg revision, but these new are adding new features that will be merged in next releases...

i suggest to leave them out now...wengophone is quite unstable, at least on my amd64 profile..

Comment 35 Chí-Thanh Christopher Nguyễn gentoo-dev 2007-08-21 11:32:08 UTC
Created attachment 128761 [details]
wengophone-2.1.1.ebuild

updated ebuild

* add v4l2 USE-flag
* simply depend on boost-1.34 instead of certain gcc versions
Comment 36 Chí-Thanh Christopher Nguyễn gentoo-dev 2007-08-21 11:35:03 UTC
(In reply to comment #34)
according to genstef on irc he wanted to wait until wengophone works with his macbook integrated webcam.
these patches allow v4l2 devices to work and are only applied if the v4l2 USE-flag is set.
Comment 37 Markus Luisser 2007-08-21 14:31:54 UTC
Builds fine on amd64 with boost-1.34, gcc-4.1 and USE=v4l2. Good job :)
Comment 38 bouleetbil 2007-08-22 15:52:50 UTC
Created attachment 128882 [details]
wengophone-2.1.1.ebuild

hello,
If you wan't you could enable or desable the flag debug
Comment 39 Chí-Thanh Christopher Nguyễn gentoo-dev 2007-08-27 11:58:25 UTC
This is now in the voip overlay.
http://overlays.gentoo.org/proj/voip/browser/trunk/net-im/wengophone

Inclusion into the portage tree is planned but stability issues need to be addressed first.
Comment 40 Patrizio Bassi 2007-09-01 20:02:34 UTC
in the voip overlay i found the 2.1.2 ebuild.

tried on amd64, compiled without any problem, solved all stability issues.

please add to main portage asap,  seems great!
Comment 41 Markus Luisser 2007-09-01 21:12:59 UTC
(In reply to comment #40)
> in the voip overlay i found the 2.1.2 ebuild.
> 
> tried on amd64, compiled without any problem, solved all stability issues.

Sorry to report that, but I still have issues with that version (also amd64). It compiled fine but crashes when connecting. Then on the other hand, it might be me and I dont want to defer things... maybe it even helps when they get bug reports on what _they_ mark stable. The ebuild seems fine enough.

(I also tried 2.2-alpha, compiles fine, looks nice but it`s... well, alpha ;) I installed from the latest ebuild here, just change the deps.)
Comment 42 Patrizio Bassi 2007-09-01 21:32:09 UTC
i don't know...works like a charm here...

i even don't have anymore the problem with libosip (with 2.1.1 i had to uninstall, compile wengo, reinstall due to linking failures)
Comment 43 Markus Luisser 2007-09-01 22:01:34 UTC
(In reply to comment #42)
> i don't know...works like a charm here...

Well, as I said, might be me. I`m sitting behind my landlords router which acts a bit strange at times, so that might be the source of my problems (though that should not cause wengophone to crash) but I dont have problems with ekiga. When noone else reports instable behavior, go ahead. Wont be too long anyway until 2.2 will be out.

Comment 44 Chí-Thanh Christopher Nguyễn gentoo-dev 2007-09-02 23:37:51 UTC
(In reply to comment #43)
Thanks for testing. Crashes in wengophone seem dependent on the system, either it runs stable or not at all. Some causes for instability are not yet identified.

I have noticed that wengophone may choke on ~/.wengophone directories from previous versions, and sometimes the presence of a webcam can cause trouble.
Comment 45 Patrizio Bassi 2007-09-03 07:47:46 UTC
just a bit OT: i notice that the -bin and the source one are in different categories (net-im and net-voip).

they should go together i think...
Comment 46 GNUtoo 2007-09-05 15:02:36 UTC
mabe we should use the svn instead because the download is too slow
Comment 47 Olivier Crete (RETIRED) gentoo-dev 2007-09-05 21:40:55 UTC
The auto-dependency on curl is wrong.. either you always use the internal one or always use the system provided one. speex should probably be in rdepend too, or is it statically linked?
Comment 48 Chí-Thanh Christopher Nguyễn gentoo-dev 2007-09-05 22:18:19 UTC
(In reply to comment #47)
> The auto-dependency on curl is wrong.. either you always use the internal one
> or always use the system provided one.

I think in this case, the automatic use of internal libraries is not problematic, because they will be installed into the wengophone directory. Please explain if you think that this is wrong.

Wengophone's cmake script will use external libraries automatically if installed. If too old external libraries are used (eg. libosip-2*), this leads to undesired behaviour.
On the other hand, it may be preferable to use newer external libraries, because eg. wengophone's internal curl is vulnerable to CVE-2007-3564 (bug 184934)

I removed the speex dependency from the ebuild in the voip overlay, as wengophone comes with its internal copy as well.
Comment 49 Patrizio Bassi 2007-09-06 08:56:11 UTC
in my opinion it's always better to use the system external library and no the embedded one.

in case of security issues we bump, we save duplicate files...maybe ram if that lib is already loaded.

maybe an use flag (ex. "internal-libraries") may leave the user free to use internal libs.

Please bump libosip2 as well :)
Comment 50 David Carlos Manuelda 2007-09-10 00:53:09 UTC
Is there something wrong with the ebuild or CMakeFiles?

I am testing 2.1.2-r1 and compilation reached more than [100%]. It is not critical, but is very weird to see:

[101%] Compiling.....

:)

Other question would be, does this build support multiple jobs (as -j3) in making?
Comment 51 David Carlos Manuelda 2007-09-10 01:02:01 UTC
I finished compilation, and tried it, is it that inestable? or I am the only one? it just stands up for about 5 seconds :(

In a console I can see things like "Aborted" when it exits.. :(
Comment 52 Markus Luisser 2007-09-10 01:14:10 UTC
I can confirm both the >100% compile and the instabilities with the `Aborting` messages - takes a bit longer though to crash for me - try to remove the .wengophone directory before you launch the new executable.
Comment 53 Patrizio Bassi 2007-09-10 07:26:51 UTC
for me same instability with 2.1.1

with 2.1.2 looooots of improvement. sometimes crashes on startup, but once started it's very stable for me.

try 2.1.2 (overlay)
Comment 54 Matthias Vill 2007-09-11 09:40:35 UTC
Could someone move the package inside the overlay to net-voip?

If you installed net-im/wengophone from the overlay an do emerge --sync you get "updated" to net-voip/wengophone-bin which is really stupid.
Comment 55 Alex J. Ivasyuv 2007-12-01 01:34:13 UTC
Created attachment 137427 [details]
wengophone-2.1.99.2.ebuild

WengoPhone 2.2 alpha2
ebuild for building wengophone from sources.
http://dev.openwengo.com/trac/openwengo/trac.cgi/
Comment 56 Patrizio Bassi 2008-01-12 15:36:01 UTC
the 2.2.1 version in the overlay works great, can't we push to main portage?
Comment 57 Robert A. 2008-03-18 19:56:53 UTC
the wengophone-2.1-qt-4.3.diff does not apply to 2.1.2 nor to 2.1.99.2:

 * Failed Patch: wengophone-2.1-qt-4.3.diff !
 *  ( /usr/portage/local/layman/voip/net-voip/wengophone/files/wengophone-2.1-qt-4.3.diff )


***** wengophone-2.1-qt-4.3.diff *****

======================================

PATCH COMMAND:   patch -p0 -g0 -E --no-backup-if-mismatch < /usr/portage/local/layman/voip/net-voip/wengophone/files/wengophone-2.1-qt-4.3.diff

======================================
can't find file to patch at input line 5
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|Index: /wengophone-ng/branches/wengophone-2.2/wengophone/src/presentation/qt/QtWengoStyle.h
|===================================================================
|--- /wengophone-ng/branches/wengophone-2.2/wengophone/src/presentation/qt/QtWengoStyle.h (revision 12904)
|+++ /wengophone-ng/branches/wengophone-2.2/wengophone/src/presentation/qt/QtWengoStyle.h (revision 13153)
--------------------------
No file to patch.  Skipping patch.
2 out of 2 hunks ignored
======================================

Comment 58 Chí-Thanh Christopher Nguyễn gentoo-dev 2008-03-18 22:44:41 UTC
The patch in the overlay should be fixed now. As the next release of WengoPhone will be under a new name (Qutecom), possibly this bug will be closed and another one be opened soon. Hopefully I will be able to convince the voip devs to accept Qutecom into portage then.
Comment 59 Robert A. 2008-03-18 22:49:29 UTC
Created attachment 146532 [details, diff]
newly created patch file


this one fixes the problem (for me)
Comment 60 Robert A. 2008-03-18 23:33:07 UTC
I also stumbled across the "cmake over 100% error":
[103%] Building CXX object wengophone/src/presentation/qt/CMakeFiles/qtwengophone.dir/qrc_wengophone.o


with wengophone-2.1.2 i get a binary /usr/bin/qtwengophone .
with wengophone-2.1.99.2 i get a binary /usr/bin/wengophone which cannot find a library wengophone installed:
ra@eris ~ $ /usr/bin/wengophone 
/usr/bin/wengophone: error while loading shared libraries: libowbase.so: cannot open shared object file: No such file or directory

adding a file to /etc/env.d and running env-update does the trick.

# cat /etc/env.d/90wengo 
LDPATH="/usr/lib/wengophone:"


anyway.. i cannot login with this version..
Comment 61 Chí-Thanh Christopher Nguyễn gentoo-dev 2008-09-17 20:02:44 UTC
WengoPhone has been discontinued by Wengo.
A fork is being developed by volunteers under the name of QuteCom.

See bug 237941 for progress with the QuteCom package.