Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 72445 - samba-3.0.8 / samba-3.0.7-r1 build fails on libxml2 test
Summary: samba-3.0.8 / samba-3.0.7-r1 build fails on libxml2 test
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Gentoo's SAMBA Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-25 04:54 UTC by Steven Wilson
Modified: 2005-07-29 04:38 UTC (History)
2 users (show)

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


Attachments
System info for bss03@volumehost.com confirmation. (bug.72445.rep,23.47 KB, text/plain)
2004-12-01 15:01 UTC, Boyd Stephen Smith Jr.
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Steven Wilson 2004-11-25 04:54:00 UTC
When I attempt to emerge samba-3.0.8 or rebuild samba-3.0.7-r1, the configure script fails to compile the libxml2 test program:

checking for libxml - version >= 2.0.0... no
*** Could not run libxml test program, checking why...
*** The test program failed to compile or link. See the file config.log for the
*** exact error that occured. This usually means LIBXML was incorrectly installed
*** or that you have moved LIBXML since it was installed. In the latter case, you
*** may want to edit the xml2-config script: /usr/bin/xml2-config
configure: error: Can't find XML libraries while XML support is requested

!!! ERROR: net-fs/samba-3.0.8 failed.
!!! Function econf, Line 449, Exitcode 1
!!! econf failed

The error from config.log is:

configure:32982: gcc -o conftest -march=athlon-xp -Os -momit-leaf-frame-pointer
-pipe -Wl,-O1  -I/usr/include/postgresql/pgsql -I/usr/include/mysql -march=athlon-xp -Os -momit-leaf-frame-pointer -pipe -Wl,-DHAVE_ERRNO_AS_DEFINE=1 -DUSE_OLD_FUNCTIONS -I/usr/include/libxml2 -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE  -O1 -L/usr/lib -Wl,-z,now -Wl,-rpath,/usr/lib conftest.c -L/usr/lib -lxml2 -lz -lpthread -lm -lresolv -lnsl -ldl  >&5
/usr/lib/gcc/i686-pc-linux-gnu/3.4.0/../../../../i686-pc-linux-gnu/bin/ld: unrecognized option '-DHAVE_ERRNO_AS_DEFINE=1'
/usr/lib/gcc/i686-pc-linux-gnu/3.4.0/../../../../i686-pc-linux-gnu/bin/ld: use the --help option for usage information
collect2: ld returned 1 exit status
configure:32985: $? = 1
configure: program exited with status 1

The same error occurs when rebuilding samba-3.0.7-r1, which previously built without problems. Rebuilding libxml2-2.6.15 and downgrading to libxml2-2.6.11 do not fix the problem (I didn't expect it to, but of libxml, autoconf, and automake, libxml seemed to be the only thing updated since I last built samba-3.0.7-r1).

emerge info:

Portage 2.0.51-r3 (default-linux/x86/2004.0, gcc-3.4.0, glibc-2.3.4.20040808-r1, 2.6.9-rc1-love2 i686)
=================================================================
System uname: 2.6.9-rc1-love2 i686 AMD Athlon(tm) XP 1800+
Gentoo Base System version 1.4.16
Autoconf: sys-devel/autoconf-2.59-r5
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.15.90.0.1.1-r3
Headers:  sys-kernel/linux26-headers-2.6.8.1-r1
Libtools: sys-devel/libtool-1.5.2-r7
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon-xp -Os -momit-leaf-frame-pointer -pipe -Wl,-O1"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon-xp -Os -momit-leaf-frame-pointer -pipe -Wl,-O1"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig distlocks sandbox sfperms"
GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo http://open-systems.ufl.edu/mirrors/gentoo http://gentoo.mirrors.pair.com/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/local/overlays/bmg-main.alternative /usr/local/overlays/fluid"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowex X alsa apm audiofile avi berkdb bidi bitmap-fonts cdr cjk crypt cups dvd dvdr encode esd f77 faac faad fam foomaticdb fortran gdbm gif gnome gpm gstreamer gtk gtk2 imagemagick imlib java jpeg junit libg++ libwww mad mikmod mmap mmx mmx2 mng motif mozilla mpeg mysql ncurses nls nptl oggvorbis opengl oss pam pdflib perl pic png postgres python qt quicktime readline samba sdl slang spell sse ssl svg svga tcltk tcpd tiff truetype unicode x86 xml xml2 xmms xv zlib"
Comment 1 Boyd Stephen Smith Jr. 2004-12-01 14:50:34 UTC
I can confirm, also attaching my configuration so someone can find the least common denominator.
Comment 2 Boyd Stephen Smith Jr. 2004-12-01 15:01:30 UTC
Created attachment 45089 [details]
System info for bss03@volumehost.com confirmation.

Attached system info as promised.
Comment 3 Heinrich Wendel (RETIRED) gentoo-dev 2005-02-13 04:18:14 UTC
i get the same error with samba-3.0.10
Comment 4 Heinrich Wendel (RETIRED) gentoo-dev 2005-04-24 15:37:34 UTC
strange, now it works here
Comment 5 Seemant Kulleen (RETIRED) gentoo-dev 2005-07-29 04:38:40 UTC
was it possible, that you all just needed to re-emerge libxml2 or so?  

IS this bug still valid even?  Please re-open if so.