Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 2657

Summary: xchat-1.8.8-r1 fails to compile.
Product: Gentoo Linux Reporter: Gabriele Giorgetti <gabriele_giorgetti>
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED FIXED    
Severity: critical CC: gabriele_giorgetti
Priority: High    
Version: 1.1a   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Gabriele Giorgetti 2002-05-11 10:56:36 UTC
This version of xchat does not compile, it just spits out this error:

make[3]: Entering directory
`/var/tmp/portage/xchat-1.8.8-r1/work/xchat-1.8.8/src/fe-text'
gcc  -march=i686 -O3 -pipe -I/usr/include/orbit-1.0 -I/usr/include/glib-1.2
-I/usr/lib/glib/include -I/usr/include/python2.2 -Wall -g  -o xchat-text 
fe-text.o ../common/libxchatmain.a -lutil -lpthread  -L/usr/lib -rdynamic
-lgmodule -lglib -ldl -L/usr/lib/python2.2/config -lpython2.2 -L
/usr/lib/python2.2/config  -lssl -lcrypto 
/usr/lib/python2.2/config/libpython2.2.a(posixmodule.o): In function `posix_tmpnam':
posixmodule.o(.text+0x2d8d): the use of `tmpnam_r' is dangerous, better use
`mkstemp'
/usr/lib/python2.2/config/libpython2.2.a(posixmodule.o): In function
`posix_tempnam':
posixmodule.o(.text+0x2ccc): the use of `tempnam' is dangerous, better use `mkstemp'
/usr/lib/python2.2/config/libpython2.2.a(complexobject.o): In function `_Py_c_pow':
complexobject.o(.text+0x2dd): undefined reference to `pow'
complexobject.o(.text+0x31c): undefined reference to `exp'
complexobject.o(.text+0x330): undefined reference to `log'
complexobject.o(.text+0x350): undefined reference to `cos'
complexobject.o(.text+0x366): undefined reference to `sin'
/usr/lib/python2.2/config/libpython2.2.a(floatobject.o): In function `float_pow':
floatobject.o(.text+0x10a0): undefined reference to `pow'
collect2: ld returned 1 exit status

!!! ERROR: The ebuild did not complete successfully.
!!! Function src_compile, Line 72, Exitcode 2
!!! (no error message)

!!! emerge aborting on  /usr/portage/net-irc/xchat/xchat-1.8.8-r1.ebuild .


If you need to know what's on my gentoo linux:
>>> emerge net-irc/xchat-1.8.8-r1 to /

Building GTK+ Interface .... : yes 1.2.10
Building TEXT Interface .... : yes

gnome-libs .......... : yes 1.4.1.6
gnome panel ......... : yes
perl ................ : no
gdk-pixbuf........... : yes 0.17.0
python .............. : yes 2.2
mmx tinting ......... : yes
zvt shell tab ....... : yes	nls/gettext ......... : no
plugin interface .... : yes	glib replace ........ : no
link with socks5 .... : no	translation tables .. : yes
openssl support ..... : yes	japanese conversion . : no
ipv6 support ........ : no	hebrew support ...... : no


Thank you.

PS: If you need more infos don't esitate to ask.
Comment 1 Joachim Blaabjerg (RETIRED) gentoo-dev 2002-05-11 14:51:50 UTC
This should be an easy fix; it's just a missing -lm in the LIBS variable in the
Makefile. How does it get triggered? I have no idea. I can take a look at it,
though.
Comment 2 Gabriele Giorgetti 2002-05-11 15:18:18 UTC
Yup, the missing link to the math lib is very likely to be the problem.

If you can fix it, well that's good, but then the maintainer of the ebuild
( Daniel Robbins <drobbins@gentoo.org> ) should be warned.
Comment 3 Gabriele Giorgetti 2002-05-11 16:13:12 UTC
I fixed it changing the line 75 of xchat-1.8.8-r1.ebuild
from : emake || die
in:    make || die

don't know why emake was giving those problems.