* [gentoo-user] Dependency problem
@ 2007-09-03 14:39 Hendrik Boom
2007-09-03 21:08 ` Lothar Braun
0 siblings, 1 reply; 2+ messages in thread
From: Hendrik Boom @ 2007-09-03 14:39 UTC (permalink / raw
To: gentoo-user
Well, with bare X up, I decided it was time to install a window manager.
I picked xfce4 and icewm.
I emerged xfce4, and after a lot of packages, it finally told me:
reemerge x11-libs/cairo with the X USE flag set
Well, I emerged icewm with no problems, then went back to xfce4 by
changing my use flags and asking it to reemerge everything that involved a
use-flag change. My new use flags were set in /etc/make.conf as
USE="cjk unicode X xprint"
This choked, on x11-apps/xclock-1.0.2.
The key messages seem to be:
/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/../../../../i686-pc-linux-gnu/bin/ld: warning: libexpat.so.0, needed by /usr/lib/gcc/i686-pc-linux-gnu/4.1.1/../../../libfontconfig.so, not found (try using -rpath or -rpath-link)
/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/../../../libfontconfig.so: undefined reference to `XML_SetElementHandler'
Could it be that some package failed to set some key dependency, and that
as a result libexpat.so.0 had not been created? I could of course try to
find which package should have created libexpat.so.0, or go on emerging
and try to skip xclock (if I knew how to do that), but I thought it might
be good to report this problem, and ask advice, in case
(a) one of you could advise me how best to get past this point, or
(b) it really is a problem in gentoo, and someone might want to fix it.
I'm starting to wonder, by the way, whether most beginners with gentoo
have this much trouble, or whether I'm just knowledgeable enough to blunder
into problems other miss in blissful ignorance, and not yet knowledgeable
enough to avoid them :-)
I paste in the complete
/var/tmp/portage/x11-apps/xclock-1.0.2/temp/build.log file below.
-- hendrik
>>> Unpacking source...
>>> Unpacking xclock-1.0.2.tar.bz2 to /var/tmp/portage/x11-apps/xclock-1.0.2/work
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/x11-apps/xclock-1.0.2/work/xclock-1.0.2 ...
* econf: updating xclock-1.0.2/config.guess with /usr/share/gnuconfig/config.guess
* econf: updating xclock-1.0.2/config.sub with /usr/share/gnuconfig/config.sub
./configure --prefix=/usr --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --prefix=/usr --datadir=/usr/share --enable-xprint --build=i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for i686-pc-linux-gnu-gcc... i686-pc-linux-gnu-gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether i686-pc-linux-gnu-gcc accepts -g... yes
checking for i686-pc-linux-gnu-gcc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of i686-pc-linux-gnu-gcc... gcc3
checking for a BSD-compatible install... /usr/bin/install -c
checking for strlcpy... no
checking for i686-pc-linux-gnu-pkg-config... no
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for XCLOCK_X11... yes
checking for TMP_XAW... yes
checking for XFT... yes
checking for library containing sqrt... -lm
checking for XKB... yes
checking for APPDEFS... yes
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
config.status: executing depfiles commands
make all-am
make[1]: Entering directory `/var/tmp/portage/x11-apps/xclock-1.0.2/work/xclock-1.0.2'
if i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/include/freetype2 -O2 -march=i686 -pipe -MT xclock-Clock.o -MD -MP -MF ".deps/xclock-Clock.Tpo" -c -o xclock-Clock.o `test -f 'Clock.c' || echo './'`Clock.c; \
then mv -f ".deps/xclock-Clock.Tpo" ".deps/xclock-Clock.Po"; else rm -f ".deps/xclock-Clock.Tpo"; exit 1; fi
if i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/include/freetype2 -O2 -march=i686 -pipe -MT xclock-xclock.o -MD -MP -MF ".deps/xclock-xclock.Tpo" -c -o xclock-xclock.o `test -f 'xclock.c' || echo './'`xclock.c; \
then mv -f ".deps/xclock-xclock.Tpo" ".deps/xclock-xclock.Po"; else rm -f ".deps/xclock-xclock.Tpo"; exit 1; fi
cp XClock-color.ad XClock-color
cp XClock.ad XClock
sed -e 's|__vendorversion__|"xclock 1.0.2" "X Version 11"|' -e 's|__xorgversion__|"xclock 1.0.2" "X Version 11"|' -e 's|__xservername__|Xorg|g' -e 's|__xconfigfile__|xorg.conf|g' -e 's|__projectroot__|/usr|g' -e 's|__apploaddir__|/usr/share/X11/app-defaults|' -e 's|__appmansuffix__|1x|g' -e 's|__libmansuffix__|3x|g' -e 's|__adminmansuffix__|8|g' -e 's|__miscmansuffix__|7|g' -e 's|__filemansuffix__|5x|g' < xclock.man > xclock.1x
i686-pc-linux-gnu-gcc -O2 -march=i686 -pipe -o xclock xclock-Clock.o xclock-xclock.o -lX11 -lXaw8 -lXmu -lXt -lX11 -lSM -lICE -lXau -lXft -lXrender -lfontconfig -lfreetype -lz -lX11 -lxkbfile -lm
/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/../../../../i686-pc-linux-gnu/bin/ld: warning: libexpat.so.0, needed by /usr/lib/gcc/i686-pc-linux-gnu/4.1.1/../../../libfontconfig.so, not found (try using -rpath or -rpath-link)
/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/../../../libfontconfig.so: undefined reference to `XML_SetElementHandler'
/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/../../../libfontconfig.so: undefined reference to `XML_SetDoctypeDeclHandler'
/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/../../../libfontconfig.so: undefined reference to `XML_ParserFree'
/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/../../../libfontconfig.so: undefined reference to `XML_SetCharacterDataHandler'
/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/../../../libfontconfig.so: undefined reference to `XML_ErrorString'
/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/../../../libfontconfig.so: undefined reference to `XML_ParseBuffer'
/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/../../../libfontconfig.so: undefined reference to `XML_ParserCreate'
/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/../../../libfontconfig.so: undefined reference to `XML_SetUserData'
/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/../../../libfontconfig.so: undefined reference to `XML_GetErrorCode'
/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/../../../libfontconfig.so: undefined reference to `XML_GetBuffer'
/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/../../../libfontconfig.so: undefined reference to `XML_GetCurrentLineNumber'
collect2: ld returned 1 exit status
make[1]: *** [xclock] Error 1
make[1]: Leaving directory `/var/tmp/portage/x11-apps/xclock-1.0.2/work/xclock-1.0.2'
make: *** [all] Error 2
!!! ERROR: x11-apps/xclock-1.0.2 failed.
Call stack:
ebuild.sh, line 1638: Called dyn_compile
ebuild.sh, line 985: Called qa_call 'src_compile'
ebuild.sh, line 44: Called src_compile
ebuild.sh, line 1328: Called x-modular_src_compile
x-modular.eclass, line 337: Called x-modular_src_make
x-modular.eclass, line 332: Called die
!!! emake failed
!!! If you need support, post the topmost build error, and the call stack if relevant.
!!! A complete build log is located at '/var/tmp/portage/x11-apps/xclock-1.0.2/temp/build.log'.
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [gentoo-user] Dependency problem
2007-09-03 14:39 [gentoo-user] Dependency problem Hendrik Boom
@ 2007-09-03 21:08 ` Lothar Braun
0 siblings, 0 replies; 2+ messages in thread
From: Lothar Braun @ 2007-09-03 21:08 UTC (permalink / raw
To: gentoo-user
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi Hendrik,
Hendrik Boom wrote:
> Well, with bare X up, I decided it was time to install a window manager.
> I picked xfce4 and icewm.
>
> I emerged xfce4, and after a lot of packages, it finally told me:
>
> reemerge x11-libs/cairo with the X USE flag set
>
> Well, I emerged icewm with no problems, then went back to xfce4 by
> changing my use flags and asking it to reemerge everything that involved a
> use-flag change. My new use flags were set in /etc/make.conf as
>
> USE="cjk unicode X xprint"
>
> This choked, on x11-apps/xclock-1.0.2.
>
> The key messages seem to be:
>
> /usr/lib/gcc/i686-pc-linux-gnu/4.1.1/../../../../i686-pc-linux-gnu/bin/ld: warning: libexpat.so.0, needed by /usr/lib/gcc/i686-pc-linux-gnu/4.1.1/../../../libfontconfig.so, not found (try using -rpath or -rpath-link)
> /usr/lib/gcc/i686-pc-linux-gnu/4.1.1/../../../libfontconfig.so: undefined reference to `XML_SetElementHandler'
>
> Could it be that some package failed to set some key dependency, and that
> as a result libexpat.so.0 had not been created? I could of course try to
> find which package should have created libexpat.so.0, or go on emerging
> and try to skip xclock (if I knew how to do that), but I thought it might
> be good to report this problem, and ask advice, in case
> (a) one of you could advise me how best to get past this point, or
> (b) it really is a problem in gentoo, and someone might want to fix it.
You probably pulled an update from dev-libs/expat while you're system
adopted the new use flags (if you do "emerge --newuse world" emerge will
actually perform "emerge --newuse --update world").
The expat update deleted /usr/lib/libexpat.so.0 and replaced it with
/usr/lib/libexpat.so.1. All programs that where linked against
libexpat.so.0 won't therefore work any longer.
You need to run "revdep-rebuild" (from app-portage/gentoolkit) in order
to fix the problem. Revdep-rebuild will search for all programs that
link against the old library and recompile them (so that they link
against the new version of expat). Try to emerge xfce4 after
revdep-rebuild finished and your problem should be gone.
Regards,
Lothar
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFG3He2OlpYSeF9JmYRAjpQAJ0fMin5zc419fUMY8Mok1581ecq6QCghfTo
W3IwK7UkFLvA9F6IN+9InKI=
=CaG6
-----END PGP SIGNATURE-----
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-09-03 21:19 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-09-03 14:39 [gentoo-user] Dependency problem Hendrik Boom
2007-09-03 21:08 ` Lothar Braun
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox