During an emerge -uD world, app-misc/mc-4.8.1-r1 fails to compile on two similarly bootstrapped Mac OS X systems with the following error message: [...] i686-apple-darwin10-gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -DLOCALEDIR=\""/Users/vwegert/Library/Gentoo/usr/share/locale"\" -DLIBEXECDIR=\""/Users/vwegert/Library/Gentoo/usr/libexec/mc/"\" -I/Users/vwegert/Library/Gentoo/usr/include -I/System/Library/Frameworks/CoreFoundation.framework/Headers -I/Users/vwegert/Library/Gentoo/usr/include/glib-2.0 -I/Users/vwegert/Library/Gentoo/usr/lib/glib-2.0/include -I.. -Wcomment -Wdeclaration-after-statement -Wfloat-equal -Wformat -Wformat-security -Wimplicit -Wmissing-braces -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wno-long-long -Wno-unreachable-code -Wparentheses -Wpointer-sign -Wreturn-type -Wsequence-point -Wshadow -Wsign-compare -Wswitch -Wuninitialized -Wunused-function -Wunused-label -Wunused-parameter -Wunused-value -Wunused-variable -Wwrite-strings -march=prescott -c selcodepage.c cc1: warning: -Wuninitialized is not supported without -O CCLD mc Undefined symbols for architecture i386: "_posix_fallocate", referenced from: _vfs_preallocate in libmcviewer.a(vfs.o) ld: symbol(s) not found for architecture i386 collect2: ld returned 1 exit status make[3]: *** [mc] Error 1 make[3]: Leaving directory `/Users/vwegert/Library/Gentoo/var/tmp/portage/app-misc/mc-4.8.1-r1/work/mc-4.8.1/src' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/Users/vwegert/Library/Gentoo/var/tmp/portage/app-misc/mc-4.8.1-r1/work/mc-4.8.1/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/Users/vwegert/Library/Gentoo/var/tmp/portage/app-misc/mc-4.8.1-r1/work/mc-4.8.1' make: *** [all] Error 2 * ERROR: app-misc/mc-4.8.1-r1 failed (compile phase): * emake failed * * If you need support, post the output of 'emerge --info =app-misc/mc-4.8.1-r1', * the complete build log and the output of 'emerge -pqv =app-misc/mc-4.8.1-r1'. * The complete build log is located at '/Users/vwegert/Library/Gentoo/var/tmp/portage/app-misc/mc-4.8.1-r1/temp/build.log'. * The ebuild environment file is located at '/Users/vwegert/Library/Gentoo/var/tmp/portage/app-misc/mc-4.8.1-r1/temp/environment'. * S: '/Users/vwegert/Library/Gentoo/var/tmp/portage/app-misc/mc-4.8.1-r1/work/mc-4.8.1' Reproducible: Always vwegert@gideon ~ $ emerge --info =app-misc/mc-4.8.1-r1 Portage 2.2.01.20043-prefix (prefix/darwin/macos/10.6/x86, gcc-4.2.1, unavailable, 10.8.0 i386) ================================================================= System Settings ================================================================= System uname: Darwin-10.8.0-i386-32bit Timestamp of tree: Wed, 28 Dec 2011 19:10:46 +0000 distcc 3.1-toolwhip.1 i386-apple-darwin10.0 [disabled] app-shells/bash: 4.2_p10 dev-lang/python: 2.7.2-r3 dev-util/pkgconfig: 0.26 sys-devel/autoconf: 2.68 sys-devel/automake: 1.11.1 sys-devel/gcc-config: 1.5-r2 sys-devel/libtool: 2.4-r4 sys-devel/make: 3.82 Repositories: gentoo_prefix Installed sets: ACCEPT_KEYWORDS="~x86-macos" ACCEPT_LICENSE="* -@EULA" CBUILD="i686-apple-darwin10" CFLAGS="-march=prescott" CHOST="i686-apple-darwin10" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/portage /etc/revdep-rebuild /etc/terminfo" CXXFLAGS="-march=prescott" DISTDIR="/Users/vwegert/Library/Gentoo/usr/portage/distfiles" FEATURES="assume-digests binpkg-logs collision-protect distlocks ebuild-locks fixlafiles force-prefix news nostrip parallel-fetch preserve-libs protect-owned sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch" FFLAGS="" GENTOO_MIRRORS="http://distfiles.gentoo.org" LANG="de_DE" LDFLAGS="-Wl,-dead_strip_dylibs" PKGDIR="/Users/vwegert/Library/Gentoo/usr/portage/packages" PORTAGE_CONFIGROOT="/Users/vwegert/Library/Gentoo/" 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="/Users/vwegert/Library/Gentoo/var/tmp" PORTDIR="/Users/vwegert/Library/Gentoo/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.prefix.freens.org/gentoo-portage-prefix" USE="aqua coreaudio cracklib cxx gtk ipv6 jpeg mmx mmxext modules ncurses nls objc objc++ png prefix readline sse sse2 ssl unicode x86-macos zlib" 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="Darwin" 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="keyboard mouse" KERNEL="Darwin" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" 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, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, MAKEOPTS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS vwegert@gideon ~ $ emerge -pqv =app-misc/mc-4.8.1-r1 [ebuild U ] app-misc/mc-4.8.1-r1 [4.8.0-r2] USE="edit ncurses nls xdg%* -X (-gpm) -mclib -samba (-slang) -test"
Created attachment 297243 [details] build log
Created attachment 298517 [details, diff] mc-4.8.1-r1.ebuild.patch It's an upstream bug: <https://www.midnight-commander.org/ticket/2689#comment:7> Of course, apply the patch *ONLY* in the Gentoo Prefix overlay, under OSX.
I think this is a duplicate of bug 395135
*** This bug has been marked as a duplicate of bug 395135 ***