Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 544730 - app-misc/pax-utils-1.0.2: fails to compile on Gentoo/FreeBSD
Summary: app-misc/pax-utils-1.0.2: fails to compile on Gentoo/FreeBSD
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: FreeBSD (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo/BSD Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-03-28 08:50 UTC by i.Dark_Templar
Modified: 2015-03-29 20:08 UTC (History)
1 user (show)

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


Attachments
build.log (pax-utils-build.log,42.13 KB, text/x-log)
2015-03-28 08:50 UTC, i.Dark_Templar
Details
pax-utils-1.0.2.ebuild (pax-utils-1.0.2.ebuild,1.54 KB, text/plain)
2015-03-28 08:54 UTC, i.Dark_Templar
Details

Note You need to log in before you can comment on or make changes to this bug.
Description i.Dark_Templar 2015-03-28 08:50:15 UTC
app-misc/pax-utils fails to compile on Gentoo/FreeBSD due to not linking some replacement functions.

Reproducible: Always

Steps to Reproduce:
1. emerge app-misc/pax-utils
Actual Results:  
emerge fails on compile step

Expected Results:  
emerge should succeed

Relevant part of build log:

  CCLD     scanelf
scanelf.o: In function `scanelf_fileat':
scanelf.c:(.text+0x7f64): undefined reference to `rpl_strerror'
scanelf.c:(.text+0x80cb): undefined reference to `rpl_strerror'
scanelf.c:(.text+0x8230): undefined reference to `rpl_strerror'
scanelf.o: In function `scanelf_dirat':
scanelf.c:(.text+0x84b4): undefined reference to `rpl_strerror'
scanelf.o: In function `parseargs':
scanelf.c:(.text+0x89e4): undefined reference to `rpl_strerror'
./.libs/libpaxutils.a(xfuncs.o):xfuncs.c:(.text+0x2f): more undefined references to `rpl_strerror' follow
collect2: error: ld returned 1 exit status
Makefile:1635: recipe for target 'scanelf' failed
gmake[2]: *** [scanelf] Error 1
gmake[2]: Leaving directory '/var/tmp/portage/app-misc/pax-utils-1.0.2/work/pax-utils-1.0.2'
Makefile:1772: recipe for target 'all-recursive' failed
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory '/var/tmp/portage/app-misc/pax-utils-1.0.2/work/pax-utils-1.0.2'
Makefile:1509: recipe for target 'all' failed
gmake: *** [all] Error 2
 [31;01m*[0m ERROR: app-misc/pax-utils-1.0.2::gentoo failed (compile phase):
 [31;01m*[0m   emake failed

$ emerge --info
Portage 2.2.18 (python 2.7.9-final-0, default/bsd/fbsd/x86/9.2, gcc-4.8.4, freebsd-lib-9.2, 9.2-Gentoo i386)
=================================================================
System uname: FreeBSD-9.2-Gentoo-i386-32bit-ELF
KiB Mem:     1027488 total
KiB Swap:          0 total
Timestamp of repository gentoo: Fri, 20 Mar 2015 00:45:01 +0000
sh sh
ld GNU ld (Gentoo 2.25 p1.0) 2.25
app-shells/bash:         4.3_p33-r2::gentoo
dev-lang/perl:           5.20.2::gentoo
dev-lang/python:         2.7.9-r2::crossdev
dev-util/cmake:          3.1.0::gentoo
sys-apps/baselayout:     2.2::gentoo
sys-apps/openrc:         0.13.11::gentoo
sys-devel/autoconf:      2.69-r1::gentoo
sys-devel/automake:      1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:      2.25::gentoo
sys-devel/gcc:           4.8.4::gentoo
sys-devel/gcc-config:    1.8::gentoo
sys-devel/libtool:       2.4.6-r1::gentoo
sys-devel/make:          4.1-r1::gentoo
sys-freebsd/freebsd-lib: 9.2::crossdev (virtual/os-headers)
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000

local-overlay
    location: /usr/local/portage
    masters: gentoo
    priority: 0

crossdev
    location: /usr/local/portage_crossdev
    masters: gentoo
    priority: 1

ACCEPT_KEYWORDS="x86-fbsd ~x86-fbsd"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-gentoo-freebsd9.2"
CFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
CHOST="i686-gentoo-freebsd9.2"
CONFIG_PROTECT="/boot/device.hints /etc /usr/share/config /usr/share/gnupg/qualified.txt"
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="-march=native -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps=y --binpkg-respect-use=y --autounmask=n"
FCFLAGS="-march=i486 -O2 -pipe"
FEATURES="binpkg-logs chflags distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersync"
FFLAGS="-march=i486 -O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
INSTALL_MASK=" /etc/systemd /lib*/systemd /lib*/tmpfiles.d /usr/lib*/systemd /usr/lib*/tmpfiles.d /usr/lib*/python*/test "
LDFLAGS=""
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
USE="X acl bidi bzip2 c++0x cleartype consolekit cracklib crypt custom-cflags custom-optimization cxx dbus dga dri fontconfig fontforge freetype fribidi gmp iconv icu ipv6 java5 java6 kde libav lzma mmap modules ncurses nls opengl openmp oss pam pch pcntl pcre pic plasma png policykit posix private-headers python2 qt3support qt4 readline ssl startup-notification system-cairo system-icu system-jpeg system-libvpx system-sqlite tcpd threads truetype unicode usb x86-fbsd xattr xcb xcomposite xft xinerama xscreensaver zlib" ABI_X86="32" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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 sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="FreeBSD" 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 ublox ubx" INPUT_DEVICES="keyboard mouse" KERNEL="FreeBSD" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="ru en ru_RU en_US" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7" RUBY_TARGETS="ruby19 ruby20" USERLAND="BSD" VIDEO_CARDS="vesa" 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, LANG, LC_ALL, MAKEOPTS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 i.Dark_Templar 2015-03-28 08:50:46 UTC
Created attachment 399924 [details]
build.log

Full build log
Comment 2 i.Dark_Templar 2015-03-28 08:54:13 UTC
Created attachment 399926 [details]
pax-utils-1.0.2.ebuild

Fixed ebuild.

$ diff -u /usr/{portage,local/portage_crossdev}//app-misc/pax-utils/pax-utils-1.0.2.ebuild
--- /usr/portage//app-misc/pax-utils/pax-utils-1.0.2.ebuild     2015-03-10 08:34:03.000000000 +0300
+++ /usr/local/portage_crossdev//app-misc/pax-utils/pax-utils-1.0.2.ebuild      2015-03-28 11:52:57.000000000 +0300
@@ -29,6 +29,11 @@
                "$@"
 }
 
+src_prepare() {
+       # For successful compilation with non-GNU userland need replacement libraries
+       sed -i 's:LDADD = libpaxutils.la:LDADD = libpaxutils.la autotools/gnulib/libgnu.a:' Makefile.in
+}
+
 src_configure() {
        # Avoid slow configure+gnulib+make if on an up-to-date Linux system
        if use prefix || ! use kernel_linux || \