pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/38464: Bootstrap failure on Solaris



>Number:         38464
>Category:       pkg
>Synopsis:       Bootstrap failure on Solaris
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Apr 19 22:25:01 +0000 2008
>Originator:     Min Sik Kim
>Release:        pkgsrc-current
>Organization:
>Environment:
SunOS 5.11 snv_67 i86pc i386 i86pc
>Description:
Bootstrapping fails in building pkg_admin, because it links against libfetch 
without "-lsocket -lnsl".  The error message is as follows:

gcc -L/opt/pkgsrc/bootstrap/work/wrk/pkgtools/pkg_install/work/libarchive/.libs 
-L/opt/pkgsrc/bootstrap/work/wrk/pkgtools/pkg_install/work/libfetch 
-L/opt/pkgsrc/bootstrap/work/wrk/pkgtools/pkg_install/work/libnbcompat 
-Wl,-R/opt/local/lib -L../lib -o pkg_admin audit.o check.o config.o main.o 
-linstall -lbz2 -lfetch -lz -ltermcap -lnbcompat
Undefined                       first referenced
 symbol                             in file
bind                                
/opt/pkgsrc/bootstrap/work/wrk/pkgtools/pkg_install/work/libfetch/libfetch.a(ftp.o)
getservbyname                       
/opt/pkgsrc/bootstrap/work/wrk/pkgtools/pkg_install/work/libfetch/libfetch.a(common.o)
getsockname                         
/opt/pkgsrc/bootstrap/work/wrk/pkgtools/pkg_install/work/libfetch/libfetch.a(ftp.o)
accept                              
/opt/pkgsrc/bootstrap/work/wrk/pkgtools/pkg_install/work/libfetch/libfetch.a(ftp.o)
listen                              
/opt/pkgsrc/bootstrap/work/wrk/pkgtools/pkg_install/work/libfetch/libfetch.a(ftp.o)
socket                              
/opt/pkgsrc/bootstrap/work/wrk/pkgtools/pkg_install/work/libfetch/libfetch.a(ftp.o)
getnameinfo                         
/opt/pkgsrc/bootstrap/work/wrk/pkgtools/pkg_install/work/libfetch/libfetch.a(ftp.o)
setsockopt                          
/opt/pkgsrc/bootstrap/work/wrk/pkgtools/pkg_install/work/libfetch/libfetch.a(http.o)
connect                             
/opt/pkgsrc/bootstrap/work/wrk/pkgtools/pkg_install/work/libfetch/libfetch.a(ftp.o)
getaddrinfo                         
/opt/pkgsrc/bootstrap/work/wrk/pkgtools/pkg_install/work/libfetch/libfetch.a(common.o)
getpeername                         
/opt/pkgsrc/bootstrap/work/wrk/pkgtools/pkg_install/work/libfetch/libfetch.a(ftp.o)
freeaddrinfo                        
/opt/pkgsrc/bootstrap/work/wrk/pkgtools/pkg_install/work/libfetch/libfetch.a(common.o)
ld: fatal: Symbol referencing errors. No output written to pkg_admin
collect2: ld returned 1 exit status
*** Error code 1


>How-To-Repeat:
Bootstrap on Solaris.
>Fix:
A workaround is to apply the link options globally.

--- Makefile    Sat Apr 19 21:02:07 2008
+++ Makefile.new        Sat Apr 19 20:43:38 2008
@@ -121,6 +121,7 @@
 .endif
 CPPFLAGS+=     -I${WRKDIR}/libfetch
 LDFLAGS+=      -L${WRKDIR}/libfetch
+LIBS.SunOS+=   -lnsl -lsocket
 
 do-extract:
        @${CP} -R ${FILESDIR} ${WRKSRC}




Home | Main Index | Thread Index | Old Index