Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 490408 - net-misc/wget-1.13.4 fails during compilation because of undefined reference
Summary: net-misc/wget-1.13.4 fails during compilation because of undefined reference
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All Solaris
: Normal major (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-11-04 17:17 UTC by tao
Modified: 2014-02-11 20:28 UTC (History)
0 users

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


Attachments
build.log (build.log,98.04 KB, application/octet-stream)
2013-11-04 17:19 UTC, tao
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tao 2013-11-04 17:17:50 UTC
bootstrap-prefix.sh tries to build net-misc/wget-1.13.4 during bootstrap on (SunOS solaris 5.11 11.2 i86pc i386 i86pc Solaris). This attempt fails with:
connect.o: In function `connect_with_timeout_callback':
connect.c:(.text+0x2fa): undefined reference to `__xnet_connect'
connect.o: In function `connect_to_ip':
connect.c:(.text+0x477): undefined reference to `__xnet_socket'
connect.c:(.text+0x4b2): undefined reference to `setsockopt'
connect.c:(.text+0x544): undefined reference to `setsockopt'
connect.c:(.text+0x588): undefined reference to `__xnet_bind'
connect.o: In function `bind_local':
connect.c:(.text+0x7c0): undefined reference to `__xnet_socket'
connect.c:(.text+0x7f3): undefined reference to `setsockopt'
connect.c:(.text+0x843): undefined reference to `__xnet_bind'
connect.c:(.text+0x899): undefined reference to `getsockname'
connect.c:(.text+0x8da): undefined reference to `listen'
connect.o: In function `accept_connection':
connect.c:(.text+0x995): undefined reference to `accept'
connect.o: In function `socket_ip_address':
connect.c:(.text+0x9fc): undefined reference to `getsockname'
connect.c:(.text+0xa1f): undefined reference to `getpeername'
connect.o: In function `sock_peek':
connect.c:(.text+0xdfc): undefined reference to `recv'
host.o: In function `lookup_host':
host.c:(.text+0xa11): undefined reference to `gai_strerror'
../lib/libgnu.a(getaddrinfo.o): In function `getaddrinfo':
getaddrinfo.c:(.text+0x111): undefined reference to `getservbyname'
getaddrinfo.c:(.text+0x19e): undefined reference to `gethostbyname'
collect2: ld returned 1 exit status

Reproducible: Always

Steps to Reproduce:
./bootstrap-prefix.sh
Comment 1 tao 2013-11-04 17:19:20 UTC
Created attachment 362580 [details]
build.log
Comment 2 Fabian Groffen gentoo-dev 2013-11-10 10:45:15 UTC
I updated the bootstrap snapshot, wget-1.14 should be taken now.  Could you please try if that helps?
Comment 3 tao 2013-11-12 14:43:31 UTC
I tried bootstrapping with latest script. wget-1.14 is not pulled in because bootstrap-prefix.sh explicitly demands lower version to be installed.

line 858
 bootstrap_gnu wget 1.13.4

line 1226
    local pkgs=(
        "<net-misc/wget-1.13.4-r1" # until we fix #393277
        virtual/os-headers
    )
    emerge_pkgs "" "${pkgs[@]}" || return 1

After replacing "<net-misc/wget-1.13.4-r1" with "net-misc/wget" whole bunch of new packages is about to be installed, but this attempt ends badly because configure of dev-util/pkgconfig-0.28 fails with

...
checking for arpa/nameser_compat.h... yes
checking for res_query... configure: error: not found
configure: error: ./configure failed for glib


While I can get it to compile with changing compiler flags like this
CFLAGS="-lresolv -lsocket -lnsl -L/lib -lz
I do not know whether this is correct approach. Nevertheless, even with modified CFLAGS script fails later trying to build libxml2.
Comment 4 Fabian Groffen gentoo-dev 2014-02-11 20:28:36 UTC
This block is gone now, and I could bootstrap on OpenIndiana, so hopefully this is also fixed for you.