I have never emerged pwlib before, just to set things straight. I cannot compile pwlib, I have tried with and without the ssl use flag. I hava openssl 0.9.6i on both my laptop and desktop. It compiled on my laptop, but not on my desktop. The main differnece is desktop uses ~x86, the laptop is just x86. Reproducible: Always Steps to Reproduce: 1. emerge pwlib Actual Results: Here is the error: gcc -march=pentium3 -O3 -pipe -fomit-frame-pointer -DPTRACING=1 -Wall -DP_LINUX -D_REENTRANT -DP_HAS_SEMAPHORES -fPIC -DP_USE_PRAGMA -DP_SSL -I/usr/include/include -I/usr/include/crypto -DP_EXPAT -DP_PTHREADS -DPHAS_TEMPLATES -DPBYTE_ORDER=PLITTLE_ENDIAN -I/var/tmp/portage/pwlib-1.4.7/work/pwlib/include/ptlib/unix -I/var/tmp/portage/pwlib-1.4.7/work/pwlib/include -c ../common/getdate.tab.c -o /var/tmp/portage/pwlib-1.4.7/work/pwlib/lib/obj_linux_x86_r/getdate.tab.o g++ -Wall -DP_LINUX -D_REENTRANT -DP_HAS_SEMAPHORES -fPIC -DP_USE_PRAGMA -DP_SSL -I/usr/include/include -I/usr/include/crypto -DP_EXPAT -DP_PTHREADS -DPHAS_TEMPLATES -DPBYTE_ORDER=PLITTLE_ENDIAN -I/var/tmp/portage/pwlib-1.4.7/work/pwlib/include/ptlib/unix -I/var/tmp/portage/pwlib-1.4.7/work/pwlib/include -DNDEBUG -march=pentium3 -O3 -pipe -fomit-frame-pointer -DPTRACING=1 -c ../../ptclib/pxml.cxx -o /var/tmp/portage/pwlib-1.4.7/work/pwlib/lib/obj_linux_x86_r/pxml.o In file included from ../../ptclib/pxml.cxx:64: /usr/include/expat.h:657: use of enum `XML_Status' without previous declaration /usr/include/expat.h:735: multiple definition of `enum XML_Status' /usr/include/expat.h:657: previous definition here make[2]: *** [/var/tmp/portage/pwlib-1.4.7/work/pwlib/lib/obj_linux_x86_r/pxml.o] Error 1 make[2]: Leaving directory `/var/tmp/portage/pwlib-1.4.7/work/pwlib/src/ptlib/unix' make[1]: *** [opt] Error 2 make[1]: Leaving directory `/var/tmp/portage/pwlib-1.4.7/work/pwlib' make: *** [optshared] Error 2 !!! ERROR: dev-libs/pwlib-1.4.7 failed. !!! Function src_compile, Line 54, Exitcode 2 !!! (no error message) Portage 2.0.47-r8 (default-x86-1.4, gcc-3.2.2, glibc-2.3.2-r0) ================================================================= System uname: 2.4.20-gentoo-r1 i686 Celeron (Coppermine) GENTOO_MIRRORS="http://www.ibiblio.org/pub/Linux/distributions/gentoo http://gentoo.oregonstate.edu/" CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/share/config" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" PORTDIR="/usr/portage" DISTDIR="/usr/portage/distfiles" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR_OVERLAY="/usr/local/portage" USE="x86 oss apm avi crypt cups encode gif jpeg libg++ mikmod mmx mpeg ncurses nls pdflib png quicktime spell truetype xml2 xv zlib gtkhtml gdbm berkdb slang readline arts bonobo svga ggi tcltk java guile X sdl gpm tcpd pam libwww ssl perl python imlib oggvorbis gnome gtk qt kde motif opengl mysql sse evo lcms dvd xmms maildir mozilla samba alsa cdr fbcon directfb imap -3dnow aalib -gtk2 -xfs -esd apache2" COMPILER="gcc3" CHOST="i686-pc-linux-gnu" CFLAGS="-march=pentium3 -O3 -pipe -fomit-frame-pointer" CXXFLAGS="-march=pentium3 -O3 -pipe -fomit-frame-pointer" ACCEPT_KEYWORDS="x86 ~x86" MAKEOPTS="-j4" AUTOCLEAN="yes" SYNC="rsync://rsync.gentoo.org/gentoo-portage" FEATURES="sandbox ccache"
Just tried compiling it on a glibc-2.3.1-r2 system and ran into a different error: /var/tmp/portage/pwlib-1.4.7/work/pwlib/lib/obj_linux_x86_r/asner.o: file not re cognized: File truncated collect2: ld returned 1 exit status With glibc-2.3.2 it compiled fine. Retrying pwlib .10 on both systems. Stay tuned.
Version 1.4.10 compiles on both systems. Could you please try?
It seems as if this bug has something to do with expat 1.95.6. I wasn't able to compile pwlib 1.4.7 and 1.4.10 until I downgraded from expat 1.95.6 to 1.95.5-r1. That fixed it for me. Perhaps you could give it a try?
Downgrading to expat-1.95.5-r1 solved it. By the way it compiled on both glib-2.3.2 and glib-2.3.1-r1... I guess it is an expat bug.
Yes, it's an expat problem and I didn't have it because I used the stable version. Patch is on the way into portage. Please try 1.95.6-r1 as soon as available.
No complaints, closing this...
reopening for fixing
fixing
Closing old bugs.