cmp1 ~ $ emerge -va gpart These are the packages that I would merge, in order: Calculating dependencies ...done! [ebuild N ] sys-block/gpart-0.1h-r1 0 kB Total size of downloads: 0 kB Do you want me to merge these packages? [Yes/No] y >>> emerge (1 of 1) sys-block/gpart-0.1h-r1 to / >>> md5 files ;-) gpart-0.1h-r1.ebuild >>> md5 files ;-) files/gpart-0.1h-PIC.patch >>> md5 files ;-) files/digest-gpart-0.1h-r1 >>> md5 files ;-) files/gpart-0.1h-errno.patch >>> md5 files ;-) files/gpart-0.1h-ntfs.patch >>> md5 files ;-) files/gpart-0.1h-vfat.patch >>> md5 src_uri ;-) gpart-0.1h.tar.gz >>> md5 src_uri ;-) gpart-0.1h-reiserfs-3.6.patch.gz >>> Unpacking source... >>> Unpacking gpart-0.1h.tar.gz to /var/tmp/portage/gpart-0.1h-r1/work >>> Unpacking gpart-0.1h-reiserfs-3.6.patch.gz to /var/tmp/portage/gpart-0.1h-r1/work * Applying gpart-0.1h-errno.patch ... [ ok ] * Applying gpart-0.1h-vfat.patch ... [ ok ] * Applying gpart-0.1h-ntfs.patch ... [ ok ] * Applying gpart-0.1h-PIC.patch ... [ ok ] * Applying gpart-0.1h-reiserfs-3.6.patch ... [ ok ]>>> Source unpacked. make -C src make[1]: Entering directory `/var/tmp/portage/gpart-0.1h-r1/work/gpart-0.1h/src' make[1]: Leaving directory `/var/tmp/portage/gpart-0.1h-r1/work/gpart-0.1h/src' make[1]: Entering directory `/var/tmp/portage/gpart-0.1h-r1/work/gpart-0.1h/src' gcc -Wall -O2 -march=athlon-xp -fomit-frame-pointer -pipe -pedantic -DVERSION=\"0.1h\" -c -o gpart.o gpart.c gcc -Wall -O2 -march=athlon-xp -fomit-frame-pointer -pipe -pedantic -DVERSION=\"0.1h\" -c -o gmodules.o gmodules.c gpart.c:72: warning: built-in function `log' declared as non-function gcc -Wall -O2 -march=athlon-xp -fomit-frame-pointer -pipe -pedantic -DVERSION=\"0.1h\" -c -o disku.o disku.c gcc -Wall -O2 -march=athlon-xp -fomit-frame-pointer -pipe -pedantic -DVERSION=\"0.1h\" -c -o l64seek.o l64seek.c l64seek.c: In function `l64seek': l64seek.c:45: warning: implicit declaration of function `_llseek' gcc -Wall -O2 -march=athlon-xp -fomit-frame-pointer -pipe -pedantic -DVERSION=\"0.1h\" -c -o gm_ext2.o gm_ext2.c gcc -Wall -O2 -march=athlon-xp -fomit-frame-pointer -pipe -pedantic -DVERSION=\"0.1h\" -c -o gm_lswap.o gm_lswap.c gcc -Wall -O2 -march=athlon-xp -fomit-frame-pointer -pipe -pedantic -DVERSION=\"0.1h\" -c -o gm_fat.o gm_fat.c gcc -Wall -O2 -march=athlon-xp -fomit-frame-pointer -pipe -pedantic -DVERSION=\"0.1h\" -c -o gm_bsddl.o gm_bsddl.c gcc -Wall -O2 -march=athlon-xp -fomit-frame-pointer -pipe -pedantic -DVERSION=\"0.1h\" -c -o gm_ntfs.o gm_ntfs.c gcc -Wall -O2 -march=athlon-xp -fomit-frame-pointer -pipe -pedantic -DVERSION=\"0.1h\" -c -o gm_hpfs.o gm_hpfs.c gcc -Wall -O2 -march=athlon-xp -fomit-frame-pointer -pipe -pedantic -DVERSION=\"0.1h\" -c -o gm_s86dl.o gm_s86dl.c gcc -Wall -O2 -march=athlon-xp -fomit-frame-pointer -pipe -pedantic -DVERSION=\"0.1h\" -c -o gm_minix.o gm_minix.c gcc -Wall -O2 -march=athlon-xp -fomit-frame-pointer -pipe -pedantic -DVERSION=\"0.1h\" -c -o gm_reiserfs.o gm_reiserfs.c gm_reiserfs.c: In function `reiserfs_gfun': gm_reiserfs.c:53: warning: assignment from incompatible pointer type gcc -Wall -O2 -march=athlon-xp -fomit-frame-pointer -pipe -pedantic -DVERSION=\"0.1h\" -c -o gm_hmlvm.o gm_hmlvm.c gcc -Wall -O2 -march=athlon-xp -fomit-frame-pointer -pipe -pedantic -DVERSION=\"0.1h\" -c -o gm_qnx4.o gm_qnx4.c gcc -Wall -O2 -march=athlon-xp -fomit-frame-pointer -pipe -pedantic -DVERSION=\"0.1h\" -c -o gm_beos.o gm_beos.c gcc -Wall -O2 -march=athlon-xp -fomit-frame-pointer -pipe -pedantic -DVERSION=\"0.1h\" -c -o gm_xfs.o gm_xfs.c In file included from gm_xfs.c:19: gm_xfs.h:30: warning: ISO C90 does not support `long long' gm_xfs.h:31: warning: ISO C90 does not support `long long' gm_xfs.c:70:36: warning: use of C99 long long integer constant gm_xfs.c:70:36: warning: use of C99 long long integer constant gm_xfs.c:70:36: warning: use of C99 long long integer constant gm_xfs.c:70:36: warning: use of C99 long long integer constant gm_xfs.c:70:36: warning: use of C99 long long integer constant gm_xfs.c:70:36: warning: use of C99 long long integer constant gm_xfs.c:70:36: warning: use of C99 long long integer constant gm_xfs.c:70:36: warning: use of C99 long long integer constant gm_xfs.c:70:72: warning: use of C99 long long integer constant gm_xfs.c:71:35: warning: use of C99 long long integer constant gm_xfs.c:71:35: warning: use of C99 long long integer constant gm_xfs.c:71:35: warning: use of C99 long long integer constant gm_xfs.c:71:35: warning: use of C99 long long integer constant gm_xfs.c:71:35: warning: use of C99 long long integer constant gm_xfs.c:71:35: warning: use of C99 long long integer constant gm_xfs.c:71:35: warning: use of C99 long long integer constant gm_xfs.c:71:35: warning: use of C99 long long integer constant gcc -o gpart gpart.o gmodules.o disku.o l64seek.o gm_ext2.o gm_lswap.o gm_fat.o gm_bsddl.o gm_ntfs.o gm_hpfs.o gm_s86dl.o gm_minix.o gm_reiserfs.o gm_hmlvm.o gm_qnx4.o gm_beos.o gm_xfs.o -ldl l64seek.o(.text+0x57): In function `l64seek': : undefined reference to `_llseek' collect2: ld returned 1 exit status make[1]: *** [gpart] Error 1 make[1]: Leaving directory `/var/tmp/portage/gpart-0.1h-r1/work/gpart-0.1h/src' make: *** [gpart] Error 2 !!! ERROR: sys-block/gpart-0.1h-r1 failed. !!! Function src_compile, Line 556, Exitcode 2 !!! emake failed !!! If you need support, post the topmost build error, NOT this status message. Pretty straightforward. Reproducible: Always Steps to Reproduce: 1. emerge gpart-0.1h-r1 2. watch it fail 3. cmp1 ~ $ emerge info Portage 2.0.51.22-r3 (hardened/x86/2.6, gcc-3.3.6, glibc-2.3.5-r2, 2.6.11-hardened-r15 i686) ================================================================= System uname: 2.6.11-hardened-r15 i686 AMD Opteron(tm) Processor 144 Gentoo Base System version 1.6.13 dev-lang/python: 2.3.5-r2, 2.4.2 sys-apps/sandbox: 1.2.12 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1 sys-devel/binutils: 2.15.92.0.2-r10 sys-devel/libtool: 1.5.20 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://gentoo.chem.wisc.edu/gentoo/" MAKEOPTS="-j2" PKGDIR="/usr/portage//packages/x86/" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage/" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.us.gentoo.org/gentoo-portage" USE="bash-completion crypt dlloader hardened ncurses nls nptl pam perl pic postgres python readline simplexml sqlite ssl tcpd threads userlocales x86 xml xml2 zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
try removing the gpart-0.1h-PIC.patch from the ebuild and see if that fixes it
fixed in cvs