yaboot does not depend on ext2fsprogs with the static-libs USE flag on, and equally, ext2fsprogs doesn't honour it (see #406079) Reproducible: Always Actual Results: ld -Ttext 0x100000 -Bstatic -melf32ppclinux second/crt0.o second/yaboot.o second/cache.o second/prom.o second/file.o second/partition.o second/fs.o second/cfg.o second/setjmp.o second/cmdline.o second/fs_of.o second/fs_ext2.o second/fs_iso.o second/fs_swap.o second/iso_util.o lib/nonstd.o lib/nosys.o lib/string.o lib/strtol.o lib/vsprintf.o lib/ctype.o lib/malloc.o lib/strstr.o lib/ssp.o second/md5.o second/fs_xfs.o second/fs_reiserfs.o -lext2fs `powerpc-unknown-linux-gnu-gcc -m32 -print-libgcc-file-name` -o second/yaboot ld: cannot find -lext2fs Expected Results: Depend on ext2fsprogs[static-libs] and link against libext2fs.a Portage 2.2.0_alpha84 (default/linux/powerpc/ppc64/10.0/32bit-userland/desktop, gcc-4.5.3, glibc-2.14.1-r2, 3.2.5-gentoo.omega ppc64) ================================================================= System uname: Linux-3.2.5-gentoo.omega-ppc64-PPC970MP,_altivec_supported-with-gentoo-2.1 Timestamp of tree: Mon, 27 Feb 2012 02:45:01 +0000 ccache version 3.1.7 [enabled] app-shells/bash: 4.2_p20 dev-java/java-config: 2.1.11-r3 dev-lang/python: 2.7.2-r3, 3.2.2 dev-util/ccache: 3.1.7 dev-util/cmake: 2.8.7-r3 dev-util/pkgconfig: 0.26 sys-apps/baselayout: 2.1 sys-apps/openrc: 0.9.8.4 sys-apps/sandbox: 2.5 sys-devel/autoconf: 2.13, 2.68 sys-devel/automake: 1.9.6-r3, 1.10.3, 1.11.3 sys-devel/binutils: 2.22-r1 sys-devel/gcc: 4.5.3-r2 sys-devel/gcc-config: 1.5-r2 sys-devel/libtool: 2.4.2 sys-devel/make: 3.82-r3 sys-kernel/linux-headers: 3.2 (virtual/os-headers) sys-libs/glibc: 2.14.1-r2 Repositories: gentoo kde-sunset java-overlay ppc64 xmmsroot2_overlay fixes-overlay kde3-overlay Installed sets: @system ACCEPT_KEYWORDS="ppc ~ppc" ACCEPT_LICENSE="@FSF-APPROVED-EXT @X11-LICENSES @PRESUMED-FOSS @CREATIVE-COMMONS adobe-ps freedist MPEG-4" CBUILD="powerpc-unknown-linux-gnu" CFLAGS="-O2 -mtune=G5 -mcpu=G5 -mabi=altivec -pipe -ggdb" CHOST="powerpc-unknown-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/openvpn/easy-rsa" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c" CXXFLAGS="-O2 -mtune=G5 -mcpu=G5 -mabi=altivec -pipe -ggdb" DISTDIR="/usr/portage/distfiles" EMERGE_DEFAULT_OPTS="--autounmask=n" FEATURES="assume-digests binpkg-logs ccache distlocks ebuild-locks fixlafiles installsources news parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch xattr" FFLAGS="" GENTOO_MIRRORS="http://mirror.bytemark.co.uk/gentoo/ http://mirror.qubenet.net/mirror/gentoo/ http://www.mirrorservice.org/sites/www.ibiblio.org/gentoo/ http://gentoo.virginmedia.com/" LANG="en_GB.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LINGUAS="en_GB en" MAKEOPTS="-j5" 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" PORTDIR_OVERLAY="/var/lib/layman/kde-sunset /var/lib/layman/java-overlay /usr/local/portage/ppc64 /usr/local/portage/xmmsroot2_overlay /usr/local/portage/fixes-overlay /usr/local/portage/kde3-overlay" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="X a52 aac acl addbookmarks alias alsa altivec asf autoreplace avahi bash-completion berkdb bindist bluetooth bluray branding bzip2 cairo caps cdaudio cdda cddb cdparanoia cdr cli clutter connectionstatus consolekit contactnotes cracklib crypt cups curl cvs cxx daap dbus dga dia dirac djvu doc dri dts dv dvd dvdnav dvdr dvdread dvi eds effects emacs emboss emf encode evo examples exif fam fame ffmpeg fftw firefox flac fontconfig fortran fping gcc64 gcj gd gdbm gdu geoip gif gimp git glade gmp gnome gnome-keyring gnutls gpac gpgme gphoto2 gpm gstreamer gtk gtk3 hfs highlight history iconv id3tag idn ieee1394 imagemagick imap imlib ipv6 irc java java5 javascript jingle jpeg jpeg2k kde kerberos ladspa lame lapack latex lcms libnotify live lzma lzo mad matroska mbox mjpeg mmap mng modules mp2 mp3 mp4 mpeg mpi mplayer mudflap musepack musicbrainz ncurses netmeeting network nls nntp nowlistening nptl nptlonly nsplugin ogg openal openexr opengl openmp optimisememory oss pam pango pch pcre pdf pidgin plotutils png pnm policykit pop postscript ppc ppds pppd pulseaudio qt3 qt3support qt4 quicktime readline rtc rtmp sasl scanner sdl seed semantic-desktop session shout slp smime smp sms smtp snmp sox speex spell sqlite ssl startup-notification statistics stream subtitles subversion svg sysfs syslog t1lib tcpd tetex texteffect tga theora threads tiff translator truetype twolame udev unicode urandom usb v4l2 vala vcd visualization vorbis vram webkit webm webp webpresence wifi wmf xattr xcb xchattext xcomposite xine xinerama xml xmmsroot2 xorg xscreensaver xulrunner xv xvid yahoo zeroconf zlib" ALSA_CARDS="aoa aoa-fabric-layout aoa-onyx aoa-soundbus aoa-soundbus-i2s aoa-tas aoa-toonie powermac usb-audio via82xx" 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" CALLIGRA_FEATURES="kexi words flow plan stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" 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="en_GB en" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nouveau" 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, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
as Andrew said in comment #1, yaboot does require USE=static-libs sys-fs/e2fsprogs. but it looks incomplete to me. w/ USE=static-libs sys-fs/e2fsprogs, after emerge =sys-boot/yaboot-1.3.17, i got: ld -Ttext 0x100000 -Bstatic -melf32ppclinux second/crt0.o second/yaboot.o second/cache.o second/prom.o second/file.o second/partition.o second/fs.o second/cfg.o second/setjmp.o second/cmdline.o second/fs_of.o second/fs_ext2.o second/fs_iso.o second/fs_swap.o second/iso_util.o lib/nonstd.o lib/nosys.o lib/string.o lib/strtol.o lib/vsprintf.o lib/ctype.o lib/malloc.o lib/strstr.o lib/ssp.o second/md5.o second/fs_xfs.o second/fs_reiserfs.o -lext2fs `powerpc-unknown-linux-gnu-gcc -m32 -print-libgcc-file-name` -o second/yaboot /usr/lib/libext2fs.a(mmp.o): In function `mmp_pagesize': (.text+0x10): undefined reference to `sysconf' /usr/lib/libext2fs.a(mmp.o): In function `mmp_pagesize': (.text+0x1c): undefined reference to `getpagesize' /usr/lib/libext2fs.a(mmp.o): In function `ext2fs_mmp_read': (.text+0x154): undefined reference to `open' /usr/lib/libext2fs.a(mmp.o): In function `ext2fs_mmp_read': (.text+0x180): undefined reference to `read' /usr/lib/libext2fs.a(mmp.o): In function `ext2fs_mmp_write': (.text+0x260): undefined reference to `gettimeofday' /usr/lib/libext2fs.a(mmp.o): In function `ext2fs_mmp_reset': (.text+0x3f8): undefined reference to `gethostname' /usr/lib/libext2fs.a(mmp.o): In function `ext2fs_mmp_new_seq': (.text+0x4a8): undefined reference to `gettimeofday' /usr/lib/libext2fs.a(mmp.o): In function `ext2fs_mmp_new_seq': (.text+0x4ac): undefined reference to `getpid' /usr/lib/libext2fs.a(mmp.o): In function `ext2fs_mmp_new_seq': (.text+0x4b4): undefined reference to `getuid' /usr/lib/libext2fs.a(mmp.o): In function `ext2fs_mmp_new_seq': (.text+0x4d0): undefined reference to `srandom' /usr/lib/libext2fs.a(mmp.o): In function `ext2fs_mmp_new_seq': (.text+0x4dc): undefined reference to `gettimeofday' /usr/lib/libext2fs.a(mmp.o): In function `ext2fs_mmp_new_seq': (.text+0x4f8): undefined reference to `random' /usr/lib/libext2fs.a(mmp.o): In function `ext2fs_mmp_new_seq': (.text+0x514): undefined reference to `random' /usr/lib/libext2fs.a(mmp.o): In function `ext2fs_mmp_start': (.text+0x6d4): undefined reference to `sleep' /usr/lib/libext2fs.a(mmp.o): In function `ext2fs_mmp_start': (.text+0x784): undefined reference to `gethostname' /usr/lib/libext2fs.a(mmp.o): In function `ext2fs_mmp_start': (.text+0x7c0): undefined reference to `sleep' /usr/lib/libext2fs.a(mmp.o): In function `ext2fs_mmp_stop': (.text+0x8c8): undefined reference to `close' /usr/lib/libext2fs.a(mmp.o): In function `ext2fs_mmp_update': (.text+0x9cc): undefined reference to `gettimeofday' /usr/lib/libext2fs.a(progress.o): In function `ext2fs_numeric_progress_update': (.text+0x1a4): undefined reference to `__printf_chk' /usr/lib/libext2fs.a(progress.o): In function `ext2fs_numeric_progress_update': (.text+0x1d8): undefined reference to `__fprintf_chk' /usr/lib/libext2fs.a(progress.o): In function `ext2fs_numeric_progress_close': (.text+0x27c): undefined reference to `__fprintf_chk' /usr/lib/libext2fs.a(progress.o): In function `ext2fs_numeric_progress_close': (.text+0x2a0): undefined reference to `__fprintf_chk' /usr/lib/libext2fs.a(csum.o): In function `ext2fs_group_desc_csum': (.text+0x58): undefined reference to `__printf_chk' /usr/lib/libext2fs.a(csum.o): In function `ext2fs_group_desc_csum': (.text+0xe8): undefined reference to `__memcpy_chk' /usr/lib/libext2fs.a(gen_bitmap64.o): In function `ext2fs_alloc_generic_bmap': (.text+0xf4): undefined reference to `gettimeofday' /usr/lib/libext2fs.a(gen_bitmap64.o): In function `ext2fs_alloc_generic_bmap': (.text+0x2ec): undefined reference to `perror' /usr/lib/libext2fs.a(gen_bitmap64.o): In function `ext2fs_print_bmap_statistics': (.text+0x330): undefined reference to `gettimeofday' /usr/lib/libext2fs.a(gen_bitmap64.o): In function `ext2fs_print_bmap_statistics': (.text+0x33e): undefined reference to `stderr' /usr/lib/libext2fs.a(gen_bitmap64.o): In function `ext2fs_print_bmap_statistics': (.text+0x356): undefined reference to `stderr' /usr/lib/libext2fs.a(gen_bitmap64.o): In function `ext2fs_print_bmap_statistics': (.text+0x35c): undefined reference to `__fprintf_chk' /usr/lib/libext2fs.a(gen_bitmap64.o): In function `ext2fs_print_bmap_statistics': (.text+0x362): undefined reference to `stderr' /usr/lib/libext2fs.a(gen_bitmap64.o): In function `ext2fs_print_bmap_statistics': (.text+0x374): undefined reference to `fwrite' /usr/lib/libext2fs.a(gen_bitmap64.o): In function `ext2fs_print_bmap_statistics': (.text+0x398): undefined reference to `perror' /usr/lib/libext2fs.a(gen_bitmap64.o): In function `ext2fs_copy_generic_bmap': (.text+0x578): undefined reference to `gettimeofday' /usr/lib/libext2fs.a(gen_bitmap64.o): In function `ext2fs_copy_generic_bmap': (.text+0x620): undefined reference to `__sprintf_chk' /usr/lib/libext2fs.a(gen_bitmap64.o): In function `ext2fs_copy_generic_bmap': (.text+0x6b4): undefined reference to `perror' /usr/lib/libext2fs.a(inline.o): In function `ext2fs_get_arrayzero': (.text+0x6ec): undefined reference to `calloc' /usr/lib/libext2fs.a(inline.o): In function `ext2fs_open_file': (.text+0x964): undefined reference to `open64' /usr/lib/libext2fs.a(inline.o): In function `ext2fs_open_file': (.text+0x978): undefined reference to `__open64_2' /usr/lib/libext2fs.a(inline.o): In function `ext2fs_stat': (.text+0x9a8): undefined reference to `__xstat64' /usr/lib/libext2fs.a(inline.o): In function `ext2fs_fstat': (.text+0x9d8): undefined reference to `__fxstat64' /usr/lib/libext2fs.a(llseek.o): In function `ext2fs_llseek': (.text+0x30): undefined reference to `lseek64' /usr/lib/libext2fs.a(llseek.o): In function `ext2fs_llseek': (.text+0x70): undefined reference to `__errno_location' /usr/lib/libext2fs.a(llseek.o): In function `ext2fs_llseek': (.text+0xcc): undefined reference to `lseek' /usr/lib/libext2fs.a(llseek.o): In function `ext2fs_llseek': (.text+0xfc): undefined reference to `__errno_location' /usr/lib/libext2fs.a(blkmap64_ba.o): In function `ba_print_stats': (.text+0x132): undefined reference to `stderr' /usr/lib/libext2fs.a(blkmap64_ba.o): In function `ba_print_stats': (.text+0x13e): undefined reference to `stderr' /usr/lib/libext2fs.a(blkmap64_ba.o): In function `ba_print_stats': (.text+0x154): undefined reference to `__fprintf_chk' /usr/lib/libext2fs.a(blkmap64_rb.o): In function `rb_print_stats': (.text+0x862): undefined reference to `stderr' /usr/lib/libext2fs.a(blkmap64_rb.o): In function `rb_print_stats': (.text+0x882): undefined reference to `stderr' /usr/lib/libext2fs.a(blkmap64_rb.o): In function `rb_print_stats': (.text+0x8a8): undefined reference to `__fprintf_chk' /usr/lib/libext2fs.a(blkmap64_rb.o): In function `rb_print_stats': (.text+0x8ae): undefined reference to `stderr' /usr/lib/libext2fs.a(blkmap64_rb.o): In function `rb_print_stats': (.text+0x8c8): undefined reference to `__fprintf_chk' /usr/lib/libext2fs.a(blkmap64_rb.o): In function `rb_print_stats': (.text+0x8ce): undefined reference to `stderr' /usr/lib/libext2fs.a(blkmap64_rb.o): In function `rb_print_stats': (.text+0x8f0): undefined reference to `__fprintf_chk' /usr/lib/libext2fs.a(blkmap64_rb.o): In function `rb_print_stats': (.text+0x91a): undefined reference to `stderr' /usr/lib/libext2fs.a(blkmap64_rb.o): In function `rb_print_stats': (.text+0x928): undefined reference to `__fprintf_chk' /usr/lib/libext2fs.a(blkmap64_rb.o): In function `rb_print_stats': (.text+0x92e): undefined reference to `stderr' /usr/lib/libext2fs.a(blkmap64_rb.o): In function `rb_print_stats': (.text+0x944): undefined reference to `__fprintf_chk' /usr/lib/libext2fs.a(blkmap64_rb.o): In function `rb_insert_extent': (.text+0x1240): undefined reference to `perror' /usr/lib/libext2fs.a(blkmap64_rb.o): In function `rb_insert_extent': (.text+0x1248): undefined reference to `exit' /usr/lib/libext2fs.a(dblist.o): In function `ext2fs_dblist_sort2': (.text+0x800): undefined reference to `qsort' /usr/lib/libext2fs.a(dblist.o): In function `ext2fs_dblist_sort2': (.text+0x834): undefined reference to `qsort' /usr/lib/libext2fs.a(dblist.o): In function `ext2fs_dblist_sort': (.text+0xa90): undefined reference to `qsort' /usr/lib/libext2fs.a(dblist.o): In function `ext2fs_dblist_sort': (.text+0xac4): undefined reference to `qsort' make: *** [yaboot] Error 1 FYI, my emerge --info: Portage 2.1.10.49 (default/linux/powerpc/ppc32/10.0, gcc-4.5.3, glibc-2.14.1-r2, 3.2.6-gentoo ppc) ================================================================= System uname: Linux-3.2.6-gentoo-ppc-7447A,_altivec_supported-with-gentoo-2.1 Timestamp of tree: Tue, 28 Feb 2012 03:45:01 +0000 ccache version 3.1.7 [enabled] app-shells/bash: 4.2_p20 dev-lang/python: 2.7.2-r3, 3.2.2 dev-util/ccache: 3.1.7 dev-util/cmake: 2.8.7-r3 dev-util/pkgconfig: 0.26 sys-apps/baselayout: 2.1 sys-apps/openrc: 0.9.9.2 sys-apps/sandbox: 2.5 sys-devel/autoconf: 2.68 sys-devel/automake: 1.11.3 sys-devel/binutils: 2.22-r1 sys-devel/gcc: 4.5.3-r2 sys-devel/gcc-config: 1.5-r2 sys-devel/libtool: 2.4.2 sys-devel/make: 3.82-r3 sys-kernel/linux-headers: 3.2-r1 (virtual/os-headers) sys-libs/glibc: 2.14.1-r2 Repositories: gentoo x-crossdev hiyuh ACCEPT_KEYWORDS="ppc ~ppc" ACCEPT_LICENSE="* -@EULA" CBUILD="powerpc-unknown-linux-gnu" CFLAGS="-O2 -mcpu=G4 -mtune=G4 -maltivec -mabi=altivec -Wall" CHOST="powerpc-unknown-linux-gnu" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-O2 -mcpu=G4 -mtune=G4 -maltivec -mabi=altivec -Wall" DISTDIR="/usr/portage/distfiles" EMERGE_DEFAULT_OPTS="--quiet=n --quiet-build=n" FEATURES="assume-digests binpkg-logs ccache collision-protect distlocks ebuild-locks fixlafiles news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox" FFLAGS="" GENTOO_MIRRORS=" http://gentoo.channelx.biz/ http://gentoo.gg3.net/ ftp://gg3.net/pub/linux/gentoo/ ftp://ftp.iij.ad.jp/pub/linux/gentoo/ http://ftp.iij.ad.jp/pub/linux/gentoo/ rsync://ftp.iij.ad.jp/pub/linux/gentoo/ http://ftp.jaist.ac.jp/pub/Linux/Gentoo/ rsync://ftp.jaist.ac.jp/pub/Linux/Gentoo/ ftp://ftp.jaist.ac.jp/pub/Linux/Gentoo/ " LANG="ja_JP.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LINGUAS="en ja" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/overlay/crossdev /usr/local/overlay/hiyuh" SYNC="rsync://rsync.jp.gentoo.org/gentoo-portage" USE="X acl altivec bash-completion berkdb bzip2 caps cjk cli cracklib crypt cxx dri fontconfig fortran gdbm gif gpm gtk3 iconv icu jbig jpeg jpeg2k lzma modules mudflap ncurses nls nptl nptlonly opengl openmp png ppc readline session ssl svg sysfs t1lib tcpd threads tiff truetype unicode vim-syntax xcb xft xorg zlib" ALSA_CARDS="aoa aoa-fabric-layout aoa-onyx aoa-soundbus aoa-soundbus-i2s aoa-tas aoa-toonie" 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LINGUAS="en ja" RUBY_TARGETS="ruby19" USERLAND="GNU" VIDEO_CARDS="fbdev radeon r200" Unset: CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
(In reply to comment #1) > as Andrew said in comment #1, ... oops, this should be addressed to comment #0 :)
Well, as hiyuh stated, it now depends no more on the bug 406079. I want to make it a bit lesser UNCONFIRMED, from araound the globe: --------------tl;dr------------------------------------------------------------ … … … … … … /usr/lib/libext2fs.a(dblist.o): In function `ext2fs_dblist_sort2': (.text+0x800): undefined reference to `qsort' /usr/lib/libext2fs.a(dblist.o): In function `ext2fs_dblist_sort2': (.text+0x834): undefined reference to `qsort' /usr/lib/libext2fs.a(dblist.o): In function `ext2fs_dblist_sort': (.text+0xa90): undefined reference to `qsort' /usr/lib/libext2fs.a(dblist.o): In function `ext2fs_dblist_sort': (.text+0xac4): undefined reference to `qsort' make: *** [yaboot] Error 1 emake failed * ERROR: sys-boot/yaboot-1.3.17 failed (compile phase): * (no error message) * * Call stack: * ebuild.sh, line 85: Called src_compile * environment, line 1816: Called die * The specific snippet of code: * emake PREFIX=/usr MANDIR=share/man CC="$(tc-getCC)" || die * same errors in build.log as hiyuh comment-1 mac-tux # emerge --info Portage 2.1.10.49 (default/linux/powerpc/ppc32/10.0/desktop, gcc-4.5.3, glibc-2.14.1-r2, 3.2.6-gentoo ppc) ================================================================= System uname: Linux-3.2.6-gentoo-ppc-7447A,_altivec_supported-with-gentoo-2.1 Timestamp of tree: Sun, 04 Mar 2012 11:45:01 +0000 distcc 3.1 powerpc-unknown-linux-gnu [enabled] app-shells/bash: 4.2_p20 dev-java/java-config: 2.1.11-r3 dev-lang/python: 2.7.2-r3, 3.2.2 dev-util/cmake: 2.8.7-r3 dev-util/pkgconfig: 0.26 sys-apps/baselayout: 2.1 sys-apps/openrc: 0.9.9.2 sys-apps/sandbox: 2.5 sys-devel/autoconf: 2.13, 2.68 sys-devel/automake: 1.9.6-r3, 1.10.3, 1.11.3 sys-devel/binutils: 2.22-r1 sys-devel/gcc: 4.5.3-r2 sys-devel/gcc-config: 1.5.1 sys-devel/libtool: 2.4.2 sys-devel/make: 3.82-r3 sys-kernel/linux-headers: 3.2-r1 (virtual/os-headers) sys-libs/glibc: 2.14.1-r2 Repositories: gentoo mv science x-powerpc ACCEPT_KEYWORDS="ppc ~ppc" ACCEPT_LICENSE="*" CBUILD="powerpc-unknown-linux-gnu" CFLAGS="-O2 -mcpu=G4 -mtune=G4 -maltivec -mabi=altivec -fno-strict-aliasing -pipe" CHOST="powerpc-unknown-linux-gnu" CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-O2 -mcpu=G4 -mtune=G4 -maltivec -mabi=altivec -fno-strict-aliasing -pipe" DISTDIR="/usr/portage/distfiles" EMERGE_DEFAULT_OPTS="--jobs=7 --load-average=7.9 --keep-going --complete-graph" FEATURES="assume-digests binpkg-logs distcc distlocks ebuild-locks fixlafiles news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch xattr" FFLAGS="" GENTOO_MIRRORS="http://gentoo.inode.at/ http://gd.tuwien.ac.at/opsys/linux/gentoo/ ftp://gentoo.lagis.at/ http://gentoo.mirror.dkm.cz/pub/gentoo/" LANG="en_IE.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LINGUAS="de sk en ru el he" MAKEOPTS="-j7" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_EXTRA_OPTS="--progress --delete-before --human-readable" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/var/lib/layman/mv /var/lib/layman/science /var/lib/layman/powerpc" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="X a52 aac acl alsa altivec amr apng bash-completion berkdb binfilter bluetooth branding bzip2 cairo cdda cdr cli collab consolekit cracklib crypt cups curl custom-optimization cvs cxx dbus debug-utils dirac dri dts dvb dvd dvdr emboss emulation encode exif extensions extras faad fam ffmpeg firefox flac fortran fts3 gallium gdbm gdu gif gpm gtk handbook iconv ipv6 jpeg keyboard lcdfilter lcms ldap libgda libnotify lzma mad mng modules mouse mp3 mp4 mpeg mudflap multimedia musepack ncurses nls nptl nptlonly nsplugin objc ogg opengl openmp openxml optimization ots pam pango pcre pdf perl plugins png policykit ppc ppds pppd python qt3support qt4 readline sdl secure-delete session speex spell ssl startup-notification strong-optimization subversion svg symlink sysfs tcpd theora thesaurus thumbnail thunar tidy tiff toolame truetype udev unicode usb vorbis wav webdav webstart wiki wmf wordperfect xattr xcb xcomposite xdg xfconf xine xml xorg xpm xterm xulrunner xv xvid xz zlib" ALSA_CARDS="aoa aoa-fabric-layout aoa-onyx aoa-soundbus aoa-soundbus-i2s aoa-tas aoa-toonie powermac usb-audio via82xx" 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" CALLIGRA_FEATURES="kexi words flow plan stage tables krita karbon braindump" CAMERAS="canon casio casio_qv fuji samsung" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" 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 keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de sk en ru el he" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" SANE_BACKENDS="canon630u" USERLAND="GNU" VIDEO_CARDS="radeon" 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, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS wbr & tnx in advantage oas
*** Bug 407405 has been marked as a duplicate of this bug. ***
I get the same thing; ld: cannot find -lext2fs I think there just needs to be a space there -l ext2fs which means find library ext2fs
Created attachment 307699 [details, diff] patch to change "-l ext2fs" (as jeremiah said) i tried, but no joy. ld -Ttext 0x100000 -Bstatic -melf32ppclinux second/crt0.o second/yaboot.o second/cache.o second/prom.o second/file.o second/partition.o second/fs.o second/cfg.o second/setjmp.o second/cmdline.o second/fs_of.o second/fs_ext2.o second/fs_iso.o second/fs_swap.o second/iso_util.o lib/nonstd.o lib/nosys.o lib/string.o lib/strtol.o lib/vsprintf.o lib/ctype.o lib/malloc.o lib/strstr.o lib/ssp.o second/md5.o second/fs_xfs.o second/fs_reiserfs.o -l ext2fs `powerpc-unknown-linux-gnu-gcc -m32 -print-libgcc-file-name` -o second/yaboot /usr/lib/libext2fs.a(mmp.o): In function `mmp_pagesize': (.text+0x10): undefined reference to `sysconf' [SNIP] /usr/lib/libext2fs.a(dblist.o): In function `ext2fs_dblist_sort': (.text+0xac4): undefined reference to `qsort' make: *** [yaboot] Error 1
FYI, i found a post at yaboot ML. http://lists.ozlabs.org/pipermail/yaboot-devel/2012-January/000441.html but no pong... maybe this issue triggered by e2fsprogs-1.42?
It was. I think this is fixed in yaboot-1.3.17-r1, which I've commited to CVS. Feel free to reopen the bug if this isn't the case. Thanks!