Gentoo Archives: gentoo-alt

From: John Helliwell <john.helliwell@×××××.com>
To: gentoo-alt@l.g.o
Subject: RE: [gentoo-alt] Prefix fails to bootstrap on Solaris 11
Date: Wed, 17 May 2017 12:27:01
Message-Id: 003301d2cf08$e035b5b0$a0a12110$@gmail.com
In Reply to: Re: [gentoo-alt] Prefix fails to bootstrap on Solaris 11 by John Helliwell
1 Phew, that went badly.
2
3
4
5 I guess the error messages about /proc/mounts missing, and “Your kernel is broken” mean glibc on Solaris is a no go.
6
7
8
9 So I’m back to my original problem of pkgconfig with internal-glib failing
10
11
12
13 Cheers
14
15
16
17 John Helliwell
18
19
20
21 From: John Helliwell [mailto:john.helliwell@×××××.com]
22 Sent: 16 May 2017 21:51
23 To: gentoo-alt@l.g.o
24 Subject: Re: [gentoo-alt] Prefix fails to bootstrap on Solaris 11
25
26
27
28 Hi,
29
30
31
32 You gave me an idea. You posted the Solaris man page for libresolv, and I wondered if the GNU man page for resolver would be more appropriate, since we are using a GNU toolchain. Of course on Linux those resolver functions are provided by glibc.
33
34
35
36 I'm going to try bootstrapping Prefix / glibc (RAP)
37
38
39
40 Will let you know how that goes
41
42
43
44
45
46 On Tue, May 16, 2017 at 8:33 PM +0100, "Fabian Groffen" <grobian@g.o <mailto:grobian@g.o> > wrote:
47
48 Hi!
49
50 https://forums.gentoo.org/viewtopic-p-8065614.html?sid=95636da82f97a16259d38eeecbdbab5e
51
52 Is this the same problem?
53
54 Does -lresolv -lsocket -lnsl work by chance?
55 (https://docs.oracle.com/cd/E23824_01/html/821-1464/libresolv-3lib.html)
56
57 Thanks,
58 Fabian
59
60 On 16-05-2017 15:30:16 +0100, John Helliwell wrote:
61 > Hi,
62 >
63 > I'm having trouble with bootstrap-prefix.sh on the Intel version of Solaris
64 > 11.3 - This doesn't come with a C compiler pre-installed, and so I installed
65 > one as such :-
66 >
67 > pkg install pkg://solaris/developer/build/gnu-make \
68 > pkg://solaris/developer/build/make \
69 > pkg://solaris/developer/gcc \
70 > pkg://solaris/system/header \
71 > pkg://solaris/developer/build/autoconf \
72 > pkg://solaris/developer/build/automake
73 >
74 > This results in a gcc 4.8.2 at /usr/bin/gcc, and a GNU linker /usr/bin/gld
75 > 2.23.1. The original Solaris linker is intact at /usr/bin/ld
76 >
77 > Oracle Corporation SunOS 5.11 11.3 September 2015
78 > root@sprawl:~# type gcc
79 > gcc is /usr/bin/gcc
80 > root@sprawl:~# gcc -v
81 > Using built-in specs.
82 > COLLECT_GCC=gcc
83 > COLLECT_LTO_WRAPPER=/usr/gcc/4.8/lib/gcc/i386-pc-solaris2.11/4.8.2/lto-wrapp
84 > er
85 > Target: i386-pc-solaris2.11
86 > Configured with:
87 > /builds/hudson/workspace/nightly-update/build/i386/components/gcc48/gcc-4.8.
88 > 2/configure CC=/usr/gcc/4.7/bin/gcc CXX=/usr/gcc/4.7/bin/g++
89 > --prefix=/usr/gcc/4.8 --mandir=/usr/gcc/4.8/share/man
90 > --bindir=/usr/gcc/4.8/bin --libdir=/usr/gcc/4.8/lib
91 > --sbindir=/usr/gcc/4.8/sbin --infodir=/usr/gcc/4.8/share/info
92 > --libexecdir=/usr/gcc/4.8/lib --enable-languages=c,c++,fortran,objc
93 > --enable-shared --with-gmp-include=/usr/include/gmp
94 > --with-mpfr-include=/usr/include/mpfr --without-gnu-ld --with-ld=/usr/bin/ld
95 > --with-gnu-as --with-as=/usr/gnu/bin/as CFLAGS='-g -O2 -mtune=opteron
96 > -march=opteron' CXXFLAGS='-g -O2 -mtune=opteron -march=opteron'
97 > Thread model: posix
98 > gcc version 4.8.2 (GCC)
99 >
100 > root@sprawl:~# ld --version
101 > ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.2458
102 > root@sprawl:~# gld -v
103 > GNU ld (GNU Binutils) 2.23.1
104 >
105 > The bootstrap fails during stage 3. It attempts to emerge bash, which
106 > requires pkgconfig. The configure phase of pkgconfig fails. It looks like
107 > USE flag "internal-glib" is specified, and so the configure script of glib
108 > is called. It fails with
109 >
110 > checking for res_query... configure: error: not found
111 > configure: error:
112 > /export/home/johnh/gentoo/var/tmp/portage/dev-util/pkgconfig-0.29.1/work/pkg
113 > -config-0.29.1/glib/configure failed for glib
114 >
115 > Here is the emerge info for pkgconfig
116 >
117 > johnh@sprawl:~/gentoo$ emerge --info =dev-util/pkgconfig-0.29.1
118 > Portage 2.3.5-prefix (python 2.7.3-final-0, prefix/sunos/solaris/5.11/x86,
119 > gcc-5.3.0, unavailable, 5.11 i86pc)
120 > =================================================================
121 > System Settings
122 > =================================================================
123 > System uname: Solaris-2.11-i86pc-i386-32bit-ELF
124 > Timestamp of repository gentoo_prefix: Wed, 05 Apr 2017 21:58:20 +0000
125 > sh bash 4.3_p48
126 > ld GNU ld (Gentoo 2.27 p1.0) 2.27
127 > sys-devel/binutils: 2.27::gentoo_prefix
128 > sys-devel/gcc: 5.3.0::gentoo_prefix
129 > sys-devel/gcc-config: 1.8-r01.1::gentoo_prefix
130 > Repositories:
131 >
132 > gentoo_prefix
133 > location: /export/home/johnh/gentoo/usr/portage
134 > sync-type: rsync
135 > sync-uri: rsync://rsync.prefix.bitzolder.nl/gentoo-portage-prefix
136 > priority: -1000
137 >
138 > ACCEPT_KEYWORDS="~x86-solaris"
139 > ACCEPT_LICENSE="* -@EULA"
140 > CBUILD="i386-pc-solaris2.11"
141 > CFLAGS=" -O2 -pipe"
142 > CHOST="i386-pc-solaris2.11"
143 > CONFIG_PROTECT="/etc"
144 > CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/gentoo-release
145 > /etc/terminfo"
146 > CXXFLAGS=" -O2 -pipe"
147 > DISTDIR="/export/home/johnh/gentoo/tmp/usr/portage/distfiles"
148 > FCFLAGS=""
149 > FEATURES="assume-digests binpkg-logs case-insensitive-fs collision-protect
150 > config-protect-if-modified distlocks ebuild-locks fixlafiles force-prefix
151 > merge-sync news nostrip parallel-fetch preserve-libs protect-owned sfperms
152 > strict unknown-features-warn unmerge-logs unmerge-orphans unprivileged"
153 > FFLAGS=""
154 > GENTOO_MIRRORS="http://distfiles.gentoo.org"
155 > LANG="en_US.UTF-8"
156 > LC_ALL=""
157 > LDFLAGS=""
158 > MAKEOPTS="-j1"
159 > PKGDIR="/export/home/johnh/gentoo/tmp/usr/portage/packages"
160 > PORTAGE_CONFIGROOT="/export/home/johnh/gentoo/tmp/"
161 > PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times
162 > --omit-dir-times --compress --force --whole-file --delete --stats
163 > --human-readable --timeout=180 --exclude=/distfiles --exclude=/local
164 > --exclude=/packages --exclude=/.git"
165 > PORTAGE_TMPDIR="/export/home/johnh/gentoo/tmp/var/tmp"
166 > USE="cracklib cxx ipv6 modules ncurses nls prefix prefix-guest readline ssl
167 > unicode x86-solaris zlib" ABI_X86="32" APACHE2_MODULES="authn_core
168 > authz_core socache_shmcb unixd actions alias auth_basic authn_alias
169 > authn_anon authn_dbm authn_default authn_file authz_dbm authz_default
170 > authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid
171 > dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache
172 > filter headers include info log_config logio mem_cache mime mime_magic
173 > negotiation rewrite setenvif speling status unique_id userdir usertrack
174 > vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables
175 > krita karbon braindump author" COLLECTD_PLUGINS="df interface irq load
176 > memory rrdtool swap syslog" ELIBC="SunOS" GPSD_PROTOCOLS="ashtech aivdm
177 > earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea
178 > ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq
179 > superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="keyboard
180 > mouse" KERNEL="SunOS" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216
181 > lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console
182 > presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice"
183 > PHP_TARGETS="php5-6" PYTHON_SINGLE_TARGET="python2_7"
184 > PYTHON_TARGETS="python2_7 python3_5 python3_4" RUBY_TARGETS="ruby21"
185 > USERLAND="GNU" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options
186 > ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat
187 > logmark ipmark dhcpmac delude chaos account"
188 > Unset: CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK,
189 > PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS,
190 > PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
191 >
192 > Here is the entire emerge output
193 >
194 > >>> Emerging (8 of 11) dev-util/pkgconfig-0.29.1::gentoo_prefix
195 > * pkg-config-0.29.1.tar.gz SHA256 SHA512 size ;-) ... [
196 > ok ]
197 > >>> Unpacking source...
198 > >>> Unpacking pkg-config-0.29.1.tar.gz to
199 > /export/home/johnh/gentoo/var/tmp/portage/dev-util/pkgconfig-0.29.1/work
200 > >>> Source unpacked in
201 > /export/home/johnh/gentoo/var/tmp/portage/dev-util/pkgconfig-0.29.1/work
202 > >>> Preparing source in
203 > /export/home/johnh/gentoo/var/tmp/portage/dev-util/pkgconfig-0.29.1/work/pkg
204 > -config-0.29.1 ...
205 > * Running elibtoolize in: pkg-config-0.29.1/
206 > * Applying portage/1.2.0 patch ...
207 > * Applying sed/1.5.6 patch ...
208 > * Applying as-needed/2.4.3 patch ...
209 > * Applying ppc64le/2.4.4 patch ...
210 > * Running elibtoolize in: pkg-config-0.29.1/glib/
211 > * Applying portage/1.2.0 patch ...
212 > * Applying sed/1.5.6 patch ...
213 > * Applying as-needed/2.4.3 patch ...
214 > * Applying ppc64le/2.4.4 patch ...
215 > >>> Source prepared.
216 > >>> Configuring source in
217 > /export/home/johnh/gentoo/var/tmp/portage/dev-util/pkgconfig-0.29.1/work/pkg
218 > -config-0.29.1 ...
219 > * abi_x86_32.x86: running multilib-minimal_abi_src_configure
220 > * Appending a library link instruction (-lintl); libraries to link to
221 > should not be passed through LDFLAGS
222 > /export/home/johnh/gentoo/var/tmp/portage/dev-util/pkgconfig-0.29.1/work/pkg
223 > -config-0.29.1/configure --prefix=/export/home/johnh/gentoo/usr
224 > --build=i386-pc-solaris2.11 --host=i386-pc-solaris2.11
225 > --mandir=/export/home/johnh/gentoo/usr/share/man
226 > --infodir=/export/home/johnh/gentoo/usr/share/info
227 > --datadir=/export/home/johnh/gentoo/usr/share
228 > --sysconfdir=/export/home/johnh/gentoo/etc
229 > --localstatedir=/export/home/johnh/gentoo/var/lib
230 > --disable-dependency-tracking --disable-silent-rules
231 > --docdir=/export/home/johnh/gentoo/usr/share/doc/pkgconfig-0.29.1
232 > --htmldir=/export/home/johnh/gentoo/usr/share/doc/pkgconfig-0.29.1/html
233 > --libdir=/export/home/johnh/gentoo/usr/lib
234 > --docdir=/export/home/johnh/gentoo/usr/share/doc/pkgconfig-0.29.1/html
235 > --with-system-include-path=/export/home/johnh/gentoo/usr/include
236 > --with-system-library-path=/export/home/johnh/gentoo/usr/lib
237 > --with-internal-glib --with-libiconv=gnu
238 > checking for a BSD-compatible install...
239 > /export/home/johnh/gentoo/tmp/bin/install -c
240 > checking whether build environment is sane... yes
241 > checking for a thread-safe mkdir -p...
242 > /export/home/johnh/gentoo/tmp/bin/mkdir -p
243 > checking for gawk... gawk
244 > checking whether gmake sets $(MAKE)... yes
245 > checking whether gmake supports nested variables... yes
246 > checking build system type... i386-pc-solaris2.11
247 > checking host system type... i386-pc-solaris2.11
248 > checking how to print strings... print -r
249 > checking for style of include used by gmake... GNU
250 > checking for i386-pc-solaris2.11-gcc... i386-pc-solaris2.11-gcc
251 > checking whether the C compiler works... yes
252 > checking for C compiler default output file name... a.out
253 > checking for suffix of executables...
254 > checking whether we are cross compiling... no
255 > checking for suffix of object files... o
256 > checking whether we are using the GNU C compiler... yes
257 > checking whether i386-pc-solaris2.11-gcc accepts -g... yes
258 > checking for i386-pc-solaris2.11-gcc option to accept ISO C89... none needed
259 > checking whether i386-pc-solaris2.11-gcc understands -c and -o together...
260 > yes
261 > checking dependency style of i386-pc-solaris2.11-gcc... none
262 > checking for a sed that does not truncate output...
263 > /export/home/johnh/gentoo/bin/sed
264 > checking for grep that handles long lines and -e...
265 > /export/home/johnh/gentoo/tmp/bin/grep
266 > checking for egrep... /export/home/johnh/gentoo/tmp/bin/grep -E
267 > checking for fgrep... /export/home/johnh/gentoo/tmp/bin/grep -F
268 > checking for ld used by i386-pc-solaris2.11-gcc...
269 > /export/home/johnh/gentoo/usr/i386-pc-solaris2.11/bin/ld
270 > checking if the linker
271 > (/export/home/johnh/gentoo/usr/i386-pc-solaris2.11/bin/ld) is GNU ld... yes
272 > checking for BSD- or MS-compatible name lister (nm)...
273 > /export/home/johnh/gentoo/bin/i386-pc-solaris2.11-nm -B
274 > checking the name lister
275 > (/export/home/johnh/gentoo/bin/i386-pc-solaris2.11-nm -B) interface... BSD
276 > nm
277 > checking whether ln -s works... yes
278 > checking the maximum length of command line arguments... 786240
279 > checking how to convert i386-pc-solaris2.11 file names to
280 > i386-pc-solaris2.11 format... func_convert_file_noop
281 > checking how to convert i386-pc-solaris2.11 file names to toolchain
282 > format... func_convert_file_noop
283 > checking for /export/home/johnh/gentoo/usr/i386-pc-solaris2.11/bin/ld option
284 > to reload object files... -r
285 > checking for i386-pc-solaris2.11-objdump... i386-pc-solaris2.11-objdump
286 > checking how to recognize dependent libraries... pass_all
287 > checking for i386-pc-solaris2.11-dlltool... no
288 > checking for dlltool... no
289 > checking how to associate runtime and link libraries... print -r --
290 > checking for i386-pc-solaris2.11-ar... i386-pc-solaris2.11-ar
291 > checking for archiver @FILE support... @
292 > checking for i386-pc-solaris2.11-strip... i386-pc-solaris2.11-strip
293 > checking for i386-pc-solaris2.11-ranlib... i386-pc-solaris2.11-ranlib
294 > checking command to parse
295 > /export/home/johnh/gentoo/bin/i386-pc-solaris2.11-nm -B output from
296 > i386-pc-solaris2.11-gcc object... ok
297 > checking for sysroot... no
298 > checking for a working dd... /export/home/johnh/gentoo/tmp/bin/dd
299 > checking how to truncate binary pipes...
300 > /export/home/johnh/gentoo/tmp/bin/dd bs=4096 count=1
301 > checking for i386-pc-solaris2.11-mt... no
302 > checking for mt... mt
303 > checking if mt is a manifest tool... no
304 > checking how to run the C preprocessor... i386-pc-solaris2.11-gcc -E
305 > checking for ANSI C header files... yes
306 > checking for sys/types.h... yes
307 > checking for sys/stat.h... yes
308 > checking for stdlib.h... yes
309 > checking for string.h... yes
310 > checking for memory.h... yes
311 > checking for strings.h... yes
312 > checking for inttypes.h... yes
313 > checking for stdint.h... yes
314 > checking for unistd.h... yes
315 > checking for dlfcn.h... yes
316 > checking for objdir... .libs
317 > checking if i386-pc-solaris2.11-gcc supports -fno-rtti -fno-exceptions... no
318 > checking for i386-pc-solaris2.11-gcc option to produce PIC... -fPIC -DPIC
319 > checking if i386-pc-solaris2.11-gcc PIC flag -fPIC -DPIC works... yes
320 > checking if i386-pc-solaris2.11-gcc static flag -static works... no
321 > checking if i386-pc-solaris2.11-gcc supports -c -o file.o... yes
322 > checking if i386-pc-solaris2.11-gcc supports -c -o file.o... (cached) yes
323 > checking whether the i386-pc-solaris2.11-gcc linker
324 > (/export/home/johnh/gentoo/usr/i386-pc-solaris2.11/bin/ld) supports shared
325 > libraries... yes
326 > checking whether -lc should be explicitly linked in... no
327 > checking dynamic linker characteristics... solaris2.11 ld.so
328 > checking how to hardcode library paths into programs... immediate
329 > checking whether stripping libraries is possible... yes
330 > checking if libtool supports shared libraries... yes
331 > checking whether to build shared libraries... yes
332 > checking whether to build static libraries... yes
333 > checking whether gmake supports nested variables... (cached) yes
334 > checking for special C compiler options needed for large files... no
335 > checking for _FILE_OFFSET_BITS value needed for large files... 64
336 > checking for i386-pc-solaris2.11-gcc... (cached) i386-pc-solaris2.11-gcc
337 > checking whether we are using the GNU C compiler... (cached) yes
338 > checking whether i386-pc-solaris2.11-gcc accepts -g... (cached) yes
339 > checking for i386-pc-solaris2.11-gcc option to accept ISO C89... (cached)
340 > none needed
341 > checking whether i386-pc-solaris2.11-gcc understands -c and -o together...
342 > (cached) yes
343 > checking dependency style of i386-pc-solaris2.11-gcc... (cached) none
344 > checking for ln... ln
345 > checking dirent.h usability... yes
346 > checking dirent.h presence... yes
347 > checking for dirent.h... yes
348 > checking for unistd.h... (cached) yes
349 > checking sys/wait.h usability... yes
350 > checking sys/wait.h presence... yes
351 > checking for sys/wait.h... yes
352 > checking malloc.h usability... yes
353 > checking malloc.h presence... yes
354 > checking for malloc.h... yes
355 > checking for bash... /export/home/johnh/gentoo/bin/bash
356 > checking for default search path for .pc files...
357 > ${libdir}/pkgconfig:${datadir}/pkgconfig
358 > checking for system include path to avoid -I flags...
359 > /export/home/johnh/gentoo/usr/include
360 > checking for system library path to avoid -L flags...
361 > /export/home/johnh/gentoo/usr/lib
362 > configure: creating ./config.lt
363 > config.lt: creating libtool
364 > checking whether to list both direct and indirect dependencies... no
365 > checking for Win32... no
366 > checking if prefix should be redefined at runtime... no
367 > checking if internal glib should be used... yes
368 > checking if host- prefixed tool should be installed... yes
369 > checking that generated files are newer than configure... done
370 > configure: creating ./config.status
371 > config.status: creating Makefile
372 > config.status: creating pkg.m4
373 > config.status: creating check/Makefile
374 > config.status: creating check/config.sh
375 > config.status: creating config.h.win32
376 > config.status: creating config.h
377 > config.status: executing depfiles commands
378 > config.status: executing libtool commands
379 > === configuring in glib
380 > (/export/home/johnh/gentoo/var/tmp/portage/dev-util/pkgconfig-0.29.1/work/pk
381 > g-config-0.29.1-abi_x86_32.x86/glib)
382 > configure: running /export/home/johnh/gentoo/bin/bash
383 > /export/home/johnh/gentoo/var/tmp/portage/dev-util/pkgconfig-0.29.1/work/pkg
384 > -config-0.29.1/glib/configure --disable-option-checking
385 > '--prefix=/export/home/johnh/gentoo/usr' '--build=i386-pc-solaris2.11'
386 > '--host=i386-pc-solaris2.11'
387 > '--mandir=/export/home/johnh/gentoo/usr/share/man'
388 > '--infodir=/export/home/johnh/gentoo/usr/share/info'
389 > '--datadir=/export/home/johnh/gentoo/usr/share'
390 > '--sysconfdir=/export/home/johnh/gentoo/etc'
391 > '--localstatedir=/export/home/johnh/gentoo/var/lib'
392 > '--disable-dependency-tracking' '--disable-silent-rules'
393 > '--docdir=/export/home/johnh/gentoo/usr/share/doc/pkgconfig-0.29.1'
394 > '--htmldir=/export/home/johnh/gentoo/usr/share/doc/pkgconfig-0.29.1/html'
395 > '--libdir=/export/home/johnh/gentoo/usr/lib'
396 > '--docdir=/export/home/johnh/gentoo/usr/share/doc/pkgconfig-0.29.1/html'
397 > '--with-system-include-path=/export/home/johnh/gentoo/usr/include'
398 > '--with-system-library-path=/export/home/johnh/gentoo/usr/lib'
399 > '--with-internal-glib' '--with-libiconv=gnu'
400 > 'build_alias=i386-pc-solaris2.11' 'host_alias=i386-pc-solaris2.11' 'CFLAGS=
401 > -O2 -pipe' 'LDFLAGS=-L/export/home/johnh/gentoo/usr/lib
402 > -L/export/home/johnh/gentoo/usr/lib -lintl'
403 > 'CPPFLAGS=-I/export/home/johnh/gentoo/usr/include -DENABLE_NLS'
404 > 'PKG_CONFIG_PATH=/export/home/johnh/gentoo/usr/lib/pkgconfig'
405 > --cache-file=/dev/null
406 > --srcdir=/export/home/johnh/gentoo/var/tmp/portage/dev-util/pkgconfig-0.29.1
407 > /work/pkg-config-0.29.1/glib
408 > checking for a BSD-compatible install...
409 > /export/home/johnh/gentoo/tmp/bin/install -c
410 > checking whether build environment is sane... yes
411 > checking for a thread-safe mkdir -p...
412 > /export/home/johnh/gentoo/tmp/bin/mkdir -p
413 > checking for gawk... gawk
414 > checking whether gmake sets $(MAKE)... yes
415 > checking whether gmake supports nested variables... yes
416 > checking whether UID '100' is supported by ustar format... yes
417 > checking whether GID '10' is supported by ustar format... yes
418 > checking how to create a ustar tar archive... gnutar
419 > checking whether to enable maintainer-specific portions of Makefiles... yes
420 > checking whether gmake supports nested variables... (cached) yes
421 > checking for i386-pc-solaris2.11-gcc... i386-pc-solaris2.11-gcc
422 > checking whether the C compiler works... yes
423 > checking for C compiler default output file name... a.out
424 > checking for suffix of executables...
425 > checking whether we are cross compiling... no
426 > checking for suffix of object files... o
427 > checking whether we are using the GNU C compiler... yes
428 > checking whether i386-pc-solaris2.11-gcc accepts -g... yes
429 > checking for i386-pc-solaris2.11-gcc option to accept ISO C89... none needed
430 > checking whether i386-pc-solaris2.11-gcc understands -c and -o together...
431 > yes
432 > checking for style of include used by gmake... GNU
433 > checking dependency style of i386-pc-solaris2.11-gcc... none
434 > checking how to run the C preprocessor... i386-pc-solaris2.11-gcc -E
435 > checking for grep that handles long lines and -e...
436 > /export/home/johnh/gentoo/tmp/bin/grep
437 > checking for egrep... /export/home/johnh/gentoo/tmp/bin/grep -E
438 > checking for ANSI C header files... yes
439 > checking for sys/types.h... yes
440 > checking for sys/stat.h... yes
441 > checking for stdlib.h... yes
442 > checking for string.h... yes
443 > checking for memory.h... yes
444 > checking for strings.h... yes
445 > checking for inttypes.h... yes
446 > checking for stdint.h... yes
447 > checking for unistd.h... yes
448 > checking minix/config.h usability... no
449 > checking minix/config.h presence... no
450 > checking for minix/config.h... no
451 > checking whether it is safe to define __EXTENSIONS__... yes
452 > checking build system type... i386-pc-solaris2.11
453 > checking host system type... i386-pc-solaris2.11
454 > checking for the BeOS... no
455 > checking for Win32... no
456 > checking for the Android... no
457 > checking for Mac OS X Carbon support... no
458 > checking for Mac OS X Cocoa support... no
459 > checking whether to enable garbage collector friendliness... no
460 > checking whether to disable memory pools... no
461 > checking for i386-pc-solaris2.11-c++... i386-pc-solaris2.11-c++
462 > checking whether we are using the GNU C++ compiler... yes
463 > checking whether i386-pc-solaris2.11-c++ accepts -g... yes
464 > checking dependency style of i386-pc-solaris2.11-c++... none
465 > checking for special C compiler options needed for large files... no
466 > checking for _FILE_OFFSET_BITS value needed for large files... 64
467 > checking for gawk... (cached) gawk
468 > checking for perl5... no
469 > checking for perl... perl
470 > checking for indent... no
471 > checking for perl... /usr/bin/perl
472 > checking for a Python interpreter with version >= 2.5... python2.6
473 > checking for python2.6... /usr/bin/python2.6
474 > checking for python2.6 version... 2.6
475 > checking for python2.6 platform... sunos5
476 > checking for python2.6 script directory...
477 > ${prefix}/lib/python2.6/site-packages
478 > checking for python2.6 extension module directory...
479 > ${exec_prefix}/lib/python2.6/site-packages
480 > checking for libiconv_open in -liconv... yes
481 > checking how to print strings... print -r
482 > checking for a sed that does not truncate output...
483 > /export/home/johnh/gentoo/bin/sed
484 > checking for fgrep... /export/home/johnh/gentoo/tmp/bin/grep -F
485 > checking for ld used by i386-pc-solaris2.11-gcc...
486 > /export/home/johnh/gentoo/usr/i386-pc-solaris2.11/bin/ld
487 > checking if the linker
488 > (/export/home/johnh/gentoo/usr/i386-pc-solaris2.11/bin/ld) is GNU ld... yes
489 > checking for BSD- or MS-compatible name lister (nm)...
490 > /export/home/johnh/gentoo/bin/i386-pc-solaris2.11-nm -B
491 > checking the name lister
492 > (/export/home/johnh/gentoo/bin/i386-pc-solaris2.11-nm -B) interface... BSD
493 > nm
494 > checking whether ln -s works... yes
495 > checking the maximum length of command line arguments... 786240
496 > checking how to convert i386-pc-solaris2.11 file names to
497 > i386-pc-solaris2.11 format... func_convert_file_noop
498 > checking how to convert i386-pc-solaris2.11 file names to toolchain
499 > format... func_convert_file_noop
500 > checking for /export/home/johnh/gentoo/usr/i386-pc-solaris2.11/bin/ld option
501 > to reload object files... -r
502 > checking for i386-pc-solaris2.11-objdump... i386-pc-solaris2.11-objdump
503 > checking how to recognize dependent libraries... pass_all
504 > checking for i386-pc-solaris2.11-dlltool... no
505 > checking for dlltool... no
506 > checking how to associate runtime and link libraries... print -r --
507 > checking for i386-pc-solaris2.11-ar... i386-pc-solaris2.11-ar
508 > checking for archiver @FILE support... @
509 > checking for i386-pc-solaris2.11-strip... i386-pc-solaris2.11-strip
510 > checking for i386-pc-solaris2.11-ranlib... i386-pc-solaris2.11-ranlib
511 > checking command to parse
512 > /export/home/johnh/gentoo/bin/i386-pc-solaris2.11-nm -B output from
513 > i386-pc-solaris2.11-gcc object... ok
514 > checking for sysroot... no
515 > checking for a working dd... /export/home/johnh/gentoo/tmp/bin/dd
516 > checking how to truncate binary pipes...
517 > /export/home/johnh/gentoo/tmp/bin/dd bs=4096 count=1
518 > checking for i386-pc-solaris2.11-mt... no
519 > checking for mt... mt
520 > checking if mt is a manifest tool... no
521 > checking for dlfcn.h... yes
522 > checking for objdir... .libs
523 > checking if i386-pc-solaris2.11-gcc supports -fno-rtti -fno-exceptions... no
524 > checking for i386-pc-solaris2.11-gcc option to produce PIC... -fPIC -DPIC
525 > checking if i386-pc-solaris2.11-gcc PIC flag -fPIC -DPIC works... yes
526 > checking if i386-pc-solaris2.11-gcc static flag -static works... no
527 > checking if i386-pc-solaris2.11-gcc supports -c -o file.o... yes
528 > checking if i386-pc-solaris2.11-gcc supports -c -o file.o... (cached) yes
529 > checking whether the i386-pc-solaris2.11-gcc linker
530 > (/export/home/johnh/gentoo/usr/i386-pc-solaris2.11/bin/ld) supports shared
531 > libraries... yes
532 > checking dynamic linker characteristics... solaris2.11 ld.so
533 > checking how to hardcode library paths into programs... immediate
534 > checking whether stripping libraries is possible... yes
535 > checking if libtool supports shared libraries... yes
536 > checking whether to build shared libraries... no
537 > checking whether to build static libraries... yes
538 > checking how to run the C++ preprocessor... i386-pc-solaris2.11-c++ -E
539 > checking for ld used by i386-pc-solaris2.11-c++...
540 > /export/home/johnh/gentoo/usr/i386-pc-solaris2.11/bin/ld
541 > checking if the linker
542 > (/export/home/johnh/gentoo/usr/i386-pc-solaris2.11/bin/ld) is GNU ld... yes
543 > checking whether the i386-pc-solaris2.11-c++ linker
544 > (/export/home/johnh/gentoo/usr/i386-pc-solaris2.11/bin/ld) supports shared
545 > libraries... yes
546 > checking for i386-pc-solaris2.11-c++ option to produce PIC... -fPIC -DPIC
547 > checking if i386-pc-solaris2.11-c++ PIC flag -fPIC -DPIC works... yes
548 > checking if i386-pc-solaris2.11-c++ static flag -static works... no
549 > checking if i386-pc-solaris2.11-c++ supports -c -o file.o... yes
550 > checking if i386-pc-solaris2.11-c++ supports -c -o file.o... (cached) yes
551 > checking whether the i386-pc-solaris2.11-c++ linker
552 > (/export/home/johnh/gentoo/usr/i386-pc-solaris2.11/bin/ld) supports shared
553 > libraries... yes
554 > checking dynamic linker characteristics... solaris2.11 ld.so
555 > checking how to hardcode library paths into programs... immediate
556 > configure: creating ./config.lt
557 > config.lt: creating libtool
558 > checking for extra flags to get ANSI library prototypes... none needed
559 > checking for extra flags for POSIX compliance... none needed
560 > checking for vprintf... yes
561 > checking for _doprnt... yes
562 > checking for size_t... yes
563 > checking for working alloca.h... yes
564 > checking for alloca... yes
565 > checking for mmap... yes
566 > checking for posix_memalign... yes
567 > checking for memalign... yes
568 > checking for valloc... yes
569 > checking for fsync... yes
570 > checking for pipe2... no
571 > checking for issetugid... yes
572 > checking for atexit... yes
573 > checking for on_exit... no
574 > checking for timegm... no
575 > checking for gmtime_r... yes
576 > checking for __libc_enable_secure... no
577 > checking size of char... 1
578 > checking size of short... 2
579 > checking size of long... 4
580 > checking size of int... 4
581 > checking size of void *... 4
582 > checking size of long long... 8
583 > checking size of __int64... 0
584 > checking for sig_atomic_t... yes
585 > checking for format to printf and scanf a guint64... %llu
586 > checking for an ANSI C-conforming const... yes
587 > checking for growing stack pointer... yes
588 > checking for __inline... yes
589 > checking for __inline__... yes
590 > checking for inline... yes
591 > checking if inline functions in headers work... yes
592 > checking for working do while(0) macros... yes
593 > checking for ISO C99 varargs macros in C... yes
594 > checking for ISO C99 varargs macros in C++... yes
595 > checking for GNUC varargs macros... yes
596 > checking for GNUC visibility attribute... yes
597 > checking whether using Sun Studio C compiler... no
598 > checking whether byte ordering is bigendian... no
599 > checking dirent.h usability... yes
600 > checking dirent.h presence... yes
601 > checking for dirent.h... yes
602 > checking float.h usability... yes
603 > checking float.h presence... yes
604 > checking for float.h... yes
605 > checking limits.h usability... yes
606 > checking limits.h presence... yes
607 > checking for limits.h... yes
608 > checking pwd.h usability... yes
609 > checking pwd.h presence... yes
610 > checking for pwd.h... yes
611 > checking grp.h usability... yes
612 > checking grp.h presence... yes
613 > checking for grp.h... yes
614 > checking sys/param.h usability... yes
615 > checking sys/param.h presence... yes
616 > checking for sys/param.h... yes
617 > checking sys/poll.h usability... yes
618 > checking sys/poll.h presence... yes
619 > checking for sys/poll.h... yes
620 > checking sys/resource.h usability... yes
621 > checking sys/resource.h presence... yes
622 > checking for sys/resource.h... yes
623 > checking sys/time.h usability... yes
624 > checking sys/time.h presence... yes
625 > checking for sys/time.h... yes
626 > checking sys/times.h usability... yes
627 > checking sys/times.h presence... yes
628 > checking for sys/times.h... yes
629 > checking sys/wait.h usability... yes
630 > checking sys/wait.h presence... yes
631 > checking for sys/wait.h... yes
632 > checking for unistd.h... (cached) yes
633 > checking values.h usability... yes
634 > checking values.h presence... yes
635 > checking for values.h... yes
636 > checking sys/select.h usability... yes
637 > checking sys/select.h presence... yes
638 > checking for sys/select.h... yes
639 > checking for sys/types.h... (cached) yes
640 > checking for stdint.h... (cached) yes
641 > checking for inttypes.h... (cached) yes
642 > checking sched.h usability... yes
643 > checking sched.h presence... yes
644 > checking for sched.h... yes
645 > checking malloc.h usability... yes
646 > checking malloc.h presence... yes
647 > checking for malloc.h... yes
648 > checking sys/vfs.h usability... yes
649 > checking sys/vfs.h presence... yes
650 > checking for sys/vfs.h... yes
651 > checking sys/vmount.h usability... no
652 > checking sys/vmount.h presence... no
653 > checking for sys/vmount.h... no
654 > checking sys/statfs.h usability... yes
655 > checking sys/statfs.h presence... yes
656 > checking for sys/statfs.h... yes
657 > checking sys/statvfs.h usability... yes
658 > checking sys/statvfs.h presence... yes
659 > checking for sys/statvfs.h... yes
660 > checking sys/filio.h usability... yes
661 > checking sys/filio.h presence... yes
662 > checking for sys/filio.h... yes
663 > checking mntent.h usability... no
664 > checking mntent.h presence... no
665 > checking for mntent.h... no
666 > checking sys/mnttab.h usability... yes
667 > checking sys/mnttab.h presence... yes
668 > checking for sys/mnttab.h... yes
669 > checking sys/vfstab.h usability... yes
670 > checking sys/vfstab.h presence... yes
671 > checking for sys/vfstab.h... yes
672 > checking sys/mntctl.h usability... no
673 > checking sys/mntctl.h presence... no
674 > checking for sys/mntctl.h... no
675 > checking fstab.h usability... no
676 > checking fstab.h presence... no
677 > checking for fstab.h... no
678 > checking sys/uio.h usability... yes
679 > checking sys/uio.h presence... yes
680 > checking for sys/uio.h... yes
681 > checking sys/mkdev.h usability... yes
682 > checking sys/mkdev.h presence... yes
683 > checking for sys/mkdev.h... yes
684 > checking linux/magic.h usability... no
685 > checking linux/magic.h presence... no
686 > checking for linux/magic.h... no
687 > checking sys/prctl.h usability... no
688 > checking sys/prctl.h presence... no
689 > checking for sys/prctl.h... no
690 > checking for sys/mount.h... yes
691 > checking for sys/sysctl.h... no
692 > checking for sysctlbyname... no
693 > checking xlocale.h usability... no
694 > checking xlocale.h presence... no
695 > checking for xlocale.h... no
696 > checking for struct stat.st_mtimensec... no
697 > checking for struct stat.st_mtim.tv_nsec... yes
698 > checking for struct stat.st_atimensec... no
699 > checking for struct stat.st_atim.tv_nsec... yes
700 > checking for struct stat.st_ctimensec... no
701 > checking for struct stat.st_ctim.tv_nsec... yes
702 > checking for struct stat.st_blksize... yes
703 > checking for struct stat.st_blocks... yes
704 > checking for struct statfs.f_fstypename... no
705 > checking for struct statfs.f_bavail... no
706 > checking for struct statvfs.f_basetype... yes
707 > checking for struct statvfs.f_fstypename... no
708 > checking for struct tm.tm_gmtoff... no
709 > checking for struct tm.__tm_gmtoff... no
710 > checking for dirent.h that defines DIR... yes
711 > checking for library containing opendir... none required
712 > checking for struct dirent.d_type... no
713 > checking for nl_langinfo and CODESET... yes
714 > checking stddef.h usability... yes
715 > checking stddef.h presence... yes
716 > checking for stddef.h... yes
717 > checking for stdlib.h... (cached) yes
718 > checking for string.h... (cached) yes
719 > checking for setlocale... yes
720 > checking whether we are using the GNU C Library 2.1 or newer... no
721 > checking size of size_t... 4
722 > checking for the appropriate definition for size_t... unsigned int
723 > checking size of ssize_t... 4
724 > checking for the appropriate definition for ssize_t... int
725 > checking for lstat... yes
726 > checking for strerror... yes
727 > checking for strsignal... yes
728 > checking for memmove... yes
729 > checking for vsnprintf... yes
730 > checking for stpcpy... yes
731 > checking for strcasecmp... yes
732 > checking for strncasecmp... yes
733 > checking for poll... yes
734 > checking for getcwd... yes
735 > checking for vasprintf... yes
736 > checking for setenv... yes
737 > checking for unsetenv... yes
738 > checking for getc_unlocked... yes
739 > checking for readlink... yes
740 > checking for symlink... yes
741 > checking for fdwalk... yes
742 > checking for memmem... yes
743 > checking for chown... yes
744 > checking for lchmod... no
745 > checking for lchown... yes
746 > checking for fchmod... yes
747 > checking for fchown... yes
748 > checking for link... yes
749 > checking for utimes... yes
750 > checking for getgrgid... yes
751 > checking for getpwuid... yes
752 > checking for getresuid... no
753 > checking for getmntent_r... no
754 > checking for setmntent... no
755 > checking for endmntent... no
756 > checking for hasmntopt... yes
757 > checking for getfsstat... no
758 > checking for getvfsstat... no
759 > checking for fallocate... no
760 > checking for splice... no
761 > checking for prlimit... no
762 > checking for statvfs... yes
763 > checking for statfs... yes
764 > checking whether to use statfs or statvfs... statvfs
765 > checking crt_externs.h usability... no
766 > checking crt_externs.h presence... no
767 > checking for crt_externs.h... no
768 > checking for _NSGetEnviron... no
769 > checking for newlocale... no
770 > checking for uselocale... no
771 > checking for strtod_l... no
772 > checking for strtoll_l... no
773 > checking for strtoull_l... no
774 > checking for C99 vsnprintf... yes
775 > checking whether printf supports positional parameters... yes
776 > checking value of AF_INET... 2
777 > checking value of AF_INET6... 26
778 > checking value of AF_UNIX... 1
779 > checking value of MSG_PEEK... 2
780 > checking value of MSG_OOB... 1
781 > checking value of MSG_DONTROUTE... 4
782 > checking for getprotobyname_r... no
783 > checking for endservent... no
784 > checking for if_nametoindex... no
785 > checking for if_indextoname... no
786 > checking if arpa/nameser_compat.h is needed... no
787 > checking for res_query... configure: error: not found
788 > configure: error:
789 > /export/home/johnh/gentoo/var/tmp/portage/dev-util/pkgconfig-0.29.1/work/pkg
790 > -config-0.29.1/glib/configure failed for glib
791 >
792 > !!! Please attach the following file when seeking support:
793 > !!!
794 > /export/home/johnh/gentoo/var/tmp/portage/dev-util/pkgconfig-0.29.1/work/pkg
795 > -config-0.29.1-abi_x86_32.x86/config.log
796 > * ERROR: dev-util/pkgconfig-0.29.1::gentoo_prefix failed (configure phase):
797 > * econf failed
798 > *
799 > * Call stack:
800 > * ebuild.sh, line 115: Called src_configure
801 > * environment, line 3302: Called
802 > multilib-minimal_src_configure
803 > * environment, line 2466: Called multilib_foreach_abi
804 > 'multilib-minimal_abi_src_configure'
805 > * environment, line 2680: Called multibuild_foreach_variant
806 > '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_configure'
807 > * environment, line 2396: Called _multibuild_run
808 > '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_configure'
809 > * environment, line 2394: Called _multilib_multibuild_wrapper
810 > 'multilib-minimal_abi_src_configure'
811 > * environment, line 441: Called
812 > multilib-minimal_abi_src_configure
813 > * environment, line 2460: Called multilib_src_configure
814 > * environment, line 2913: Called econf
815 > '--docdir=/export/home/johnh/gentoo/usr/share/doc/pkgconfig-0.29.1/html'
816 > '--with-system-include-path=/export/home/johnh/gentoo/usr/include'
817 > '--with-system-library-path=/export/home/johnh/gentoo/usr/lib'
818 > '--with-internal-glib' '--with-libiconv=gnu'
819 > * phase-helpers.sh, line 665: Called __helpers_die 'econf failed'
820 > * isolated-functions.sh, line 117: Called die
821 > * The specific snippet of code:
822 > * die "$@"
823 > *
824 > * If you need support, post the output of `emerge --info
825 > '=dev-util/pkgconfig-0.29.1::gentoo_prefix'`,
826 > * the complete build log and the output of `emerge -pqv
827 > '=dev-util/pkgconfig-0.29.1::gentoo_prefix'`.
828 > * The complete build log is located at
829 > '/export/home/johnh/gentoo/var/tmp/portage/dev-util/pkgconfig-0.29.1/temp/bu
830 > ild.log'.
831 > * The ebuild environment file is located at
832 > '/export/home/johnh/gentoo/var/tmp/portage/dev-util/pkgconfig-0.29.1/temp/en
833 > vironment'.
834 > * Working directory:
835 > '/export/home/johnh/gentoo/var/tmp/portage/dev-util/pkgconfig-0.29.1/work/pk
836 > g-config-0.29.1-abi_x86_32.x86'
837 > * S:
838 > '/export/home/johnh/gentoo/var/tmp/portage/dev-util/pkgconfig-0.29.1/work/pk
839 > g-config-0.29.1'
840 >
841 > >>> Failed to emerge dev-util/pkgconfig-0.29.1, Log file:
842 >
843 > >>>
844 > '/export/home/johnh/gentoo/var/tmp/portage/dev-util/pkgconfig-0.29.1/temp/bu
845 > ild.log'
846 >
847 > * Messages for package dev-util/pkgconfig-0.29.1:
848 >
849 > * ERROR: dev-util/pkgconfig-0.29.1::gentoo_prefix failed (configure phase):
850 > * econf failed
851 > *
852 > * Call stack:
853 > * ebuild.sh, line 115: Called src_configure
854 > * environment, line 3302: Called
855 > multilib-minimal_src_configure
856 > * environment, line 2466: Called multilib_foreach_abi
857 > 'multilib-minimal_abi_src_configure'
858 > * environment, line 2680: Called multibuild_foreach_variant
859 > '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_configure'
860 > * environment, line 2396: Called _multibuild_run
861 > '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_configure'
862 > * environment, line 2394: Called _multilib_multibuild_wrapper
863 > 'multilib-minimal_abi_src_configure'
864 > * environment, line 441: Called
865 > multilib-minimal_abi_src_configure
866 > * environment, line 2460: Called multilib_src_configure
867 > * environment, line 2913: Called econf
868 > '--docdir=/export/home/johnh/gentoo/usr/share/doc/pkgconfig-0.29.1/html'
869 > '--with-system-include-path=/export/home/johnh/gentoo/usr/include'
870 > '--with-system-library-path=/export/home/johnh/gentoo/usr/lib'
871 > '--with-internal-glib' '--with-libiconv=gnu'
872 > * phase-helpers.sh, line 665: Called __helpers_die 'econf failed'
873 > * isolated-functions.sh, line 117: Called die
874 > * The specific snippet of code:
875 > * die "$@"
876 > *
877 > * If you need support, post the output of `emerge --info
878 > '=dev-util/pkgconfig-0.29.1::gentoo_prefix'`,
879 > * the complete build log and the output of `emerge -pqv
880 > '=dev-util/pkgconfig-0.29.1::gentoo_prefix'`.
881 > * The complete build log is located at
882 > '/export/home/johnh/gentoo/var/tmp/portage/dev-util/pkgconfig-0.29.1/temp/bu
883 > ild.log'.
884 > * The ebuild environment file is located at
885 > '/export/home/johnh/gentoo/var/tmp/portage/dev-util/pkgconfig-0.29.1/temp/en
886 > vironment'.
887 > * Working directory:
888 > '/export/home/johnh/gentoo/var/tmp/portage/dev-util/pkgconfig-0.29.1/work/pk
889 > g-config-0.29.1-abi_x86_32.x86'
890 > * S:
891 > '/export/home/johnh/gentoo/var/tmp/portage/dev-util/pkgconfig-0.29.1/work/pk
892 > g-config-0.29.1'
893 >
894 > Hmmmm, I was already afraid of this to happen. Running
895 > /export/home/johnh/gentoo/usr/bin/bash ./bootstrap-prefix.sh
896 > "/export/home/johnh/gentoo" stage3
897 > somewhere failed :( Details might be found in the build log:
898 >
899 > /export/home/johnh/gentoo/var/tmp/portage/dev-util/pkgconfig-0.29.1/temp/bui
900 > ld.log
901 > I have no clue, really. Please find friendly folks in #gentoo-prefix on
902 > irc.gentoo.org, gentoo-alt@l.g.o <mailto:gentoo-alt@l.g.o> mailing list, or file a bug
903 > at bugs.gentoo.org under Gentoo/Alt, Prefix Support. This is most
904 > inconvenient, and it crushed my ego. Sorry, I give up.
905 > Should you want to give it a try, there is
906 > /export/home/johnh/gentoo/stage3.log
907 >
908 >
909 > Digging further, I can see the configure trying to find res_query in
910 > /export/home/johnh/gentoo/var/tmp/portage/dev-util/pkgconfig-0.29.1/work/pkg
911 > -config-0.29.1-abi_x86_32.x86/glib/config.log
912 >
913 > The relevant section is
914 >
915 > configure:23145: checking for res_query
916 > configure:23164: i386-pc-solaris2.11-gcc -o conftest -O2 -pipe
917 > -I/export/home/johnh/gentoo/usr/include -DENABLE_NLS
918 > -L/export/home/johnh/gentoo/usr/lib -L/export/home/johnh/gentoo/usr/lib
919 > -lintl conftest.c >&5
920 > /export/home/johnh/gentoo/var/tmp/portage/dev-util/pkgconfig-0.29.1/temp/ccg
921 > naGcB.o: In function `main':
922 > conftest.c:(.text.startup+0x1f): undefined reference to `res_query'
923 > collect2: error: ld returned 1 exit status
924 >
925 > configure:23187: i386-pc-solaris2.11-gcc -o conftest -O2 -pipe
926 > -I/export/home/johnh/gentoo/usr/include -DENABLE_NLS
927 > -L/export/home/johnh/gentoo/usr/lib -L/export/home/johnh/gentoo/usr/lib
928 > -lintl conftest.c -lresolv >&5
929 > /lib/libelf.so.1: undefined reference to `inflate@SUNW_1.1'
930 > /lib/libelf.so.1: undefined reference to `deflateEnd@SUNW_1.1'
931 > /lib/libelf.so.1: undefined reference to `inflateInit_@SUNW_1.1'
932 > /lib/libelf.so.1: undefined reference to `deflateInit_@SUNW_1.1'
933 > /lib/libelf.so.1: undefined reference to `deflateReset@SUNW_1.1'
934 > /lib/libelf.so.1: undefined reference to `inflateReset@SUNW_1.1'
935 > /lib/libelf.so.1: undefined reference to `inflateEnd@SUNW_1.1'
936 > /lib/libelf.so.1: undefined reference to `deflate@SUNW_1.1'
937 > collect2: error: ld returned 1 exit status
938 >
939 > So Im not a programmer, and I know little about debugging build issues, but
940 > I think those undefined references refer to zlib. Zlib is installed at
941 >
942 > johnh@sprawl:~$ find . -name "libz.so*"
943 > ./gentoo/var/tmp/zlib-1.2.8/zlib-1.2.8/libz.so
944 > ./gentoo/var/tmp/zlib-1.2.8/zlib-1.2.8/libz.so.1
945 > ./gentoo/var/tmp/zlib-1.2.8/zlib-1.2.8/libz.so.1.2.8
946 > ./gentoo/tmp/usr/lib/libz.so.1
947 > ./gentoo/tmp/usr/lib/libz.so
948 > ./gentoo/tmp/usr/lib/libz.so.1.2.8
949 > ./gentoo/usr/lib/libz.so
950 > ./gentoo/usr/lib/libz.so.1
951 > ./gentoo/usr/lib/libz.so.1.2.11
952 >
953 > And also the system zlib is in /lib/libz.so.1. I was considering the
954 > hardcoded symbol versions it was reporting in /lib/libelf.so.1. GNU LD is
955 > never going to generate versioned symbols, so they will never link. If I
956 > fool around and tell ld to use /lib/libz.so.1 it does actually link.
957 >
958 > I'm properly stuck. I've been trying to get passed this point for a week
959 > now. I hope that someone out there has seen this failure before and can help
960 >
961 > Regards
962 >
963 > John Helliwell
964 >
965 >
966 >
967
968 --
969 Fabian Groffen
970 Gentoo on a different level

Replies

Subject Author
Re: [gentoo-alt] Prefix fails to bootstrap on Solaris 11 Fabian Groffen <grobian@g.o>
Re: [gentoo-alt] Prefix fails to bootstrap on Solaris 11 Konstantin Tokarev <annulen@××××××.ru>