Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
libxml2.so: undefined reference to `gzdirect'
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
Sheldon
n00b
n00b


Joined: 12 Oct 2007
Posts: 47
Location: Mömbris

PostPosted: Sun Nov 07, 2010 3:07 pm    Post subject: libxml2.so: undefined reference to `gzdirect' Reply with quote

A new gentoo Installation. Now I try to emerge kdebase-startkde.
Is it possible, to install KDE 4.5.5?

Error:
--------
checking for GIO... yes
checking for xmllint... /usr/bin/xmllint
configure: creating ./config.status
config.status: creating Makefile
config.status: creating shared-mime-info.pc
config.status: creating po/Makefile.in
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing default-1 commands
config.status: executing po/stamp-it commands
>>> Source configured.
>>> Compiling source in /var/tmp/portage/x11-misc/shared-mime-info-0.80/work/shared-mime-info-0.80 ...
make -j3
Makefile:1057: warning: overriding commands for target `all'
Makefile:314: warning: ignoring old commands for target `all'
LC_ALL=C /usr/bin/intltool-merge -x -u -c ./po/.intltool-merge-cache ./po freedesktop.org.xml.in freedesktop.org.xml
Making check in .
make[1]: Entering directory `/var/tmp/portage/x11-misc/shared-mime-info-0.80/work/shared-mime-info-0.80'
Makefile:1057: warning: overriding commands for target `all'
Makefile:314: warning: ignoring old commands for target `all'
i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I/usr/include/libxml2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -O2 -march=i686 -pipe -Wall -Wstrict-prototypes -Wmissing-prototypes -Wwrite-strings -c -o update_mime_database-update-mime-database.o `test -f 'update-mime-database.c' || echo './'`update-mime-database.c
Generating and caching the translation database
Merging translations into freedesktop.org.xml.
update-mime-database.c: In function 'write16':
update-mime-database.c:1011: warning: ignoring return value of 'fwrite', declared with attribute warn_unused_result
update-mime-database.c: In function 'write_magic_children':
update-mime-database.c:1779: warning: ignoring return value of 'fwrite', declared with attribute warn_unused_result
update-mime-database.c:1783: warning: ignoring return value of 'fwrite', declared with attribute warn_unused_result
update-mime-database.c: In function 'write_namespaces':
update-mime-database.c:1939: warning: ignoring return value of 'fwrite', declared with attribute warn_unused_result
update-mime-database.c: In function 'write_subclass':
update-mime-database.c:1957: warning: ignoring return value of 'fwrite', declared with attribute warn_unused_result
update-mime-database.c: In function 'write_aliases':
update-mime-database.c:1998: warning: ignoring return value of 'fwrite', declared with attribute warn_unused_result
update-mime-database.c: In function 'write_types':
update-mime-database.c:2029: warning: ignoring return value of 'fwrite', declared with attribute warn_unused_result
update-mime-database.c: In function 'write_one_icon':
update-mime-database.c:2046: warning: ignoring return value of 'fwrite', declared with attribute warn_unused_result
update-mime-database.c: In function 'main':
update-mime-database.c:3572: warning: ignoring return value of 'fwrite', declared with attribute warn_unused_result
update-mime-database.c:3672: warning: ignoring return value of 'fwrite', declared with attribute warn_unused_result
CREATED freedesktop.org.xml
i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I/usr/include/libxml2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -O2 -march=i686 -pipe -Wall -Wstrict-prototypes -Wmissing-prototypes -Wwrite-strings -c -o test_subclassing-test-subclassing.o `test -f 'test-subclassing.c' || echo './'`test-subclassing.c
i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I/usr/include/libxml2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -O2 -march=i686 -pipe -Wall -Wstrict-prototypes -Wmissing-prototypes -Wwrite-strings -c -o test_tree_magic-test-tree-magic.o `test -f 'test-tree-magic.c' || echo './'`test-tree-magic.c
test-tree-magic.c: In function 'read_tree_magic_from_directory':
test-tree-magic.c:207: warning: 'match' may be used uninitialized in this function
i686-pc-linux-gnu-gcc -I/usr/include/libxml2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -O2 -march=i686 -pipe -Wall -Wstrict-prototypes -Wmissing-prototypes -Wwrite-strings -Wl,-O1 -Wl,--as-needed -o test-subclassing test_subclassing-test-subclassing.o -lxml2 -lglib-2.0
/usr/lib/gcc/i686-pc-linux-gnu/4.4.4/../../../libxml2.so: undefined reference to `gzdirect'
collect2: ld returned 1 exit status
make[1]: *** [test-subclassing] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory `/var/tmp/portage/x11-misc/shared-mime-info-0.80/work/shared-mime-info-0.80'
make: *** [check-recursive] Error 1
make: *** Waiting for unfinished jobs....
* ERROR: x11-misc/shared-mime-info-0.80 failed:
* emake failed
*
* Call stack:
* ebuild.sh, line 54: Called src_compile
* environment, line 156: Called _eapi2_src_compile
* ebuild.sh, line 646: Called die
* The specific snippet of code:
* emake || die "emake failed"
*
* If you need support, post the output of 'emerge --info =x11-misc/shared-mime-info-0.80',
* the complete build log and the output of 'emerge -pqv =x11-misc/shared-mime-info-0.80'.
* The complete build log is located at '/var/tmp/portage/x11-misc/shared-mime-info-0.80/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/x11-misc/shared-mime-info-0.80/temp/environment'.
* S: '/var/tmp/portage/x11-misc/shared-mime-info-0.80/work/shared-mime-info-0.80'

>>> Failed to emerge x11-misc/shared-mime-info-0.80, Log file:

>>> '/var/tmp/portage/x11-misc/shared-mime-info-0.80/temp/build.log'

* Messages for package x11-misc/shared-mime-info-0.80:

* ERROR: x11-misc/shared-mime-info-0.80 failed:
* emake failed
*
* Call stack:
* ebuild.sh, line 54: Called src_compile
* environment, line 156: Called _eapi2_src_compile
* ebuild.sh, line 646: Called die
* The specific snippet of code:
* emake || die "emake failed"
*
* If you need support, post the output of 'emerge --info =x11-misc/shared-mime-info-0.80',
* the complete build log and the output of 'emerge -pqv =x11-misc/shared-mime-info-0.80'.
* The complete build log is located at '/var/tmp/portage/x11-misc/shared-mime-info-0.80/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/x11-misc/shared-mime-info-0.80/temp/environment'.
* S: '/var/tmp/portage/x11-misc/shared-mime-info-0.80/work/shared-mime-info-0.80'




emerge --info
---------------
ortage 2.1.8.3 (default/linux/x86/10.0, gcc-4.4.4, glibc-2.11.2-r3, 2.6.30-gentoo-r6 i686)
=================================================================
System uname: Linux-2.6.30-gentoo-r6-i686-Intel-R-_Core-TM-2_CPU_6300_@_1.86GHz-with-gentoo-1.12.13
Timestamp of tree: Sun, 07 Nov 2010 09:45:01 +0000
app-shells/bash: 4.1_p7
dev-lang/python: 2.6.5-r3, 3.1.2-r4
sys-apps/baselayout: 1.12.13
sys-apps/sandbox: 2.3-r1
sys-devel/autoconf: 2.65-r1
sys-devel/automake: 1.11.1
sys-devel/binutils: 2.20.1-r1
sys-devel/gcc: 4.4.4-r2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool: 2.2.10
sys-devel/make: 3.81-r2
virtual/os-headers: 2.6.30-r1
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixpackages news parallel-fetch parallel_fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gd.tuwien.ac.at/opsys/linux/gentoo/ ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://gentoo.mneisen.org/ http://de-mirror.org/distro/gentoo/ ftp://de-mirror.org/distro/gentoo/ "
LANG="de_DE.euro"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="de"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X acl acpi alsa berkdb bzip2 cdr cli cracklib crypt css cups cxx dbus dri dvd dvdr ffmpeg firefox fortran gdbm gpm hal iconv ieee1394 kde lm_sensors modules mp3 mudflap ncurses nls nptl nptlonly opengl openmp pam pcre perl pppd python qt3 qt3support qt4 raw readline session sql ssl svg sysfs tcpd unicode vcd vdpau vorbis webkit x86 xinerama xorg" ALSA_CARDS="snd_hda_intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" DVB_CARDS="ttpci" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" PHP_TARGETS="php5-2" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia fbdev vesa vga v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21631

PostPosted: Sun Nov 07, 2010 4:50 pm    Post subject: Re: libxml2.so: undefined reference to `gzdirect' Reply with quote

