on a hardened uclibc system sys-apps/file-4.20 does not compile correctly: then mv -f ".deps/softmagic.Tpo" ".deps/softmagic.Plo"; else rm -f ".deps/softmagic.Tpo"; exit 1; fi i386-gentoo-linux-uclibc-gcc -DHAVE_CONFIG_H -I. -I. -I.. -DMAGIC=\"/usr/share/misc/file/magic\" -O -pipe -D_GNU_SOURCE -MT softmagic.lo -MD -MP -MF .deps/softmagic.Tpo -c softmagic.c -fPIC -DPIC -o .libs/softmagic.o softmagic.c: In function `magiccheck': softmagic.c:1529: error: `REG_STARTEND' undeclared (first use in this function) softmagic.c:1529: error: (Each undeclared identifier is reported only once softmagic.c:1529: error: for each function it appears in.) make[2]: *** [softmagic.lo] Error 1 make[2]: Leaving directory `/var/tmp/portage/sys-apps/file-4.20/work/file-4.20/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/sys-apps/file-4.20/work/file-4.20' make: *** [all] Error 2 !!! ERROR: sys-apps/file-4.20 failed. Call stack: ebuild.sh, line 1614: Called dyn_compile ebuild.sh, line 971: Called qa_call 'src_compile' environment, line 3857: Called src_compile file-4.20.ebuild, line 43: 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/sys-apps/file-4.20/temp/build.log'. Portage 2.1.2.2 (uclibc/x86/hardened, gcc-3.4.6, uclibc-0.9.28.1-r0, 2.6.17-p06 i686) ================================================================= System uname: 2.6.17-p06 i686 Intel(R) Pentium(R) 4 CPU 3.00GHz Gentoo Base System release 1.12.9 Timestamp of tree: Sun, 25 Mar 2007 09:20:02 +0000 dev-lang/python: 2.4.3-r4 dev-python/pycrypto: 2.0.1-r5 sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.61 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10 sys-devel/binutils: 2.16.1-r3 sys-devel/gcc-config: 1.3.14 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.17-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i386-gentoo-linux-uclibc" CFLAGS="-O -pipe" CHOST="i386-gentoo-linux-uclibc" CONFIG_PROTECT="/etc /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config /var/qmail/alias /var/qmail/control /var/service" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c" CXXFLAGS="-O -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig collision-protect distlocks metadata-transfer nodoc noinfo noman sandbox sfperms strict userpriv" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" 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="/local/portage/overlay" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="berkdb bzip2 caps cracklib crypt hardened ipv6 ncurses pic readline ssl threads x86 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="uclibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="dummy fbdev v4l" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS there is a possible patch here: http://cvs.openpkg.org/chngview?cn=34332 if that works, I'll ping back.
Created attachment 114330 [details, diff] REG_STARTEND patch ok, this patch makes sys-apps/file compile and work on my uclibc system. also it does not induce noticeable regressions on my 'normal' servers. please apply.
Created attachment 114332 [details, diff] proposed ebuild patch
upstream has a patch for this already which i've added to the 4.20 ebuild
(In reply to comment #3) > upstream has a patch for this already which i've added to the 4.20 ebuild Well, something isn't right. The digest for file-4.20.tar.gz is bad and the patch[1] results in a 404. [1] ftp://ftp.gw.com/mirrors/pub/unix/file/patch-4.20-REG_STARTEND
On top of that, ftp.astron.com appears to be unavailable. Perhaps file-4.20.tar.gz should be in distfiles?
(In reply to comment #5) > On top of that, ftp.astron.com appears to be unavailable. Perhaps > file-4.20.tar.gz should be in distfiles? Never mind. This problem appears to have been a local one. The 404 seems to have been resolved as well.