Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 128143 - dev-libs/expat-2.0.0 fails during test phase
Summary: dev-libs/expat-2.0.0 fails during test phase
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Emanuele Giaquinta (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-30 10:51 UTC by Sandro Bonazzola (RETIRED)
Modified: 2006-04-18 03:27 UTC (History)
2 users (show)

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


Attachments
portage log (5693-expat-2.0.0.log,12.62 KB, text/plain)
2006-03-30 10:52 UTC, Sandro Bonazzola (RETIRED)
Details
expat-2.0.0-includes.patch (expat-2.0.0-includes.patch,517 bytes, patch)
2006-04-13 06:03 UTC, Diego Elio Pettenò (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Sandro Bonazzola (RETIRED) gentoo-dev 2006-03-30 10:51:38 UTC
/bin/sh ./libtool --silent --mode=link x86_64-pc-linux-gnu-gcc -I./lib -I. -march=athlon64 -Os -pipe -fforce-addr -ffast-math -msse2 -ftracer -m3dnow  -Wall -Wmissing-prototypes -Wstrict-prototypes -fexceptions -DHAVE_EXPAT_CONFIG_H    -o tests/runtests tests/runtests.o tests/chardata.o tests/minicheck.o libexpat.la
g++  -march=athlon64 -Os -pipe -fforce-addr -ffast-math -msse2 -ftracer -m3dnow    -c -o tests/runtestspp.o tests/runtestspp.cpp
In file included from tests/runtestspp.cpp:6:
tests/runtests.c: In function `void test_line_number_after_parse()':
tests/runtests.c:410: error: `XML_Size' was not declared in this scope
tests/runtests.c:410: error: expected `;' before "lineno"
tests/runtests.c:414: error: `lineno' was not declared in this scope
tests/runtests.c: In function `void test_column_number_after_parse()':
tests/runtests.c:428: error: `XML_Size' was not declared in this scope
tests/runtests.c:428: error: expected `;' before "colno"
tests/runtests.c:432: error: `colno' was not declared in this scope
tests/runtests.c: In function `void test_line_number_after_error()':
tests/runtests.c:514: error: `XML_Size' was not declared in this scope
tests/runtests.c:514: error: expected `;' before "lineno"
tests/runtests.c:518: error: `lineno' was not declared in this scope
tests/runtests.c: In function `void test_column_number_after_error()':
tests/runtests.c:534: error: `XML_Size' was not declared in this scope
tests/runtests.c:534: error: expected `;' before "colno"
tests/runtests.c:538: error: `colno' was not declared in this scope
tests/runtests.c: In function `int external_entity_handler(XML_ParserStruct*, const XML_Char*, const XML_Char*, const XML_Char*, const XML_Char*)':
tests/runtests.c:1179: warning: cast from pointer to integer of different size
tests/runtests.c:1191: warning: cast to pointer from integer of different size
make: *** [tests/runtestspp.o] Error 1

full portage log will be attached.
emerge --info:

Portage 2.1_pre7-r3 (default-linux/amd64/2006.0, gcc-3.4.6, glibc-2.4-r1, 2.6.15-gentoo-r7 x86_64)
=================================================================
System uname: 2.6.15-gentoo-r7 x86_64 AMD Athlon(tm) 64 Processor 3500+
Gentoo Base System version 1.12.0_pre16
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [enabled]
dev-lang/python:     2.4.2-r1
sys-apps/sandbox:    1.2.17
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=" -march=athlon64 -Os -pipe -fforce-addr -ffast-math -msse2 -ftracer -m3dnow "
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/share/X11/xkb /usr/share/config /var/bind /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS=" -march=athlon64 -Os -pipe -fforce-addr -ffast-math -msse2 -ftracer -m3dnow "
DISTDIR="/home/ftp/distfiles"
FEATURES="autoconfig ccache collision-protect cvs distlocks elog metadata-transfer multilib-strict sandbox sfperms sign strict stricter test userpriv"
GENTOO_MIRRORS="http://gentoo.osuosl.org/ http://mirror.ovh.net/gentoo-distfiles/ ftp://ftp.heanet.ie/pub/gentoo/ http://www.die.unipd.it/pub/Linux/distributions/gentoo-sources/ ftp://ftp.unina.it/pub/linux/distributions/gentoo http://gentoo.ngi.it http://mirror.switch.ch/ftp/mirror/gentoo/ ftp://mirror.switch.ch/mirror/gentoo/ "
LANG="it_IT.utf8"
LINGUAS="it"
PKGDIR="/home/ftp/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/overlays/migration-overlay /usr/local/overlays/tinyos /usr/local/overlays/gentoo-java-experimental"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="amd64 7zip X a52 aac aalib acl acpi alsa apache2 arts asf audiofile avi berkdb bitmap-fonts bzip2 cairo canvas ccache cdb cddb cdparanoia cdr chroot cli cpudetection crypt css ctype cups curl dba dbus dga directfb dlloader dri dts dv dvd dvdr dvdread dynagraph emboss encode erandom esd exif expat extrafilters fame fastbuild ffmpeg firefox flac fltk foomaticdb force-cgi-redirect ftp gd gdbm ggi gif gimp gimpprint glibc-omitfp glut gmp gnokii gnome gnutls gphoto2 gpm graphviz gstreamer gtk gtk2 gtkhtml guile hal idn ieee1394 imagemagick imlib ipv6 isdnlog ithreads java jbig jikes jpeg jpeg2k justify kde kdeenablefinal lcms ldap libcaca linuxthreads-tls lm_sensors logitech-mouse logrotate lzo lzw lzw-tiff mad mailwrapper mbox mdb memlimit mhash mikmod mjpeg mmap mng motif mozsvg mp3 mpeg mpm-worker musicbrainz mysql ncurses nls nptl nptlonly numeric nvidia odbc offensive ogg on-the-fly-crypt openexr opengl oss pam pcre pcsc-lite pdf pdflib perl php png posix povray ppds pppd python qt quicktime rdesktop readline rtc samba scanner sdl session simplexml slang smp snmp soap sockets speex spell spl ssl subversion svg sysfs tcltk tcpd test tetex tga theora threads tidy tiff timidity tokenizer truetype truetype-fonts type1-fonts unicode usb userlocales utf8 v4l v4l2 vcd vda vorbis wmf xcomposite xine xinerama xml xml2 xmms xpm xscreensaver xsl xv xvid yv12 zeroconf zlib elibc_glibc input_devices_mouse input_devices_evdev input_devices_keyboard kernel_linux linguas_it userland_GNU video_cards_nvidia"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, LC_ALL, LDFLAGS, MAKEOPTS
Comment 1 Sandro Bonazzola (RETIRED) gentoo-dev 2006-03-30 10:52:31 UTC
Created attachment 83449 [details]
portage log

Full portage log.
Comment 2 Jon Hood 2006-03-30 19:50:52 UTC
without the "test" USE flag, expat-2 installs. This causes other applications to fail to build:

lilypond:
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.6/../../../../x86_64-pc-linux-gnu/bin/ld: warning: libexpat.so.0, needed by /usr/lib64/libfontconfig.so, not found (try using -rpath or -rpath-link)
/usr/lib64/libfontconfig.so: undefined reference to `XML_SetElementHandler'
/usr/lib64/libfontconfig.so: undefined reference to `XML_SetDoctypeDeclHandler'
/usr/lib64/libfontconfig.so: undefined reference to `XML_ParserFree'
/usr/lib64/libfontconfig.so: undefined reference to `XML_SetCharacterDataHandler'
/usr/lib64/libfontconfig.so: undefined reference to `XML_ErrorString'
/usr/lib64/libfontconfig.so: undefined reference to `XML_ParseBuffer'
/usr/lib64/libfontconfig.so: undefined reference to `XML_ParserCreate'
/usr/lib64/libfontconfig.so: undefined reference to `XML_SetUserData'
/usr/lib64/libfontconfig.so: undefined reference to `XML_GetErrorCode'
/usr/lib64/libfontconfig.so: undefined reference to `XML_GetBuffer'
/usr/lib64/libfontconfig.so: undefined reference to `XML_GetCurrentLineNumber'
collect2: ld returned 1 exit status
make[1]: *** [out/lilypond] Error 1
make[1]: Leaving directory `/var/tmp/portage/lilypond-2.8.0-r1/work/lilypond-2.8.0/lily'
make: *** [all] Error 2

and existing applications to fail to run:
$ thunderbird
No running windows found
/usr/lib64/mozilla-thunderbird/thunderbird-bin: error while loading shared libraries: libexpat.so.0: cannot open shared object file: No such file or directory
thunderbird-bin exited with non-zero status (127)

Downgrading to expat 1.9.x fixes the problem.
Comment 3 Jon Hood 2006-03-30 19:56:03 UTC
I apologize, my issue was unrelated in not using revdep-rebuild.
Comment 4 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-04-13 06:03:09 UTC
Created attachment 84563 [details, diff]
expat-2.0.0-includes.patch

Okay this patch should make use of the right compile line when building C++ sources, thus solving this issue (that becomes visible only when there's no expat or a 1.x expat installed).
Comment 5 Sandro Bonazzola (RETIRED) gentoo-dev 2006-04-15 03:02:39 UTC
(In reply to comment #4)
> Created an attachment (id=84563) [edit]
> expat-2.0.0-includes.patch

The patch works for me.
Comment 6 Emanuele Giaquinta (RETIRED) gentoo-dev 2006-04-18 03:27:10 UTC
fixed, thanks.