curl-library
Compile error: libtool: link: require no space between `-L' and `-lssl3' after adding nss support
Date: Mon, 29 Nov 2010 11:18:24 +0800
Hi All,
I'm using curl-7.20.0, and after adding nss support with "--with-nss",
compile lib failed.
Here is the compile error:
libtool: link: require no space between `-L' and `-lssl3'
Makefile:498: *** [libcurl.la] Error 1
Take a loot at the LIBCURL_LIBS flags in lib/Makefile, it is:
LIBCURL_LIBS = -lidn -lrt -lz -Wl,-rpath-link, -L -lssl3 -lsmime3 -lnss3
-lnssutil3
I find there is am empty space between "-rpath-link," and "-L".
Here is what I do to resolve the problem:
1. After I remove the empty space, compile can be successful.
2. I know where the "-Wl,-rpath-link, -L -lssl3 -lsmime3 -lnss3
-lnssutil3" added to LIBCURL_LIBS,
in configure.ac, I find this:
addlib=`nss-config --libs`
LIBS="$LIBS $addlib"
3. when run 'nss-config --libs' under terminal, the output is:
-Wl,-rpath-link,/usr/lib64 -L/usr/lib64 -lssl3 -lsmime3 -lnss3
-lnssutil3
4. Below the above analysis, I think "/usr/lib64" may be stripped from
'nss-config --libs' output,
and it maybe in curl.spec file, however, After I remove
"/usr/lib64" from "sed -i -e 's,-L/usr/lib ,,g;s,-L/usr/lib64
,,g;s,-L/usr/lib$,,g;s,-L/usr/lib64$,,g' Makefile libcurl.pc",
it still can't works.
So I want to ask for help to resolve this problem in this list.
Thanks in advance!
Thanks,
Xufeng Zhang
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2010-11-29