cURL / Mailing Lists / curl-library / Single Mail

curl-library

lib577.c fails to link with --enable-hidden-symbols

From: Daniel Johnson <daniel.johnson31_at_gmail.com>
Date: Fri, 14 May 2010 15:33:43 -0400

lib577.c fails to link with --enable-hidden-symbols because Curl_fnmatch isn't externally visible:

libtool: link: gcc -m32 -Wshorten-64-to-32 -g -O0 -pedantic -Wall -W -Wpointer-arith -Wwrite-strings -Wunused -Wshadow -Winline -Wnested-externs -Wmissing-declarations -Wmissing-prototypes -Wno-long-long -Wfloat-equal -Wno-multichar -Wsign-compare -Wundef -Wno-format-nonliteral -Wendif-labels -Wstrict-prototypes -Wdeclaration-after-statement -Wcast-align -Wno-system-headers -fvisibility=hidden -Wl,-dead_strip_dylibs -o .libs/lib577 lib577.o first.o -L/build-86147/ares -L/sw32/lib ../../lib/.libs/libcurl.dylib /build-86147/ares/.libs/libcares.dylib /sw32/lib/libidn.dylib /sw32/lib/libssh2.dylib -lldap -lgssapi_krb5 -lresolv -lssl -lcrypto -lz
Undefined symbols:
  "_Curl_fnmatch", referenced from:
      _test in lib577.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make[2]: *** [lib577] Error 1

Daniel

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2010-05-14