Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 148017 - kde-base/kdelibs-3.5.4{-r1,} fails to compile
Summary: kde-base/kdelibs-3.5.4{-r1,} fails to compile
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: All Other
: High normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-17 21:57 UTC by Charlie Shepherd (RETIRED)
Modified: 2006-09-29 12:02 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Charlie Shepherd (RETIRED) gentoo-dev 2006-09-17 21:57:34 UTC
kdelibs 3.5.4 and 3.5.4-r1 both fail to compile with this error:

/bin/sh ../../libtool --silent --tag=CXX --mode=link i686-pc-linux-gnu-g++  -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -DNDEBUG -DNO_DEBUG -O2 -march=i686 -O2 -fomit-frame-pointer -pipe -fno-ident -fweb -frename-registers -ftracer -Wall -Wformat-security -Wmissing-format-attribute -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common -fvisibility=hidden -fvisibility-inlines-hidden  -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION    -o libkatepart.la -rpath /usr/kde/3.5/lib/kde3 -L/usr/kde/3.5/lib -L/usr/qt/3/lib -L/usr/lib    -avoid-version -module -no-undefined -Wl,--no-undefined -Wl,--allow-shlib-undefined -R /usr/kde/3.5/lib -R /usr/kde/3.5/lib -R /usr/qt/3/lib -R /usr/lib  katesearch.lo katebuffer.lo katecmds.lo kateundo.lo katecursor.lo katedialogs.lo katedocument.lo katefactory.lo katehighlight.lo katesyntaxdocument.lo katetextline.lo kateview.lo kateconfig.lo kateviewhelpers.lo katecodecompletion.lo katedocumenthelpers.lo katecodefoldinghelpers.lo kateviewinternal.lo katebookmarks.lo kateprinter.lo katefont.lo katelinerange.lo katesupercursor.lo katearbitraryhighlight.lo katerenderer.lo kateattribute.lo kateautoindent.lo katefiletype.lo kateschema.lo katetemplatehandler.lo katejscript.lo katespell.lo kateindentscriptabstracts.lo kateluaindentscript.lo katedocument_skel.lo ../interfaces/libkatepartinterfaces.la ../../kdeprint/libkdeprint.la ../../kutils/libkutils.la ../../kjs/libkjs.la -llua -llualib
.libs/kateluaindentscript.o: In function `KateLUAIndentScriptImpl::setupInterpreter(QString&)':
kateluaindentscript.cpp:(.text+0x1218): undefined reference to `luaopen_base'
kateluaindentscript.cpp:(.text+0x1223): undefined reference to `luaopen_string'
kateluaindentscript.cpp:(.text+0x122e): undefined reference to `luaopen_table'
kateluaindentscript.cpp:(.text+0x1239): undefined reference to `luaopen_math'
kateluaindentscript.cpp:(.text+0x1244): undefined reference to `luaopen_io'
kateluaindentscript.cpp:(.text+0x124f): undefined reference to `luaopen_debug'
collect2: ld returned 1 exit status
make[3]: *** [libkatepart.la] Error 1
make[3]: Leaving directory `/var/tmp/portage/kdelibs-3.5.4-r1/work/kdelibs-3.5.4/kate/part'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/kdelibs-3.5.4-r1/work/kdelibs-3.5.4/kate'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/kdelibs-3.5.4-r1/work/kdelibs-3.5.4'
make: *** [all] Error 2

!!! ERROR: kde-base/kdelibs-3.5.4-r1 failed.

Portage 2.1.2_pre1 (default-linux/x86/2006.1, gcc-4.1.1/vanilla, glibc-2.4.20060329-r0, 2.6.18-rc6-mm2 i686)
=================================================================
System uname: 2.6.18-rc6-mm2 i686 Intel(R) Pentium(R) 4 CPU 2.80GHz
Gentoo Base System version 1.12.5
Last Sync: Sun, 17 Sep 2006 10:50:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [disabled]
app-admin/eselect-compiler: 2.0.0_rc2-r1
dev-java/java-config: 1.3.6-r1, 2.0.28-r1
dev-lang/python:     2.4.3-r3
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r6
dev-util/confcache:  0.4.2-r1
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.60
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.17.50.0.3
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=i686 -O2 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/eselect/compiler /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-march=i686 -O2 -fomit-frame-pointer -pipe -fno-ident -fweb -frename-registers -ftracer -Wall"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig candy collision-protect distlocks keepwork metadata-transfer nodoc noinfo parallel-fetch sandbox sfperms strict stricter userpriv usersandbox"
GENTOO_MIRRORS="http://gentoo.blueyonder.co.uk"
LANG="en_GB"
LC_ALL="en_GB"
LDFLAGS=""
LINGUAS="en en_GB"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/local/overlays/initng /usr/local/overlays/xgl-coffee /usr/local/overlays/pkgcore /usr/portage/local/layman/liquidx /usr/portage/local/layman/vmware /usr/portage/local/layman/initng /usr/portage/local/layman/hanno-xgl"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 7zip X X509 aac acl acpi alsa amd amuled ansi apache2 arts asf audacious bash-completion bzip2 cap ccache cdda cddb cdinstall cdparanoia cdr cdrom cgi chroot ck-plus cracklib crypt css cups curl curlwrappers custom-cflags dbus dhcp dillo dio directfb djbfft dnd dri dv dvdread edl elibc_glibc encode erandom exif ext-png ext-zlib extensions fastcgi fbcon fbsplash ffmpeg firefox flash fortify fpx geoip gif gimp gimpprint ginac glgd glibc-compat20 glibc-omitfp glitz glut gmp gmtfull gnuplot gpm graphviz gs gsl gtk gtk2 hal hardenedphp hbci hdf iconv icq ide idl image imap imlib imlib2 infopipe ipv6 irda irmc j2ee jabber javacomm javamail javascript jbig jboss jce jms jmx joystick jpeg jpeg2k jta jython kakasi kde kdehiddenvisibility kdenewldflags kdexdeltas kerberos kernel_linux kqemu krb4 latex lcms leim libclamav libdsk libgd libgda libsamplerate libwww linguas_en linguas_en_GB live lua lzo lzw m17n-lib mad maildir matroska mbox mcal mdb migemo mime mixer mjpeg mmap mmx mmxext mono mozcalendar mozdevelop mozsvg mozxmlterm mp3 mpeg mpi mplayer msn mule multislot music mysql mysqli mythtv nagios-dns nagios-ntp nagios-ping nagios-ssh ncurses net netcdf network neural nis nls no-old-linux nomalloccheck nowin nptl nptlonly ntlm ntpl oav objc ocaml offensive ogg oggvorbis openal opengl oscar ospfapi pam parse-clocks pcap pcntl pcre pdf perl pertty pg-hier pg-intdatetime pg-vacuumdelay php physfs pic plotutils png portaudio povray ppds pri print procmail python qa qt3 qt4 quicktime quotas quotes readline real reiser4 reiserfs risky rogue rplay sdl seamonkey semanticfix session sftplogging shared sharedmem slp smime sndfile snortsam socks5 sox sse sse-filters sse2 ssl suspend2 svga symlink sysvipc szip tcltk tcpd tga theora tidy tk transcode truetype uim unicode usb userland_GNU v4l v4l2 vcd vda video_cards_i810 videos virus-scan vorbis wddx webdav wifi win32codecs winbind wma wmf wxwindows xanim xatrix xchatdccserver xchattext xcomposite xemacs xface xgetdefault xine xml xmlreader xmlrpc xmlwriter xmms xorg xosd xpm xprint xrandr xscreensaver xsettings xv xvid xvmc yahoo yaz yp yv12 zaptel zeo zlib zvbi"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_RSYNC_EXTRA_OPTS

