Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 132758 - linphone 1.3.5 doesn't compile
Summary: linphone 1.3.5 doesn't compile
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High normal
Assignee: voip herd (OBSOLETE)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-05-08 22:16 UTC by Marcin Deranek
Modified: 2006-05-09 14:06 UTC (History)
1 user (show)

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


Attachments
linphone-1.3.5.ebuild (linphone-1.3.5.ebuild,2.49 KB, text/plain)
2006-05-09 06:35 UTC, Stefan Schweizer (RETIRED)
Details
Patch to fix errno problems (linphone.patch,256 bytes, patch)
2006-05-09 10:14 UTC, Marcin Deranek
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Marcin Deranek 2006-05-08 22:16:55 UTC
Compile of linphone 1.3.5 fails with the following error on AMD64 platform:

<snip>
checking for x86_64-pc-linux-gnu-ar... x86_64-pc-linux-gnu-ar
checking for x86_64-pc-linux-gnu-ranlib... x86_64-pc-linux-gnu-ranlib
checking for x86_64-pc-linux-gnu-strip... x86_64-pc-linux-gnu-strip
checking for correct ltmain.sh version... no
configure: error:

*** [Gentoo] sanity check failed! ***
*** libtool.m4 and ltmain.sh have a version mismatch! ***
*** (libtool.m4 = 1.5.22, ltmain.sh = "1.5.22 Debian 1.5.22-4") ***

Please run:

  libtoolize --copy --force

if appropriate, please contact the maintainer of this
package (or your distribution) for help.

make[2]: *** [config.status] Error 1
make[2]: Leaving directory `/var/tmp/portage/linphone-1.3.5/work/linphone-1.3.5/oRTP'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/linphone-1.3.5/work/linphone-1.3.5'make: *** [all] Error 2
Comment 1 Marcin Deranek 2006-05-08 22:18:26 UTC
Forgot that one..

Portage 2.1_pre10-r5 (default-linux/amd64/2005.1, gcc-4.1.0, glibc-2.4-r2, 2.6.16-beyond3 x86_64)
=================================================================
System uname: 2.6.16-beyond3 x86_64 AMD Athlon(tm) 64 Processor 3500+
Gentoo Base System version 1.12.0_pre19
ccache version 2.4 [enabled]
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r1
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.18
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=athlon64 -mtune=athlon64 -ftracer -frename-registers -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=athlon64 -mtune=athlon64 -ftracer -frename-registers -pipe"DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j2"
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'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 X a52 aac aalib accessibility acpi adns alsa apm audiofile avi bash-completion bcmath berkdb bidi bindist bitmap-fonts bluetooth bzip2 cairo cdparanoia cdr clamav cli crypt cscope ctype cups curl curlwrappers dga dio directfb dri dts dv dvb dvd dvdr dvdread emul-linux-x86 encode evo exif expat fbcon ffmpeg fftw flac flatfile foomaticdb ftp gb gcj gd gdbm ggi gif ginac glitz glut gmp gnome gnutls gphoto2 gpm gstreamer gtk gtk2 gtkhtml guile hal iconv idn imagemagick imlib ipv6 isdnlog java javascript jikes jpeg jpeg2k lcms lesstif libcaca libedit libgda libwww lm_sensors lzw lzw-tiff m17n-lib mad maildir matroska mbox mcal memlimit mhash mikmod mime mmap mng mono motif mp3 mpeg mpi msession ncurses nls nptl nsplugin offensive ogg oggvorbis openal opengl osc oss pam pcntl pcre pda pdf pdflib perl pic plotutils png portaudio posix ppds pppd python quicktime readline recode reflection scanner sdl session sharedmem shorten simplexml skey slang slp sndfile snmp sockets sox speex spell ssl svg sysvipc szip tcltk tcpd test theora threads tidy tiff truetype truetype-fonts type1-fonts unicode usb v4l vcd videos vorbis wifi wmf wxwindows x264 xine xinerama xml xml2 xmlrpc xorg xosd xpm xsl xv xvid yaz zlib elibc_glibc input_devices_keyboard input_devices_mouse kernel_linux userland_GNU video_cards_radeon video_cards_fglrx video_cards_vesa"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 Stefan Schweizer (RETIRED) gentoo-dev 2006-05-09 05:46:51 UTC
I added inherit autotools and

    #132758
    eautoreconf

in there, that should fix all possible autotools problems, thanks.
Please sync in one hour and try again
Comment 3 Stefan Schweizer (RETIRED) gentoo-dev 2006-05-09 06:35:35 UTC
Created attachment 86476 [details]
linphone-1.3.5.ebuild

I was not able to get this working .. I really wonder why I get compile problems after eautoreconf ..
Comment 4 Stefan Schweizer (RETIRED) gentoo-dev 2006-05-09 06:36:31 UTC
obvious solution did not work .. can you please try the attached ebuild and tell me if it works for you?
When have you synced last?
Comment 5 Marcin Deranek 2006-05-09 10:13:08 UTC
I used to sync portage, before I complain :-))

It seems attached ebuild helps, but compilation fails again in different place complaining about errno & co.. See attached patch to fix the problem.

Unfortunately patch doesn't solve the problem completely. There are 2 other issues :
- readline isn't detected:
Adding '#define HAVE_READLINE_READLINE_H 1' to config.h and '-lreadline' to AM_CFLAGS in console/Makefile solves the problem
- libosip2 isn't detected
Adding '-losip2' to AM_CFLAGS in gnome/Makefile and console/Makefile helps.

These are just my hacks, but most probably there is better way of solving that problem..
BTW: I do not readline dependency in the ebuild..
Comment 6 Marcin Deranek 2006-05-09 10:14:50 UTC
Created attachment 86491 [details, diff]
Patch to fix errno problems

Might be gcc-4 related..
Comment 7 Stefan Schweizer (RETIRED) gentoo-dev 2006-05-09 10:34:52 UTC
ok, your workarounds help. Now I just need to have a patch that I can apply before eautoreconf .. ie not patching generated files.

Do you want to provide that? :)
I gave up at the readline point when trying ..
Comment 8 Marcin Deranek 2006-05-09 11:23:42 UTC
It seem your fix was good, but not complete:

AT_M4DIR="${S}/m4" eautoreconf

fixes the problem.. It doesn't require any additional patch, so disregard any patches I sent previously :-)

More info at http://www.gentoo.org/proj/en/qa/autofailure.xml

Compiles on stable x86 as well :-)
Comment 9 Stefan Schweizer (RETIRED) gentoo-dev 2006-05-09 11:44:59 UTC
Thanks, that works! Committed
Comment 10 Jakub Moc (RETIRED) gentoo-dev 2006-05-09 14:06:19 UTC
*** Bug 132824 has been marked as a duplicate of this bug. ***