Sheldon wrote:
build.log:
i686-pc-linux-gnu-gcc -I/usr/include/libxml2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -O2 -march=i686 -pipe -Wall -Wstrict-prototypes -Wmissing-prototypes -Wwrite-strings  -Wl,-O1 -Wl,--as-needed -o test-subclassing test_subclassing-test-subclassing.o -lxml2 -lglib-2.0                 
/usr/lib/gcc/i686-pc-linux-gnu/4.4.4/../../../libxml2.so: undefined reference to `gzdirect'
What is the output of scanelf -B -n /usr/lib/libxml2.so ; emerge --pretend --verbose sys-libs/zlib; emerge --pretend --verbose dev-libs/libxml2; eix -e sys-libs/zlib -o -e dev-libs/libxml2? libxml2.so should have been linked to libz.so.1 (among other things), which would provide this symbol.
Sheldon wrote:
emerge --info:
Portage 2.1.8.3 (default/linux/x86/10.0, gcc-4.4.4, glibc-2.11.2-r3, 2.6.30-gentoo-r6 i686)
=================================================================                         
System uname: Linux-2.6.30-gentoo-r6-i686-Intel-R-_Core-TM-2_CPU_6300_@_1.86GHz-with-gentoo-1.12.13
I think your system is capable of running amd64. Did you intend to choose x86?
Back to top
View user's profile Send private message
Sheldon
n00b
n00b


Joined: 12 Oct 2007
Posts: 47
Location: Mömbris

PostPosted: Sun Nov 07, 2010 6:51 pm    Post subject: Reply with quote

I think, I have a Intel Core-2 Prozessor, E6???, should i run amd64?

(chroot) keko etc # scanelf -B -n /usr/lib/libxml2.so
ET_DYN libdl.so.2,libz.so.1,libm.so.6,libc.so.6 /usr/lib/libxml2.so
(chroot) keko etc # emerge --pretend --verbose sys-libs/zlib

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild R ] sys-libs/zlib-1.2.3-r1 416 kB

Total: 1 package (1 reinstall), Size of downloads: 416 kB
(chroot) keko etc # emerge --pretend --verbose dev-libs/libxml2

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild R ] dev-libs/libxml2-2.7.7 USE="python readline -debug -doc -examples -ipv6 -test" 0 kB

Total: 1 package (1 reinstall), Size of downloads: 0 kB


(chroot) keko etc # eix -e sys-libs/zlib -o -e dev-libs/libxml2
[I] dev-libs/libxml2
Available versions: (2) 2.7.6 2.7.7
{debug doc examples ipv6 python readline test}
Installed versions: 2.7.7(2)(18:27:21 11/07/10)(python readline -debug -doc -examples -ipv6 -test)
Homepage: http://www.xmlsoft.org/
Description: Version 2 of the library to manipulate XML files

[I] sys-libs/zlib
Available versions: 1.2.3-r1 ~1.2.5-r2
Installed versions: 1.2.3-r1(18:48:17 11/02/10)
Homepage: http://www.zlib.net/
Description: Standard (de)compression library

Found 2 matches.
Back to top
View user's profile Send private message
Sheldon
n00b
n00b


Joined: 12 Oct 2007
Posts: 47
Location: Mömbris

PostPosted: Sun Nov 07, 2010 7:20 pm    Post subject: Reply with quote

I think, that is Not exactly what you meant. I made a ln -s Libz.so libxml2.so. But this did Not work too.
Back to top
View user's profile Send private message
Sheldon
n00b
n00b


Joined: 12 Oct 2007
Posts: 47
Location: Mömbris

PostPosted: Sun Nov 07, 2010 9:51 pm    Post subject: Reply with quote

Thank's for the help and all. Was my own gaucheness.
During compiling the source-code of zlib and xmllib I found in subdirecotry
of some programms I've in mind to use a rather old zlib....
But why got the compiler this old one?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum