Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 182214 - kde ebuilds fail on FreeBSD with libtool link errors
Summary: kde ebuilds fail on FreeBSD with libtool link errors
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: x86 FreeBSD
: High normal (vote)
Assignee: Gentoo/BSD Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-06-16 11:09 UTC by Sascha Lucas
Modified: 2007-09-15 06:58 UTC (History)
2 users (show)

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


Attachments
Patch ltmain.sh (x,1.37 KB, patch)
2007-09-13 16:27 UTC, Roy Marples (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Sascha Lucas 2007-06-16 11:09:07 UTC
build.log:
##########
Making all in kompmgr
gmake[3]: Entering directory `/var/tmp/portage/kde-base/kwin-3.5.7/work/kwin-3.5.7/kwin/kompmgr'
i686-gentoo-freebsd6.2-gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I/usr/kde/3.5/include -I/usr/qt/3/include -I.   -DQT_THREAD_SUPPORT  -D_THREAD_SAFE   -DNDEBUG -O2  -O2 -march=i686 -pipe -c kompmgr.c
/bin/bash ../../libtool --silent --tag=CC --mode=link i686-gentoo-freebsd6.2-gcc  -DNDEBUG -O2  -O2 -march=i686 -pipe   -o kompmgr  kompmgr.o   -lXcomposite -lXdamage -lXfixes -lXrender -lX11  -lXext -lm 
libtool: link: cannot find the library `'
gmake[3]: *** [kompmgr] Error 1
gmake[3]: Leaving directory `/var/tmp/portage/kde-base/kwin-3.5.7/work/kwin-3.5.7/kwin/kompmgr'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory `/var/tmp/portage/kde-base/kwin-3.5.7/work/kwin-3.5.7/kwin'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/var/tmp/portage/kde-base/kwin-3.5.7/work/kwin-3.5.7'
gmake: *** [all] Error 2

!!! ERROR: kde-base/kwin-3.5.7 failed.
Call stack:
  ebuild.sh, line 1621:   Called dyn_compile
  ebuild.sh, line 973:   Called qa_call 'src_compile'
  ebuild.sh, line 44:   Called src_compile
  kwin-3.5.7.ebuild, line 21:   Called kde-meta_src_compile
  kde-meta.eclass, line 380:   Called kde_src_compile
  kde.eclass, line 170:   Called kde_src_compile 'all'
  kde.eclass, line 340:   Called kde_src_compile 'myconf' 'configure' 'make'
  kde.eclass, line 336:   Called die
  
######################################

running 

i686-gentoo-freebsd6.2-gcc  -DNDEBUG -O2  -O2 -march=i686 -pipe   -o kompmgr  kompmgr.o   -lXcomposite -lXdamage -lXfixes -lXrender -lX11  -lXext -lm

in /var/tmp/portage/kde-base/kwin-3.5.7/work/kwin-3.5.7/kwin/kompmgr works. Perhaps a libtool problem?

I've finished merging kwin with FEATURES=noauto + ebuild kwin-3.5.7.ebuild {compile|install|postinst|qmerge}. Seems to work as expected.
Comment 1 Wulf Krueger (RETIRED) gentoo-dev 2007-06-16 12:16:01 UTC
Any ideas, bsd guys?
Comment 2 MT 2007-06-16 16:27:11 UTC
here compile and work correctly.


Portage 2.1.3_rc3 (default-bsd/fbsd/6.2/x86, gcc-4.1.2, freebsd-lib-6.2-r1, 6.2-RELEASE i386)
=================================================================
System uname: 6.2-RELEASE i386 i386
Gentoo Base System release 2.0.0_alpha3
Timestamp of tree: Sat, 16 Jun 2007 08:30:01 +0000
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python:     2.4.4-r4
dev-python/pycrypto: 2.0.1-r5
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.23b
virtual/os-headers:  6.2-r1
ACCEPT_KEYWORDS="x86-fbsd ~x86-fbsd"
AUTOCLEAN="yes"
CBUILD="i686-gentoo-freebsd6.2"
CFLAGS="-march=athlon64 -pipe -O2"
CHOST="i686-gentoo-freebsd6.2"
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/env.d /etc/env.d/java/ /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-march=athlon64 -pipe -O2"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--nospinner"
FEATURES="collision-protect distlocks fixpackages metadata-transfer parallel-fetch sfperms strict test unmerge-orphans userfetch userpriv"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LDFLAGS=""
LINGUAS="it"
MAKEOPTS="-j2 -s"
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 --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/sunrise /usr/portage/local/layman/drizzt-overlay /usr/portage/local/layman/java-overlay /usr/portage/local/layman/gechi /usr/portage/local/layman/wtk-cgi"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acpi branding chroot cli crypt dbus dri fam gif hal iconv java5 jpeg jpeg2k kdehiddenvisibility libg++ midi mp3 ncurses nls nsplugin ogg openal openexr opengl pam pcre png ppds readline reflection session spl ssl svg symlink test tiff truetype unicode usb vorbis x86-fbsd xml xorg zlib" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="FreeBSD" INPUT_DEVICES="keyboard mouse" KERNEL="FreeBSD" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="it" USERLAND="BSD" VIDEO_CARDS="vesa nv nvidia via"
Unset:  CTARGET, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 3 Sascha Lucas 2007-06-16 18:37:30 UTC
(In reply to comment #2)
> here compile and work correctly.

Thanks for telling...

I'm doing a fresh install and I'm out of sync for 3 or 4 days. will sync and post emerge --info later. Had some problems with read only shared portage-tree (bug 181638), but can't imagine how this can be related.
Comment 4 Sascha Lucas 2007-06-19 13:33:14 UTC
problem still there. seems to me like a parsing error of libtool, no idea where to look else or how to efficentliy debug libtool without "set -x" and tons of shell code. here is my emerge --info

Portage 2.1.3_rc4 (default-bsd/fbsd/6.2/x86, gcc-4.1.2, freebsd-lib-6.2-r2, 6.2-RELEASE i386)
=================================================================
System uname: 6.2-RELEASE i386 i386
Gentoo Base System release 2.0.0_alpha3
Timestamp of tree: Mon, 18 Jun 2007 06:20:01 +0000
ccache version 2.4 [enabled]
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python:     2.4.4-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r7
sys-devel/autoconf:  2.61
sys-devel/automake:  1.6.3, 1.7.9-r1, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.23b
virtual/os-headers:  6.2-r2
ACCEPT_KEYWORDS="x86-fbsd ~x86-fbsd"
AUTOCLEAN="yes"
CBUILD="i686-gentoo-freebsd6.2"
CFLAGS="-O2 -march=i686 -pipe"
CHOST="i686-gentoo-freebsd6.2"
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/env.d /etc/env.d/java/ /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -march=i686 -pipe"
DISTDIR="/mnt/linux/usr/portage/distfiles"
FEATURES="ccache collision-protect distlocks metadata-transfer sfperms strict unmerge-orphans"
GENTOO_MIRRORS="ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo"
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LINGUAS="de"
MAKEOPTS="-j2"
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 --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/mnt/linux/usr/portage"
PORTDIR_OVERLAY="/mnt/linux/usr/local/portage /usr/local/portage"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 aac acpi aiglx arts asf audiofile bash-completion berkdb bluetooth bzip2 cdparanoia cdr cisco cli cpudetection crypt css cups curl dbus divx dlloader dmi dmx dri dv dvd dvdr dvdread exif ffmpeg flac gdbm gimp glitz gpgme gphoto2 gs hal iconv idn ieee1394 imagemagick imap imlib irda java java5 jpeg kde kdeenablefinal latex lcms libg++ logitech-mouse logrotate lzo mbox midi mmx mmxext mng mp3 mplayer ncurses nls nsplugin ogg opengl oss pam pcmcia pcre pdf perl png pop ppds python rdesktop readline realmedia reflection samba sasl scanner session slang smime smtp spell spl ssl svg tcpd tetex theora threads tiff udev unicode usb utempter vnc vorbis wifi win32codecs wmf wmp x264 x86-fbsd xcomposite xine xinerama xml2 xorg xv xvid xvmc zlib" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="FreeBSD" INPUT_DEVICES="joystick keyboard mouse vmmouse void" KERNEL="FreeBSD" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" USERLAND="BSD" VIDEO_CARDS="mach64 radeon dummy fbdev nv nvidia vesa vga vmware"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 5 Marcus D. Hanwell (RETIRED) gentoo-dev 2007-07-15 17:28:55 UTC
Reassigning - this looks like a porting issue to me.
Comment 6 Dan Coats 2007-08-18 14:17:19 UTC
I get the same failure on both of my gfbsd boxes.

/bin/bash ../../libtool --silent --tag=CC --mode=link i686-gentoo-freebsd6.2-gcc  -DNDEBUG -O2  -O2 -mtune=i686 -pipe   -o kompmgr  kompmgr.o   -lXcomposite
 -lXdamage -lXfixes -lXrender -lX11  -lXext -lm
libtool: link: cannot find the library `'
gmake[3]: *** [kompmgr] Error 1
gmake[3]: Leaving directory `/var/tmp/portage/kde-base/kwin-3.5.7/work/kwin-3.5.7/kwin/kompmgr'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory `/var/tmp/portage/kde-base/kwin-3.5.7/work/kwin-3.5.7/kwin'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/var/tmp/portage/kde-base/kwin-3.5.7/work/kwin-3.5.7'
gmake: *** [all] Error 2
 *
 * ERROR: kde-base/kwin-3.5.7 failed.


# emerge --info
Portage 2.1.3.3 (default-bsd/fbsd/6.2/x86, gcc-4.2.0, freebsd-lib-6.2-r1, 6.2-RELEASE i386)
=================================================================
System uname: 6.2-RELEASE i386 i386
Gentoo Base System release 2.0.0_rc2
Timestamp of tree: Wed, 08 Aug 2007 22:00:01 +0000
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python:     2.4.4-r4
dev-python/pycrypto: 2.0.1-r6
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.6.3, 1.7.9-r1, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17-r1
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.24
virtual/os-headers:  6.2-r1
ACCEPT_KEYWORDS="x86-fbsd ~x86-fbsd"
AUTOCLEAN="yes"
CBUILD="i686-gentoo-freebsd6.2"
CFLAGS="-O2 -mtune=i686 -pipe"
CHOST="i686-gentoo-freebsd6.2"
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/env.d /etc/env.d/java/ /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -mtune=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache collision-protect distlocks metadata-transfer parallel-fetch sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.mirrors.pair.com/ http://mirror.datapipe.net/gentoo http://open-systems.ufl.edu/mirrors/gentoo http://mirror.phy.olemiss.edu/m
irror/gentoo"
MAKEOPTS="-j2"
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 --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac accessability acl adns bash-completion bcmath berkdb bidi bindinst browserplugin bzip2 cairo calendar cli cracklib crypt cups curlwrappers db
us dedicated dga dlloader dri dts emacs emacs-w3 erandom ethereal expat fastcgi font ftp gd gdbm geoip glitz glut gnusetup gnutls gtkhtml hal iconv imap imm
qt-bc inifile innodb java java5 javascript jp2 jpeg jpeg2k libcaca libclamv live lzo midi mime ming mmap motif mpi ncurses nls nsplugin nvidia oav objc orac
le oscar oss pam pcre pdf perl pic posix ppds python qt3support readline reflection samba session shared spl sqlite sse ssl symlink tcltktcpd tcpd test thre
ads unicode urandom usb usepackagedmakefiles userlocales vcd vhosts x86-fbsd xcomposite xml xorg xpm xprint zeroconf zlib" ALSA_CARDS="intel8x0" ALSA_PCM_PL
UGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm
softvol" ELIBC="FreeBSD" INPUT_DEVICES="keyboard mouse" KERNEL="FreeBSD" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text"
 USERLAND="BSD" VIDEO_CARDS="nv nvidia vesa"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMP
Comment 7 Dan Coats 2007-08-18 14:49:58 UTC
removing xcomposite USE alllows build to complete
Comment 8 Roy Marples (RETIRED) gentoo-dev 2007-08-24 11:36:00 UTC
This seems to be a libtool issue. Using a newer libtool (read the system one) fixes the error reported.

I am unsure how to get kwin to generate a newer libtool though.
Comment 9 Roy Marples (RETIRED) gentoo-dev 2007-09-13 16:27:45 UTC
Created attachment 130841 [details, diff]
Patch ltmain.sh

OK, this is the required patch for ltmain.sh.
Anyone who knows the libtool or kde eclasses should post there thoughts on how to apply it here :)
Comment 10 Roy Marples (RETIRED) gentoo-dev 2007-09-13 16:31:01 UTC
I now get this with kdelibs when it's trying to build dcop so it's just become very critical. We need to fix this or drop the keyword :)
Comment 11 Roy Marples (RETIRED) gentoo-dev 2007-09-14 06:50:14 UTC
Fixed, I hope. Re-open if not
Comment 12 Wulf Krueger (RETIRED) gentoo-dev 2007-09-14 17:29:09 UTC
Re-opening as the fix had to be reverted.
Comment 13 Roy Marples (RETIRED) gentoo-dev 2007-09-15 06:58:02 UTC
Fixed with a different fix. Gotta love 3 year old libtools still being used by `bleeding edge` DE's :P