Subject: pkg/18780: www/curl fails to link on Solaris (Undefined symbol: main)
To: None <gnats-bugs@gnats.netbsd.org>
From: Lubomir Sedlacik <salo@Xtrmntr.org>
List: netbsd-bugs
Date: 10/23/2002 03:01:29
>Number:         18780
>Category:       pkg
>Synopsis:       www/curl fails to link on Solaris (Undefined symbol: main)
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Oct 22 18:02:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Lubomir Sedlacik
>Release:        SunOS 5.9
>Organization:
>Environment:
>Description:

www/curl fails to link on Solaris with the following error:

/bin/ksh ../libtool --mode=link gcc  -O2 -pipe -mcpu=supersparc -I/usr/pkg/include   -Wl,-R/usr/pkg/lib -L/usr/pkg/lib -L/usr/pkg/lib -o libcurl.la -rpath /usr/pkg/lib -no-undefined -version-info 2:2:0 file.lo timeval.lo base64.lo hostip.lo  progress.lo formdata.lo cookie.lo http.lo sendf.lo ftp.lo  url.lo dict.lo if2ip.lo speedcheck.lo getdate.lo ldap.lo  ssluse.lo version.lo getenv.lo escape.lo mprintf.lo telnet.lo  getpass.lo netrc.lo getinfo.lo transfer.lo strequal.lo easy.lo  security.lo krb4.lo memdebug.lo http_chunks.lo strtok.lo  connect.lo llist.lo hash.lo multi.lo content_encoding.lo  -lz -lssl -lcrypto -ldl -lsocket -lnsl  -lz
ld -G -z defs -h libcurl.so.2 -o .libs/libcurl.so.2.2  .libs/file.o .libs/timeval.o .libs/base64.o .libs/hostip.o .libs/progress.o .libs/formdata.o .libs/cookie.o .libs/http.o .libs/sendf.o .libs/ftp.o .libs/url.o .libs/dict.o .libs/if2ip.o .libs/speedcheck.o .libs/getdate.o .libs/ldap.o .libs/ssluse.o .libs/version.o .libs/getenv.o .libs/escape.o .libs/mprintf.o .libs/telnet.o .libs/getpass.o .libs/netrc.o .libs/getinfo.o .libs/transfer.o .libs/strequal.o .libs/easy.o .libs/security.o .libs/krb4.o .libs/memdebug.o .libs/http_chunks.o .libs/strtok.o .libs/connect.o .libs/llist.o .libs/hash.o .libs/multi.o .libs/content_encoding.o  -R/usr/pkg/lib -R/usr/pkg/lib  -L/usr/pkgsrc/www/curl/work.sparc/.buildlink/lib -lssl -lcrypto -ldl -lsocket -lnsl /usr/pkg/lib/libz.so -lc  -R/usr/pkg/lib
Undefined                       first referenced
 symbol                             in file
main                                /usr/pkgsrc/www/curl/work.sparc/.buildlink/lib/libssl.so
ld: fatal: Symbol referencing errors. No output written to .libs/libcurl.so.2.2
*** Error code 1

Stop.
bmake: stopped in /usr/pkgsrc/www/curl/work.sparc/curl-7.10.1/lib
*** Error code 1

Stop.

i have the latest www/curl package:
# $NetBSD: Makefile,v 1.22 2002/10/20 20:10:06 seb Exp $

>How-To-Repeat:

try to build www/curl on Solaris machine

>Fix:

none provided.  i am probably overlooking something obvious here..
>Release-Note:
>Audit-Trail:
>Unformatted: