Gentoo Archives: gentoo-alt

From: "Tamás Gérczei" <gerczei.tamas@×××××.com>
To: gentoo-alt@l.g.o
Subject: [gentoo-alt] util-linux in a Solaris x86 prefix - can't emerge - doesn't compile + one minor ebuild-level issue to maybe fix
Date: Wed, 29 Jun 2011 07:06:19
In Reply to: [gentoo-alt] util-linux in a Solaris x86 prefix - can't emerge - doesn't compile + one minor ebuild-level issue to maybe fix by "Tamás Gérczei"
Hello again, I'm really very sorry about the HTML posting I have
ignorantly made. Here it comes as plaintext...

Hello List,

I'm having a problem emerging sys-apps/util-linux in my prefix in a
Solaris 10 x86 container and I need Your help.
The reason I need the package at all is that I need /usr/bin/script -
with its "-t" switch. No other functionality would I be interested in.
Henceforth I have even tried to reduce the set of USE flags on the
package one by one at first, yet nothing delivered. The same holds
true for the earlier versions the tree seems to still have - but the
2.17.* versions die on me even in the configure phase complaining
about the lack of crypt(). I would be content with either version and
yes I know these packages are masked. Still I'm compelled to solve
this issue - were it only possible.

Please help me if you can and also forgive my maybe having posted
either too little or too many information; it's my first time asking
for "official" help after all.

s10zone ~ # eix sys-apps/util-linux
* sys-apps/util-linux
     Available versions:  (~*)2.17 (**)2.17.2 (~*)2.18-r1 {+cramfs
crypt loop-aes nls old-linux perl selinux slang uclibc unicode}

s10zone ~ # tail -30
make[3]: Leaving directory
make[2]: Leaving directory
Making all in samples
make[2]: Entering directory
  CC     topology.o
  CCLD   topology
../../../shlibs/blkid/src/.libs/ undefined reference to `strnlen'
collect2: ld returned 1 exit status
make[2]: *** [topology] Error 1
make[2]: Leaving directory
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
make: *** [all-recursive] Error 1
make: Leaving directory
emake failed
 * ERROR: sys-apps/util-linux-2.18-r1 failed (compile phase):
 *   (no error message)
 * Call stack:
 *, line  62:  Called call-ebuildshell 'src_compile'
 *   environment, line 603:  Called src_compile
 *   environment, line 3152:  Called die
 * The specific snippet of code:
 *           emake -C shlibs || die;
 * If you need support, post the output of 'emerge --info
 * the complete build log and the output of 'emerge -pqv
 * The complete build log is located at
 * The ebuild environment file is located at
 * S: '/opt/prefix/var/tmp/portage/sys-apps/util-linux-2.18-r1/work/util-linux-ng-2.18'
s10zone ~ #
s10zone ~ # emerge --info
Portage (prefix/sunos/solaris/5.10/x86, gcc-4.5.2,
unavailable, 5.10 i86pc)
System uname: Solaris-2.10-i86pc-i386-32bit-ELF
Timestamp of tree: Fri, 24 Jun 2011 19:36:05 +0000
app-shells/bash:      4.2_p10
dev-lang/python:      2.7.1-r1
sys-devel/autoconf:   2.68
sys-devel/automake:   1.11.1
sys-devel/binutils:   2.20.1-r1
sys-devel/gcc:        4.5.2-r00.1
sys-devel/gcc-config: 1.4.1-r00.2
sys-devel/libtool:    2.4-r01.1
sys-devel/make:       3.82
Repositories: gentoo_prefix
Installed sets:
CFLAGS="-O3 -pipe -fomit-frame-pointer -march=native"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf
/etc/portage /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O3 -pipe -fomit-frame-pointer -march=native"
FEATURES="assume-digests binpkg-logs collision-protect distlocks
ebuild-locks fixlafiles fixpackages news nostrip parallel-fetch
preserve-libs protect-owned sfperms strict unknown-features-warn
unmerge-logs unmerge-orphans userfetch"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times
--compress --force --whole-file --delete --stats --timeout=180
--exclude=/distfiles --exclude=/local --exclude=/packages"
USE="cracklib cxx modules ncurses nls prefix readline ssl unicode
x86-solaris zlib" 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="braindump flow
karbon kexi kpresenter krita tables words" CAMERAS="ptp2"
COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog"
ELIBC="SunOS" 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="SunOS"
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"

s10zone ~ # grep util-linux /opt/prefix/etc/portage/package.use
sys-apps/util-linux        -crypt -loop-aes -old-linux -perl -slang
-cramfs -nls -unicode

s10zone ~ # s10zone ~ # gcc -v
Using built-in specs.
Target: i386-pc-solaris2.10
Configured with:
--host=i386-pc-solaris2.10 --build=i386-pc-solaris2.10
--disable-altivec --disable-fixed-point --without-ppl --without-cloog
--disable-lto --enable-nls --without-included-gettext
--with-system-zlib --disable-werror --enable-secureplt
--disable-multilib --disable-libmudflap --disable-libssp
--disable-libgomp --enable-cld
--enable-checking=release --disable-libgcj --enable-languages=c,c++
--enable-shared --enable-threads=posix
--with-local-prefix=/opt/prefix/usr --enable-__cxa_atexit
--with-bugurl= --with-pkgversion='Gentoo
4.5.2-r00.1 p1.1, pie-0.4.5' --with-gnu-ld --with-gnu-as
Thread model: posix
gcc version 4.5.2 (Gentoo 4.5.2-r00.1 p1.1, pie-0.4.5)
s10zone ~ #

I did not so far realize that maybe the -O3 setting could be the
culprit - but since that gave me no pain whatsoever on any other box I
have rolled stuff on, I'm only wondering. The only other idea that I'm
almost having is my having upgraded gcc beforehand. Everything has so
far gone by the book though - well aside from a small glitch that I'll
- once mentioned - quickly elaborate on as well: the enewgroup and
enewuser routines err, given that Solaris has a different syntax for
these commands - as in, different from the GNU userland's suchlike
options. Once having fixed that, I was set, yet that might require
official effort to become fixed on a higher level, as irrelevant in
this post as that is. Just thought I'd let you know.

Thankful in advance for any efforts made: