Hi!

https://forums.gentoo.org/viewtopic-p-8065614.html?sid=95636da82f97a16259d38eeecbdbab5e

Is this the same problem?

Does -lresolv -lsocket -lnsl work by chance?
(https://docs.oracle.com/cd/E23824_01/html/821-1464/libresolv-3lib.html)

Thanks,
Fabian

On 16-05-2017 15:30:16 +0100, John Helliwell wrote:
> Hi,
> 
> I'm having trouble with bootstrap-prefix.sh on the Intel version of Solaris
> 11.3 - This doesn't come with a C compiler pre-installed, and so I installed
> one as such :-
> 
> pkg install pkg://solaris/developer/build/gnu-make \
>             pkg://solaris/developer/build/make \
>             pkg://solaris/developer/gcc \
>             pkg://solaris/system/header \
>             pkg://solaris/developer/build/autoconf \
>             pkg://solaris/developer/build/automake
> 
> This results in a gcc 4.8.2 at /usr/bin/gcc, and a GNU linker /usr/bin/gld
> 2.23.1. The original Solaris linker is intact at /usr/bin/ld
> 
> Oracle Corporation      SunOS 5.11      11.3    September 2015
> root@sprawl:~# type gcc
> gcc is /usr/bin/gcc
> root@sprawl:~# gcc -v
> Using built-in specs.
> COLLECT_GCC=gcc
> COLLECT_LTO_WRAPPER=/usr/gcc/4.8/lib/gcc/i386-pc-solaris2.11/4.8.2/lto-wrapp
> er
> Target: i386-pc-solaris2.11
> Configured with:
> /builds/hudson/workspace/nightly-update/build/i386/components/gcc48/gcc-4.8.
> 2/configure CC=/usr/gcc/4.7/bin/gcc CXX=/usr/gcc/4.7/bin/g++
> --prefix=/usr/gcc/4.8 --mandir=/usr/gcc/4.8/share/man
> --bindir=/usr/gcc/4.8/bin --libdir=/usr/gcc/4.8/lib
> --sbindir=/usr/gcc/4.8/sbin --infodir=/usr/gcc/4.8/share/info
> --libexecdir=/usr/gcc/4.8/lib --enable-languages=c,c++,fortran,objc
> --enable-shared --with-gmp-include=/usr/include/gmp
> --with-mpfr-include=/usr/include/mpfr --without-gnu-ld --with-ld=/usr/bin/ld
> --with-gnu-as --with-as=/usr/gnu/bin/as CFLAGS='-g -O2  -mtune=opteron
> -march=opteron' CXXFLAGS='-g -O2 -mtune=opteron -march=opteron'
> Thread model: posix
> gcc version 4.8.2 (GCC)
> 
> root@sprawl:~# ld --version
> ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.2458
> root@sprawl:~# gld -v
> GNU ld (GNU Binutils) 2.23.1
> 
> The bootstrap fails during stage 3. It attempts to emerge bash, which
> requires pkgconfig. The configure phase of pkgconfig fails. It looks like
> USE flag "internal-glib" is specified, and so the configure script of glib
> is called. It fails with
> 
> 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
> 
> Here is the emerge info for pkgconfig
> 
> johnh@sprawl:~/gentoo$ emerge --info =dev-util/pkgconfig-0.29.1
> Portage 2.3.5-prefix (python 2.7.3-final-0, prefix/sunos/solaris/5.11/x86,
> gcc-5.3.0, unavailable, 5.11 i86pc)
> =================================================================
>                          System Settings
> =================================================================
> System uname: Solaris-2.11-i86pc-i386-32bit-ELF
> Timestamp of repository gentoo_prefix: Wed, 05 Apr 2017 21:58:20 +0000
> sh bash 4.3_p48
> ld GNU ld (Gentoo 2.27 p1.0) 2.27
> 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="python2_7"
> PYTHON_TARGETS="python2_7 python3_5 python3_4" RUBY_TARGETS="ruby21"
> 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
> 
> Here is the entire emerge output
> 
> >>> Emerging (8 of 11) dev-util/pkgconfig-0.29.1::gentoo_prefix
>  * pkg-config-0.29.1.tar.gz SHA256 SHA512 size ;-) ...                   [
> ok ]
> >>> Unpacking source...
> >>> Unpacking pkg-config-0.29.1.tar.gz to
> /export/home/johnh/gentoo/var/tmp/portage/dev-util/pkgconfig-0.29.1/work
> >>> Source unpacked in
> /export/home/johnh/gentoo/var/tmp/portage/dev-util/pkgconfig-0.29.1/work
> >>> Preparing source in
> /export/home/johnh/gentoo/var/tmp/portage/dev-util/pkgconfig-0.29.1/work/pkg
> -config-0.29.1 ...
>  * Running elibtoolize in: pkg-config-0.29.1/
>  *   Applying portage/1.2.0 patch ...
>  *   Applying sed/1.5.6 patch ...
>  *   Applying as-needed/2.4.3 patch ...
>  *   Applying ppc64le/2.4.4 patch ...
>  * Running elibtoolize in: pkg-config-0.29.1/glib/
>  *   Applying portage/1.2.0 patch ...
>  *   Applying sed/1.5.6 patch ...
>  *   Applying as-needed/2.4.3 patch ...
>  *   Applying ppc64le/2.4.4 patch ...
> >>> Source prepared.
> >>> Configuring source in
> /export/home/johnh/gentoo/var/tmp/portage/dev-util/pkgconfig-0.29.1/work/pkg
> -config-0.29.1 ...
>  * abi_x86_32.x86: running multilib-minimal_abi_src_configure
>  * Appending a library link instruction (-lintl); libraries to link to
> should not be passed through LDFLAGS
> /export/home/johnh/gentoo/var/tmp/portage/dev-util/pkgconfig-0.29.1/work/pkg
> -config-0.29.1/configure --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
> checking for a BSD-compatible install...
> /export/home/johnh/gentoo/tmp/bin/install -c
> checking whether build environment is sane... yes
> checking for a thread-safe mkdir -p...
> /export/home/johnh/gentoo/tmp/bin/mkdir -p
> checking for gawk... gawk
> checking whether gmake sets $(MAKE)... yes
> checking whether gmake supports nested variables... yes
> checking build system type... i386-pc-solaris2.11
> checking host system type... i386-pc-solaris2.11
> checking how to print strings... print -r
> checking for style of include used by gmake... GNU
> checking for i386-pc-solaris2.11-gcc... i386-pc-solaris2.11-gcc
> checking whether the C compiler works... yes
> checking for C compiler default output file name... a.out
> checking for suffix of executables... 
> checking whether we are cross compiling... no
> checking for suffix of object files... o
> checking whether we are using the GNU C compiler... yes
> checking whether i386-pc-solaris2.11-gcc accepts -g... yes
> checking for i386-pc-solaris2.11-gcc option to accept ISO C89... none needed
> checking whether i386-pc-solaris2.11-gcc understands -c and -o together...
> yes
> checking dependency style of i386-pc-solaris2.11-gcc... none
> checking for a sed that does not truncate output...
> /export/home/johnh/gentoo/bin/sed
> checking for grep that handles long lines and -e...
> /export/home/johnh/gentoo/tmp/bin/grep
> checking for egrep... /export/home/johnh/gentoo/tmp/bin/grep -E
> checking for fgrep... /export/home/johnh/gentoo/tmp/bin/grep -F
> checking for ld used by i386-pc-solaris2.11-gcc...
> /export/home/johnh/gentoo/usr/i386-pc-solaris2.11/bin/ld
> checking if the linker
> (/export/home/johnh/gentoo/usr/i386-pc-solaris2.11/bin/ld) is GNU ld... yes
> checking for BSD- or MS-compatible name lister (nm)...
> /export/home/johnh/gentoo/bin/i386-pc-solaris2.11-nm -B
> checking the name lister
> (/export/home/johnh/gentoo/bin/i386-pc-solaris2.11-nm -B) interface... BSD
> nm
> checking whether ln -s works... yes
> checking the maximum length of command line arguments... 786240
> checking how to convert i386-pc-solaris2.11 file names to
> i386-pc-solaris2.11 format... func_convert_file_noop
> checking how to convert i386-pc-solaris2.11 file names to toolchain
> format... func_convert_file_noop
> checking for /export/home/johnh/gentoo/usr/i386-pc-solaris2.11/bin/ld option
> to reload object files... -r
> checking for i386-pc-solaris2.11-objdump... i386-pc-solaris2.11-objdump
> checking how to recognize dependent libraries... pass_all
> checking for i386-pc-solaris2.11-dlltool... no
> checking for dlltool... no
> checking how to associate runtime and link libraries... print -r --
> checking for i386-pc-solaris2.11-ar... i386-pc-solaris2.11-ar
> checking for archiver @FILE support... @
> checking for i386-pc-solaris2.11-strip... i386-pc-solaris2.11-strip
> checking for i386-pc-solaris2.11-ranlib... i386-pc-solaris2.11-ranlib
> checking command to parse
> /export/home/johnh/gentoo/bin/i386-pc-solaris2.11-nm -B output from
> i386-pc-solaris2.11-gcc object... ok
> checking for sysroot... no
> checking for a working dd... /export/home/johnh/gentoo/tmp/bin/dd
> checking how to truncate binary pipes...
> /export/home/johnh/gentoo/tmp/bin/dd bs=4096 count=1
> checking for i386-pc-solaris2.11-mt... no
> checking for mt... mt
> checking if mt is a manifest tool... no
> checking how to run the C preprocessor... i386-pc-solaris2.11-gcc -E
> checking for ANSI C header files... yes
> checking for sys/types.h... yes
> checking for sys/stat.h... yes
> checking for stdlib.h... yes
> checking for string.h... yes
> checking for memory.h... yes
> checking for strings.h... yes
> checking for inttypes.h... yes
> checking for stdint.h... yes
> checking for unistd.h... yes
> checking for dlfcn.h... yes
> checking for objdir... .libs
> checking if i386-pc-solaris2.11-gcc supports -fno-rtti -fno-exceptions... no
> checking for i386-pc-solaris2.11-gcc option to produce PIC... -fPIC -DPIC
> checking if i386-pc-solaris2.11-gcc PIC flag -fPIC -DPIC works... yes
> checking if i386-pc-solaris2.11-gcc static flag -static works... no
> checking if i386-pc-solaris2.11-gcc supports -c -o file.o... yes
> checking if i386-pc-solaris2.11-gcc supports -c -o file.o... (cached) yes
> checking whether the i386-pc-solaris2.11-gcc linker
> (/export/home/johnh/gentoo/usr/i386-pc-solaris2.11/bin/ld) supports shared
> libraries... yes
> checking whether -lc should be explicitly linked in... no
> checking dynamic linker characteristics... solaris2.11 ld.so
> checking how to hardcode library paths into programs... immediate
> checking whether stripping libraries is possible... yes
> checking if libtool supports shared libraries... yes
> checking whether to build shared libraries... yes
> checking whether to build static libraries... yes
> checking whether gmake supports nested variables... (cached) yes
> checking for special C compiler options needed for large files... no
> checking for _FILE_OFFSET_BITS value needed for large files... 64
> checking for i386-pc-solaris2.11-gcc... (cached) i386-pc-solaris2.11-gcc
> checking whether we are using the GNU C compiler... (cached) yes
> checking whether i386-pc-solaris2.11-gcc accepts -g... (cached) yes
> checking for i386-pc-solaris2.11-gcc option to accept ISO C89... (cached)
> none needed
> checking whether i386-pc-solaris2.11-gcc understands -c and -o together...
> (cached) yes
> checking dependency style of i386-pc-solaris2.11-gcc... (cached) none
> checking for ln... ln
> checking dirent.h usability... yes
> checking dirent.h presence... yes
> checking for dirent.h... yes
> checking for unistd.h... (cached) yes
> checking sys/wait.h usability... yes
> checking sys/wait.h presence... yes
> checking for sys/wait.h... yes
> checking malloc.h usability... yes
> checking malloc.h presence... yes
> checking for malloc.h... yes
> checking for bash... /export/home/johnh/gentoo/bin/bash
> checking for default search path for .pc files...
> ${libdir}/pkgconfig:${datadir}/pkgconfig
> checking for system include path to avoid -I flags...
> /export/home/johnh/gentoo/usr/include
> checking for system library path to avoid -L flags...
> /export/home/johnh/gentoo/usr/lib
> configure: creating ./config.lt
> config.lt: creating libtool
> checking whether to list both direct and indirect dependencies... no
> checking for Win32... no
> checking if prefix should be redefined at runtime... no
> checking if internal glib should be used... yes
> checking if host- prefixed tool should be installed... yes
> checking that generated files are newer than configure... done
> configure: creating ./config.status
> config.status: creating Makefile
> config.status: creating pkg.m4
> config.status: creating check/Makefile
> config.status: creating check/config.sh
> config.status: creating config.h.win32
> config.status: creating config.h
> config.status: executing depfiles commands
> config.status: executing libtool commands
> === configuring in glib
> (/export/home/johnh/gentoo/var/tmp/portage/dev-util/pkgconfig-0.29.1/work/pk
> g-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 -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
> checking for a BSD-compatible install...
> /export/home/johnh/gentoo/tmp/bin/install -c
> checking whether build environment is sane... yes
> checking for a thread-safe mkdir -p...
> /export/home/johnh/gentoo/tmp/bin/mkdir -p
> checking for gawk... gawk
> checking whether gmake sets $(MAKE)... yes
> checking whether gmake supports nested variables... yes
> checking whether UID '100' is supported by ustar format... yes
> checking whether GID '10' is supported by ustar format... yes
> checking how to create a ustar tar archive... gnutar
> checking whether to enable maintainer-specific portions of Makefiles... yes
> checking whether gmake supports nested variables... (cached) yes
> checking for i386-pc-solaris2.11-gcc... i386-pc-solaris2.11-gcc
> checking whether the C compiler works... yes
> checking for C compiler default output file name... a.out
> checking for suffix of executables... 
> checking whether we are cross compiling... no
> checking for suffix of object files... o
> checking whether we are using the GNU C compiler... yes
> checking whether i386-pc-solaris2.11-gcc accepts -g... yes
> checking for i386-pc-solaris2.11-gcc option to accept ISO C89... none needed
> checking whether i386-pc-solaris2.11-gcc understands -c and -o together...
> yes
> checking for style of include used by gmake... GNU
> checking dependency style of i386-pc-solaris2.11-gcc... none
> checking how to run the C preprocessor... i386-pc-solaris2.11-gcc -E
> checking for grep that handles long lines and -e...
> /export/home/johnh/gentoo/tmp/bin/grep
> checking for egrep... /export/home/johnh/gentoo/tmp/bin/grep -E
> checking for ANSI C header files... yes
> checking for sys/types.h... yes
> checking for sys/stat.h... yes
> checking for stdlib.h... yes
> checking for string.h... yes
> checking for memory.h... yes
> checking for strings.h... yes
> checking for inttypes.h... yes
> checking for stdint.h... yes
> checking for unistd.h... yes
> checking minix/config.h usability... no
> checking minix/config.h presence... no
> checking for minix/config.h... no
> checking whether it is safe to define __EXTENSIONS__... yes
> checking build system type... i386-pc-solaris2.11
> checking host system type... i386-pc-solaris2.11
> checking for the BeOS... no
> checking for Win32... no
> checking for the Android... no
> checking for Mac OS X Carbon support... no
> checking for Mac OS X Cocoa support... no
> checking whether to enable garbage collector friendliness... no
> checking whether to disable memory pools... no
> checking for i386-pc-solaris2.11-c++... i386-pc-solaris2.11-c++
> checking whether we are using the GNU C++ compiler... yes
> checking whether i386-pc-solaris2.11-c++ accepts -g... yes
> checking dependency style of i386-pc-solaris2.11-c++... none
> checking for special C compiler options needed for large files... no
> checking for _FILE_OFFSET_BITS value needed for large files... 64
> checking for gawk... (cached) gawk
> checking for perl5... no
> checking for perl... perl
> checking for indent... no
> checking for perl... /usr/bin/perl
> checking for a Python interpreter with version >= 2.5... python2.6
> checking for python2.6... /usr/bin/python2.6
> checking for python2.6 version... 2.6
> checking for python2.6 platform... sunos5
> checking for python2.6 script directory...
> ${prefix}/lib/python2.6/site-packages
> checking for python2.6 extension module directory...
> ${exec_prefix}/lib/python2.6/site-packages
> checking for libiconv_open in -liconv... yes
> checking how to print strings... print -r
> checking for a sed that does not truncate output...
> /export/home/johnh/gentoo/bin/sed
> checking for fgrep... /export/home/johnh/gentoo/tmp/bin/grep -F
> checking for ld used by i386-pc-solaris2.11-gcc...
> /export/home/johnh/gentoo/usr/i386-pc-solaris2.11/bin/ld
> checking if the linker
> (/export/home/johnh/gentoo/usr/i386-pc-solaris2.11/bin/ld) is GNU ld... yes
> checking for BSD- or MS-compatible name lister (nm)...
> /export/home/johnh/gentoo/bin/i386-pc-solaris2.11-nm -B
> checking the name lister
> (/export/home/johnh/gentoo/bin/i386-pc-solaris2.11-nm -B) interface... BSD
> nm
> checking whether ln -s works... yes
> checking the maximum length of command line arguments... 786240
> checking how to convert i386-pc-solaris2.11 file names to
> i386-pc-solaris2.11 format... func_convert_file_noop
> checking how to convert i386-pc-solaris2.11 file names to toolchain
> format... func_convert_file_noop
> checking for /export/home/johnh/gentoo/usr/i386-pc-solaris2.11/bin/ld option
> to reload object files... -r
> checking for i386-pc-solaris2.11-objdump... i386-pc-solaris2.11-objdump
> checking how to recognize dependent libraries... pass_all
> checking for i386-pc-solaris2.11-dlltool... no
> checking for dlltool... no
> checking how to associate runtime and link libraries... print -r --
> checking for i386-pc-solaris2.11-ar... i386-pc-solaris2.11-ar
> checking for archiver @FILE support... @
> checking for i386-pc-solaris2.11-strip... i386-pc-solaris2.11-strip
> checking for i386-pc-solaris2.11-ranlib... i386-pc-solaris2.11-ranlib
> checking command to parse
> /export/home/johnh/gentoo/bin/i386-pc-solaris2.11-nm -B output from
> i386-pc-solaris2.11-gcc object... ok
> checking for sysroot... no
> checking for a working dd... /export/home/johnh/gentoo/tmp/bin/dd
> checking how to truncate binary pipes...
> /export/home/johnh/gentoo/tmp/bin/dd bs=4096 count=1
> checking for i386-pc-solaris2.11-mt... no
> checking for mt... mt
> checking if mt is a manifest tool... no
> checking for dlfcn.h... yes
> checking for objdir... .libs
> checking if i386-pc-solaris2.11-gcc supports -fno-rtti -fno-exceptions... no
> checking for i386-pc-solaris2.11-gcc option to produce PIC... -fPIC -DPIC
> checking if i386-pc-solaris2.11-gcc PIC flag -fPIC -DPIC works... yes
> checking if i386-pc-solaris2.11-gcc static flag -static works... no
> checking if i386-pc-solaris2.11-gcc supports -c -o file.o... yes
> checking if i386-pc-solaris2.11-gcc supports -c -o file.o... (cached) yes
> checking whether the i386-pc-solaris2.11-gcc linker
> (/export/home/johnh/gentoo/usr/i386-pc-solaris2.11/bin/ld) supports shared
> libraries... yes
> checking dynamic linker characteristics... solaris2.11 ld.so
> checking how to hardcode library paths into programs... immediate
> checking whether stripping libraries is possible... yes
> checking if libtool supports shared libraries... yes
> checking whether to build shared libraries... no
> checking whether to build static libraries... yes
> checking how to run the C++ preprocessor... i386-pc-solaris2.11-c++ -E
> checking for ld used by i386-pc-solaris2.11-c++...
> /export/home/johnh/gentoo/usr/i386-pc-solaris2.11/bin/ld
> checking if the linker
> (/export/home/johnh/gentoo/usr/i386-pc-solaris2.11/bin/ld) is GNU ld... yes
> checking whether the i386-pc-solaris2.11-c++ linker
> (/export/home/johnh/gentoo/usr/i386-pc-solaris2.11/bin/ld) supports shared
> libraries... yes
> checking for i386-pc-solaris2.11-c++ option to produce PIC... -fPIC -DPIC
> checking if i386-pc-solaris2.11-c++ PIC flag -fPIC -DPIC works... yes
> checking if i386-pc-solaris2.11-c++ static flag -static works... no
> checking if i386-pc-solaris2.11-c++ supports -c -o file.o... yes
> checking if i386-pc-solaris2.11-c++ supports -c -o file.o... (cached) yes
> checking whether the i386-pc-solaris2.11-c++ linker
> (/export/home/johnh/gentoo/usr/i386-pc-solaris2.11/bin/ld) supports shared
> libraries... yes
> checking dynamic linker characteristics... solaris2.11 ld.so
> checking how to hardcode library paths into programs... immediate
> configure: creating ./config.lt
> config.lt: creating libtool
> checking for extra flags to get ANSI library prototypes... none needed
> checking for extra flags for POSIX compliance... none needed
> checking for vprintf... yes
> checking for _doprnt... yes
> checking for size_t... yes
> checking for working alloca.h... yes
> checking for alloca... yes
> checking for mmap... yes
> checking for posix_memalign... yes
> checking for memalign... yes
> checking for valloc... yes
> checking for fsync... yes
> checking for pipe2... no
> checking for issetugid... yes
> checking for atexit... yes
> checking for on_exit... no
> checking for timegm... no
> checking for gmtime_r... yes
> checking for __libc_enable_secure... no
> checking size of char... 1
> checking size of short... 2
> checking size of long... 4
> checking size of int... 4
> checking size of void *... 4
> checking size of long long... 8
> checking size of __int64... 0
> checking for sig_atomic_t... yes
> checking for format to printf and scanf a guint64... %llu
> checking for an ANSI C-conforming const... yes
> checking for growing stack pointer... yes
> checking for __inline... yes
> checking for __inline__... yes
> checking for inline... yes
> checking if inline functions in headers work... yes
> checking for working do while(0) macros... yes
> checking for ISO C99 varargs macros in C... yes
> checking for ISO C99 varargs macros in C++... yes
> checking for GNUC varargs macros... yes
> checking for GNUC visibility attribute... yes
> checking whether using Sun Studio C compiler... no
> checking whether byte ordering is bigendian... no
> checking dirent.h usability... yes
> checking dirent.h presence... yes
> checking for dirent.h... yes
> checking float.h usability... yes
> checking float.h presence... yes
> checking for float.h... yes
> checking limits.h usability... yes
> checking limits.h presence... yes
> checking for limits.h... yes
> checking pwd.h usability... yes
> checking pwd.h presence... yes
> checking for pwd.h... yes
> checking grp.h usability... yes
> checking grp.h presence... yes
> checking for grp.h... yes
> checking sys/param.h usability... yes
> checking sys/param.h presence... yes
> checking for sys/param.h... yes
> checking sys/poll.h usability... yes
> checking sys/poll.h presence... yes
> checking for sys/poll.h... yes
> checking sys/resource.h usability... yes
> checking sys/resource.h presence... yes
> checking for sys/resource.h... yes
> checking sys/time.h usability... yes
> checking sys/time.h presence... yes
> checking for sys/time.h... yes
> checking sys/times.h usability... yes
> checking sys/times.h presence... yes
> checking for sys/times.h... yes
> checking sys/wait.h usability... yes
> checking sys/wait.h presence... yes
> checking for sys/wait.h... yes
> checking for unistd.h... (cached) yes
> checking values.h usability... yes
> checking values.h presence... yes
> checking for values.h... yes
> checking sys/select.h usability... yes
> checking sys/select.h presence... yes
> checking for sys/select.h... yes
> checking for sys/types.h... (cached) yes
> checking for stdint.h... (cached) yes
> checking for inttypes.h... (cached) yes
> checking sched.h usability... yes
> checking sched.h presence... yes
> checking for sched.h... yes
> checking malloc.h usability... yes
> checking malloc.h presence... yes
> checking for malloc.h... yes
> checking sys/vfs.h usability... yes
> checking sys/vfs.h presence... yes
> checking for sys/vfs.h... yes
> checking sys/vmount.h usability... no
> checking sys/vmount.h presence... no
> checking for sys/vmount.h... no
> checking sys/statfs.h usability... yes
> checking sys/statfs.h presence... yes
> checking for sys/statfs.h... yes
> checking sys/statvfs.h usability... yes
> checking sys/statvfs.h presence... yes
> checking for sys/statvfs.h... yes
> checking sys/filio.h usability... yes
> checking sys/filio.h presence... yes
> checking for sys/filio.h... yes
> checking mntent.h usability... no
> checking mntent.h presence... no
> checking for mntent.h... no
> checking sys/mnttab.h usability... yes
> checking sys/mnttab.h presence... yes
> checking for sys/mnttab.h... yes
> checking sys/vfstab.h usability... yes
> checking sys/vfstab.h presence... yes
> checking for sys/vfstab.h... yes
> checking sys/mntctl.h usability... no
> checking sys/mntctl.h presence... no
> checking for sys/mntctl.h... no
> checking fstab.h usability... no
> checking fstab.h presence... no
> checking for fstab.h... no
> checking sys/uio.h usability... yes
> checking sys/uio.h presence... yes
> checking for sys/uio.h... yes
> checking sys/mkdev.h usability... yes
> checking sys/mkdev.h presence... yes
> checking for sys/mkdev.h... yes
> checking linux/magic.h usability... no
> checking linux/magic.h presence... no
> checking for linux/magic.h... no
> checking sys/prctl.h usability... no
> checking sys/prctl.h presence... no
> checking for sys/prctl.h... no
> checking for sys/mount.h... yes
> checking for sys/sysctl.h... no
> checking for sysctlbyname... no
> checking xlocale.h usability... no
> checking xlocale.h presence... no
> checking for xlocale.h... no
> checking for struct stat.st_mtimensec... no
> checking for struct stat.st_mtim.tv_nsec... yes
> checking for struct stat.st_atimensec... no
> checking for struct stat.st_atim.tv_nsec... yes
> checking for struct stat.st_ctimensec... no
> checking for struct stat.st_ctim.tv_nsec... yes
> checking for struct stat.st_blksize... yes
> checking for struct stat.st_blocks... yes
> checking for struct statfs.f_fstypename... no
> checking for struct statfs.f_bavail... no
> checking for struct statvfs.f_basetype... yes
> checking for struct statvfs.f_fstypename... no
> checking for struct tm.tm_gmtoff... no
> checking for struct tm.__tm_gmtoff... no
> checking for dirent.h that defines DIR... yes
> checking for library containing opendir... none required
> checking for struct dirent.d_type... no
> checking for nl_langinfo and CODESET... yes
> checking stddef.h usability... yes
> checking stddef.h presence... yes
> checking for stddef.h... yes
> checking for stdlib.h... (cached) yes
> checking for string.h... (cached) yes
> checking for setlocale... yes
> checking whether we are using the GNU C Library 2.1 or newer... no
> checking size of size_t... 4
> checking for the appropriate definition for size_t... unsigned int
> checking size of ssize_t... 4
> checking for the appropriate definition for ssize_t... int
> checking for lstat... yes
> checking for strerror... yes
> checking for strsignal... yes
> checking for memmove... yes
> checking for vsnprintf... yes
> checking for stpcpy... yes
> checking for strcasecmp... yes
> checking for strncasecmp... yes
> checking for poll... yes
> checking for getcwd... yes
> checking for vasprintf... yes
> checking for setenv... yes
> checking for unsetenv... yes
> checking for getc_unlocked... yes
> checking for readlink... yes
> checking for symlink... yes
> checking for fdwalk... yes
> checking for memmem... yes
> checking for chown... yes
> checking for lchmod... no
> checking for lchown... yes
> checking for fchmod... yes
> checking for fchown... yes
> checking for link... yes
> checking for utimes... yes
> checking for getgrgid... yes
> checking for getpwuid... yes
> checking for getresuid... no
> checking for getmntent_r... no
> checking for setmntent... no
> checking for endmntent... no
> checking for hasmntopt... yes
> checking for getfsstat... no
> checking for getvfsstat... no
> checking for fallocate... no
> checking for splice... no
> checking for prlimit... no
> checking for statvfs... yes
> checking for statfs... yes
> checking whether to use statfs or statvfs... statvfs
> checking crt_externs.h usability... no
> checking crt_externs.h presence... no
> checking for crt_externs.h... no
> checking for _NSGetEnviron... no
> checking for newlocale... no
> checking for uselocale... no
> checking for strtod_l... no
> checking for strtoll_l... no
> checking for strtoull_l... no
> checking for C99 vsnprintf... yes
> checking whether printf supports positional parameters... yes
> checking value of AF_INET... 2
> checking value of AF_INET6... 26
> checking value of AF_UNIX... 1
> checking value of MSG_PEEK... 2
> checking value of MSG_OOB... 1
> checking value of MSG_DONTROUTE... 4
> checking for getprotobyname_r... no
> checking for endservent... no
> checking for if_nametoindex... no
> checking for if_indextoname... no
> 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
> 
> !!! Please attach the following file when seeking support:
> !!!
> /export/home/johnh/gentoo/var/tmp/portage/dev-util/pkgconfig-0.29.1/work/pkg
> -config-0.29.1-abi_x86_32.x86/config.log
>  * ERROR: dev-util/pkgconfig-0.29.1::gentoo_prefix failed (configure phase):
>  *   econf failed
>  * 
>  * Call stack:
>  *               ebuild.sh, line  115:  Called src_configure
>  *             environment, line 3302:  Called
> multilib-minimal_src_configure
>  *             environment, line 2466:  Called multilib_foreach_abi
> 'multilib-minimal_abi_src_configure'
>  *             environment, line 2680:  Called multibuild_foreach_variant
> '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_configure'
>  *             environment, line 2396:  Called _multibuild_run
> '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_configure'
>  *             environment, line 2394:  Called _multilib_multibuild_wrapper
> 'multilib-minimal_abi_src_configure'
>  *             environment, line  441:  Called
> multilib-minimal_abi_src_configure
>  *             environment, line 2460:  Called multilib_src_configure
>  *             environment, line 2913:  Called econf
> '--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'
>  *        phase-helpers.sh, line  665:  Called __helpers_die 'econf failed'
>  *   isolated-functions.sh, line  117:  Called die
>  * The specific snippet of code:
>  *              die "$@"
>  * 
>  * If you need support, post the output of `emerge --info
> '=dev-util/pkgconfig-0.29.1::gentoo_prefix'`,
>  * the complete build log and the output of `emerge -pqv
> '=dev-util/pkgconfig-0.29.1::gentoo_prefix'`.
>  * The complete build log is located at
> '/export/home/johnh/gentoo/var/tmp/portage/dev-util/pkgconfig-0.29.1/temp/bu
> ild.log'.
>  * The ebuild environment file is located at
> '/export/home/johnh/gentoo/var/tmp/portage/dev-util/pkgconfig-0.29.1/temp/en
> vironment'.
>  * Working directory:
> '/export/home/johnh/gentoo/var/tmp/portage/dev-util/pkgconfig-0.29.1/work/pk
> g-config-0.29.1-abi_x86_32.x86'
>  * S:
> '/export/home/johnh/gentoo/var/tmp/portage/dev-util/pkgconfig-0.29.1/work/pk
> g-config-0.29.1'
> 
> >>> Failed to emerge dev-util/pkgconfig-0.29.1, Log file:
> 
> >>>
> '/export/home/johnh/gentoo/var/tmp/portage/dev-util/pkgconfig-0.29.1/temp/bu
> ild.log'
> 
>  * Messages for package dev-util/pkgconfig-0.29.1:
> 
>  * ERROR: dev-util/pkgconfig-0.29.1::gentoo_prefix failed (configure phase):
>  *   econf failed
>  * 
>  * Call stack:
>  *               ebuild.sh, line  115:  Called src_configure
>  *             environment, line 3302:  Called
> multilib-minimal_src_configure
>  *             environment, line 2466:  Called multilib_foreach_abi
> 'multilib-minimal_abi_src_configure'
>  *             environment, line 2680:  Called multibuild_foreach_variant
> '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_configure'
>  *             environment, line 2396:  Called _multibuild_run
> '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_configure'
>  *             environment, line 2394:  Called _multilib_multibuild_wrapper
> 'multilib-minimal_abi_src_configure'
>  *             environment, line  441:  Called
> multilib-minimal_abi_src_configure
>  *             environment, line 2460:  Called multilib_src_configure
>  *             environment, line 2913:  Called econf
> '--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'
>  *        phase-helpers.sh, line  665:  Called __helpers_die 'econf failed'
>  *   isolated-functions.sh, line  117:  Called die
>  * The specific snippet of code:
>  *              die "$@"
>  * 
>  * If you need support, post the output of `emerge --info
> '=dev-util/pkgconfig-0.29.1::gentoo_prefix'`,
>  * the complete build log and the output of `emerge -pqv
> '=dev-util/pkgconfig-0.29.1::gentoo_prefix'`.
>  * The complete build log is located at
> '/export/home/johnh/gentoo/var/tmp/portage/dev-util/pkgconfig-0.29.1/temp/bu
> ild.log'.
>  * The ebuild environment file is located at
> '/export/home/johnh/gentoo/var/tmp/portage/dev-util/pkgconfig-0.29.1/temp/en
> vironment'.
>  * Working directory:
> '/export/home/johnh/gentoo/var/tmp/portage/dev-util/pkgconfig-0.29.1/work/pk
> g-config-0.29.1-abi_x86_32.x86'
>  * S:
> '/export/home/johnh/gentoo/var/tmp/portage/dev-util/pkgconfig-0.29.1/work/pk
> g-config-0.29.1'
> 
> Hmmmm, I was already afraid of this to happen.  Running
>   /export/home/johnh/gentoo/usr/bin/bash ./bootstrap-prefix.sh
> "/export/home/johnh/gentoo" stage3
> somewhere failed :(  Details might be found in the build log:
>  
> /export/home/johnh/gentoo/var/tmp/portage/dev-util/pkgconfig-0.29.1/temp/bui
> ld.log
> I have no clue, really.  Please find friendly folks in #gentoo-prefix on
> irc.gentoo.org, gentoo-alt@lists.gentoo.org mailing list, or file a bug
> at bugs.gentoo.org under Gentoo/Alt, Prefix Support.  This is most
> inconvenient, and it crushed my ego.  Sorry, I give up.
> Should you want to give it a try, there is
> /export/home/johnh/gentoo/stage3.log
> 
> 
> Digging further, I can see the configure trying to find res_query in
> /export/home/johnh/gentoo/var/tmp/portage/dev-util/pkgconfig-0.29.1/work/pkg
> -config-0.29.1-abi_x86_32.x86/glib/config.log
> 
> The relevant section is
> 
> 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/ccg
> naGcB.o: In function `main':
> conftest.c:(.text.startup+0x1f): undefined reference to `res_query'
> collect2: error: ld returned 1 exit status
> 
> 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
> 
> So Im not a programmer, and I know little about debugging build issues, but
> I think those undefined references refer to zlib. Zlib is installed at
> 
> johnh@sprawl:~$ find . -name "libz.so*"
> ./gentoo/var/tmp/zlib-1.2.8/zlib-1.2.8/libz.so
> ./gentoo/var/tmp/zlib-1.2.8/zlib-1.2.8/libz.so.1
> ./gentoo/var/tmp/zlib-1.2.8/zlib-1.2.8/libz.so.1.2.8
> ./gentoo/tmp/usr/lib/libz.so.1
> ./gentoo/tmp/usr/lib/libz.so
> ./gentoo/tmp/usr/lib/libz.so.1.2.8
> ./gentoo/usr/lib/libz.so
> ./gentoo/usr/lib/libz.so.1
> ./gentoo/usr/lib/libz.so.1.2.11
> 
> And also the system zlib is in /lib/libz.so.1. I was considering the
> hardcoded symbol versions it was reporting in /lib/libelf.so.1. GNU LD is
> never going to generate versioned symbols, so they will never link. If I
> fool around and tell ld to use /lib/libz.so.1 it does actually link.
> 
> I'm properly stuck. I've been trying to get passed this point for a week
> now. I hope that someone out there has seen this failure before and can help
> 
> Regards
> 
> John Helliwell
> 
> 
> 

-- 
Fabian Groffen
Gentoo on a different level

Attachment: signature.asc
Description: Digital signature

Reply via email to