I am having trouble rebuilding xchat

I am having trouble rebuilding xchat

Post by fuh » Wed, 25 Jul 2001 21:58:36

I am having trouble rebuilding xchat
(The reason I am trying to rebuild it is because I am having the same
problem compiling the latest version of xchat).

I installed the source file xchat-1.6.4-23.src.rpm.

When compiling, I get the following error:

/usr/lib/python2.0/config/libpython2.0.a(posixmodule.o): In function
posixmodule.o(.text+0x30f6): the use of `tmpnam_r' is dangerous, better use
/usr/lib/python2.0/config/libpython2.0.a(posixmodule.o): In function
posixmodule.o(.text+0x3012): the use of `tempnam' is dangerous, better use
/usr/lib/python2.0/config/libpython2.0.a(bsddbmodule.o): In function
bsddbmodule.o(.text+0x76): undefined reference to `__db185_open'
/usr/lib/python2.0/config/libpython2.0.a(bsddbmodule.o): In function
bsddbmodule.o(.text+0x1a3): undefined reference to `__db185_open'
/usr/lib/python2.0/config/libpython2.0.a(bsddbmodule.o): In function
bsddbmodule.o(.text+0x2cd): undefined reference to `__db185_open'
collect2: ld returned 1 exit status
make[3]: *** [xchat] Error 1
make[3]: Leaving directory `/usr/src/packages/BUILD/xchat-1.8.1/src/fe-gtk'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/src/packages/BUILD/xchat-1.8.1/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/packages/BUILD/xchat-1.8.1'
make: *** [all-recursive-am] Error 2
Bad exit status from /var/tmp/rpm-tmp.73124 (%build)

If I change the spec file to use the configure option "--disable-python"
then it compiles ok.  If I build it on a system without python (as I think
suse did) then the configure script for xchat automatically disabld python
support and everything worked.

I have the following packages installed:

foomanchu:~ # rpm -qa | grep ^db

foomanchu:~ # rpm -qa | grep ^python

Any ideas?
I think the "undefined reference to `__db185_open'" error has something to
do with
SuSE 7.2 using version 3 of the Berkely Database (db-3.1.17-56) (Suse 6.4
used db version 2 and xchat compiled with python support there).  Searches
on www.google.com for __db185_open suggest the same thing.

Has anyone managed to compile xchat on suse 7.1 or 7.2? (with python
support) (or on another system running db version3).

Also is there a way to get around the "undefined reference to
`__db185_open'" error, as it is bound to reappear.