JuNix Apprentice
Joined: 05 Mar 2003 Posts: 224 Location: Sheffield
|
Posted: Mon May 08, 2017 11:37 am Post subject: [SOLVED ] Bootstrapping Prefix on Solaris 11 |
|
|
Hi,
This has not been straightforward at all. My bootstrap-prefix.sh fails during stage 3, during emerge of
[ebuild N ] dev-util/pkgconfig-0.29.1::gentoo_prefix USE="internal-glib (-hardened)" 0 KiB
The emerge fails during the configure phase of the internal-glib
Code: | === configuring in glib (/export/home/johnh/gentoo/var/tmp/portage/dev-util/pkgconfig-0.29.1/work/pkg-config-0.29.1-abi_x86_32.x86/glib)
configure: running /export/home/johnh/gentoo/bin/bash /export/home/johnh/gentoo/var/tmp/portage/dev-util/pkgconfig-0.29.1/work/pkg-config-0.29.1/glib/configure --disable-option-checking '--prefix=/export/home/johnh/gentoo/usr' '--build=i386-pc-solaris2.11' '--host=i386-pc-solaris2.11' '--mandir=/export/home/johnh/gentoo/usr/share/man' '--infodir=/export/home/johnh/gentoo/usr/share/info' '--datadir=/export/home/johnh/gentoo/usr/share' '--sysconfdir=/export/home/johnh/gentoo/etc' '--localstatedir=/export/home/johnh/gentoo/var/lib' '--disable-dependency-tracking' '--disable-silent-rules' '--docdir=/export/home/johnh/gentoo/usr/share/doc/pkgconfig-0.29.1' '--htmldir=/export/home/johnh/gentoo/usr/share/doc/pkgconfig-0.29.1/html' '--libdir=/export/home/johnh/gentoo/usr/lib' '--docdir=/export/home/johnh/gentoo/usr/share/doc/pkgconfig-0.29.1/html' '--with-system-include-path=/export/home/johnh/gentoo/usr/include' '--with-system-library-path=/export/home/johnh/gentoo/usr/lib' '--with-internal-glib' '--with-libiconv=gnu' 'build_alias=i386-pc-solaris2.11' 'host_alias=i386-pc-solaris2.11' 'CFLAGS= -O2 -pipe' 'LDFLAGS=-L/export/home/johnh/gentoo/usr/lib -L/export/home/johnh/gentoo/usr/lib -L/usr/lib -lintl' 'CPPFLAGS=-I/export/home/johnh/gentoo/usr/include -DENABLE_NLS' 'PKG_CONFIG_PATH=/export/home/johnh/gentoo/usr/lib/pkgconfig' --cache-file=/dev/null --srcdir=/export/home/johnh/gentoo/var/tmp/portage/dev-util/pkgconfig-0.29.1/work/pkg-config-0.29.1/glib
(snip)
checking if arpa/nameser_compat.h is needed... no
checking for res_query... configure: error: not found
configure: error: /export/home/johnh/gentoo/var/tmp/portage/dev-util/pkgconfig-0.29.1/work/pkg-config-0.29.1/glib/configure failed for glib |
The configure for glib has a few goes at finding res_query
Code: | configure:23145: checking for res_query
configure:23164: i386-pc-solaris2.11-gcc -o conftest -O2 -pipe -I/export/home/johnh/gentoo/usr/include -DENABLE_NLS -L/export/home/johnh/gentoo/usr/lib -L/export/home/johnh/gentoo/usr/lib -lintl conftest.c >&5
/export/home/johnh/gentoo/var/tmp/portage/dev-util/pkgconfig-0.29.1/temp/cc2kayjc.o: In function `main':
conftest.c:(.text.startup+0x1f): undefined reference to `res_query' |
Code: | #include <sys/types.h>
| #include <netinet/in.h>
| #include <arpa/nameser.h>
| #include <resolv.h>
|
| int
| main ()
| {
|
| res_query("test", 0, 0, (void *)0, 0);
|
| ;
| return 0;
| }
configure:23187: i386-pc-solaris2.11-gcc -o conftest -O2 -pipe -I/export/home/johnh/gentoo/usr/include -DENABLE_NLS -L/export/home/johnh/gentoo/usr/lib -L/export/home/johnh/gentoo/usr/lib -lintl conftest.c -lresolv >&5
/lib/libelf.so.1: undefined reference to `inflate@SUNW_1.1'
/lib/libelf.so.1: undefined reference to `deflateEnd@SUNW_1.1'
/lib/libelf.so.1: undefined reference to `inflateInit_@SUNW_1.1'
/lib/libelf.so.1: undefined reference to `deflateInit_@SUNW_1.1'
/lib/libelf.so.1: undefined reference to `deflateReset@SUNW_1.1'
/lib/libelf.so.1: undefined reference to `inflateReset@SUNW_1.1'
/lib/libelf.so.1: undefined reference to `inflateEnd@SUNW_1.1'
/lib/libelf.so.1: undefined reference to `deflate@SUNW_1.1'
collect2: error: ld returned 1 exit status |
Code: | | #include <sys/types.h>
| #include <netinet/in.h>
| #include <arpa/nameser.h>
| #include <resolv.h>
|
| int
| main ()
| {
|
| res_query("test", 0, 0, (void *)0, 0);
|
| ;
| return 0;
| }
configure:23204: i386-pc-solaris2.11-gcc -o conftest -O2 -pipe -I/export/home/johnh/gentoo/usr/include -DENABLE_NLS -L/export/home/johnh/gentoo/usr/lib -L/export/home/johnh/gentoo/usr/lib -lintl conftest.c -lbind >&5
ld: cannot find -lbind
collect2: error: ld returned 1 exit status |
Code: | johnh@sprawl:~/gentoo$ tmp/usr/bin/emerge --info
Portage 2.3.5-prefix (python 2.7.3-final-0, prefix/sunos/solaris/5.11/x86, gcc-4.7.3, unavailable, 5.11 i86pc)
=================================================================
System uname: Solaris-2.11-i86pc-i386-32bit-ELF
Timestamp of repository gentoo_prefix: Sat, 06 May 2017 21:58:29 +0000
sh bash 4.3_p48
ld GNU ld (GNU Binutils) 2.23.1
sys-devel/binutils: 2.27::gentoo_prefix
sys-devel/gcc: 5.3.0::gentoo_prefix
sys-devel/gcc-config: 1.8-r01.1::gentoo_prefix
Repositories:
gentoo_prefix
location: /export/home/johnh/gentoo/usr/portage
sync-type: rsync
sync-uri: rsync://rsync.prefix.bitzolder.nl/gentoo-portage-prefix
priority: -1000
ACCEPT_KEYWORDS="~x86-solaris"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i386-pc-solaris2.11"
CFLAGS=" -O2 -pipe"
CHOST="i386-pc-solaris2.11"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/gentoo-release /etc/terminfo"
CXXFLAGS=" -O2 -pipe"
DISTDIR="/export/home/johnh/gentoo/tmp/usr/portage/distfiles"
FCFLAGS=""
FEATURES="assume-digests binpkg-logs case-insensitive-fs collision-protect config-protect-if-modified distlocks ebuild-locks fixlafiles force-prefix merge-sync news nostrip parallel-fetch preserve-libs protect-owned sfperms strict unknown-features-warn unmerge-logs unmerge-orphans unprivileged"
FFLAGS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LC_ALL=""
LDFLAGS=""
MAKEOPTS="-j1"
PKGDIR="/export/home/johnh/gentoo/tmp/usr/portage/packages"
PORTAGE_CONFIGROOT="/export/home/johnh/gentoo/tmp/"
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 --exclude=/.git"
PORTAGE_TMPDIR="/export/home/johnh/gentoo/tmp/var/tmp"
USE="cracklib cxx ipv6 modules ncurses nls prefix prefix-guest readline ssl unicode x86-solaris 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" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="SunOS" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="keyboard mouse" KERNEL="SunOS" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" PYTHON_SINGLE_TARGET="python3_4" PYTHON_TARGETS="python2_7 python3_5" RUBY_TARGETS="ruby21 ruby22" 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: CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON |
Code: | johnh@sprawl:~/gentoo$ uname -a
SunOS sprawl.localnet 5.11 11.3 i86pc i386 i86pc |
Any help surely appreciated! |
|