Mars portage # emerge -pv kdelibs

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

Calculating dependencies ... done!
[ebuild     U ] kde-base/kdelibs-3.5.4-r1 [3.5.3-r3] USE="acl alsa arts cups jpeg2k kdehiddenvisibility kerberos ssl -debug -doc -fam -kdeenablefinal* -legacyssl -noutempter% -openexr -spell -tiff* -xinerama -zeroconf (-kdenewldflags%*)" 0 kB
Comment 1 Caleb Tennis (RETIRED) gentoo-dev 2006-09-18 05:18:58 UTC
Do you (or did you) have lua installed?  For some reason, kate picked it up, but it seems as though you don't have the libraries on your system.
Comment 2 Charlie Shepherd (RETIRED) gentoo-dev 2006-09-18 10:17:53 UTC
dev-lang/lua-5.0.2 installed
Comment 3 Caleb Tennis (RETIRED) gentoo-dev 2006-09-22 05:47:53 UTC
See bug 120388.  I think if you re-emerge kdelibs with the lua flag enabled, then try emerging this package you should be set.
Comment 4 Charlie Shepherd (RETIRED) gentoo-dev 2006-09-22 10:15:39 UTC
Unfortunately it didn't work :(

But I did find a (surprising) fix. After grepping /usr/lib for the undefined references and finding /usr/lib/liblualib.so matched, I (hopefully) added it to the failing libtool command and hey presto it built! The command is now:

/bin/sh ../../libtool --silent --tag=CXX --mode=link i686-pc-linux-gnu-g++  -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -DNDEBUG -DNO_DEBUG -O2 -march=i686 -O2 -fomit-frame-pointer -pipe -fno-ident -fweb -frename-registers -ftracer -Wall -Wformat-security -Wmissing-format-attribute -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common -fvisibility=hidden -fvisibility-inlines-hidden  -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION   -Wl,-O1 -Wl,-zdynsort -Wl,--sort-common -Wl,-z,now -o libkatepart.la -rpath /usr/kde/3.5/lib/kde3 -L/usr/kde/3.5/lib -L/usr/qt/3/lib -L/usr/lib    -avoid-version -module -no-undefined -Wl,--no-undefined -Wl,--allow-shlib-undefined -R /usr/kde/3.5/lib -R /usr/kde/3.5/lib -R /usr/qt/3/lib -R /usr/lib  katesearch.lo katebuffer.lo katecmds.lo kateundo.lo katecursor.lo katedialogs.lo katedocument.lo katefactory.lo katehighlight.lo katesyntaxdocument.lo katetextline.lo kateview.lo kateconfig.lo kateviewhelpers.lo katecodecompletion.lo katedocumenthelpers.lo katecodefoldinghelpers.lo kateviewinternal.lo katebookmarks.lo kateprinter.lo katefont.lo katelinerange.lo katesupercursor.lo katearbitraryhighlight.lo katerenderer.lo kateattribute.lo kateautoindent.lo katefiletype.lo kateschema.lo katetemplatehandler.lo katejscript.lo katespell.lo kateindentscriptabstracts.lo kateluaindentscript.lo katedocument_skel.lo ../interfaces/libkatepartinterfaces.la ../../kdeprint/libkdeprint.la ../../kutils/libkutils.la ../../kjs/libkjs.la -llua -llualib /usr/lib/liblualib.so

(basically with an added /usr/lib/liblualib.so on the end). I can hack up a patch, but I am confused as to why this works, shouldn't -llualib basically link /usr/lib/liblualib.so?
Comment 5 Charlie Shepherd (RETIRED) gentoo-dev 2006-09-29 12:02:33 UTC
Sorry for the noise, I can't reproduce this after re-emerging lua.