curl-users
Bug when using --disable-http
Date: Wed, 14 Jul 2004 15:16:50 +0200
hello, world\n
I wanted to compile curl 7.11.0 on FreeBSD 5.2.1-RELEASE without http
(in order to get a small lib suitable for an embedded system that would
need FTP only). To this end I configured as follows:
$ CFLAGS=-O2 ./configure --disable-http
[...]
However, the make fails due to undefined references to what looks like
HTTP related functions:
$ make
[...]
/bin/sh ../libtool --mode=link gcc -O2 -o curl main.o hugehelp.o urlglob.o writeout.o writeenv.o getpass.o homedir.o ../lib/libcurl.la -lz -lssl -lcrypto
mkdir .libs
gcc -O2 -o .libs/curl main.o hugehelp.o urlglob.o writeout.o writeenv.o getpass.o homedir.o ../lib/.libs/libcurl.so -lz -lssl -lcrypto -Wl,--rpath -Wl,/usr/local/lib
main.o: In function `formparse':
main.o(.text+0x52f): undefined reference to `curl_formadd'
main.o(.text+0x595): undefined reference to `curl_formadd'
main.o(.text+0x7e9): undefined reference to `curl_formadd'
main.o: In function `free_config_fields':
main.o(.text+0x29c9): undefined reference to `curl_formfree'
../lib/.libs/libcurl.so: undefined reference to `Curl_httpchunk_init'
../lib/.libs/libcurl.so: undefined reference to `Curl_http_auth'
../lib/.libs/libcurl.so: undefined reference to `Curl_httpchunk_read'
../lib/.libs/libcurl.so: undefined reference to `Curl_http_auth_act'
../lib/.libs/libcurl.so: undefined reference to `Curl_ConnectHTTPProxyTunnel'
../lib/.libs/libcurl.so: undefined reference to `Curl_cookie_init'
../lib/.libs/libcurl.so: undefined reference to `Curl_compareheader'
../lib/.libs/libcurl.so: undefined reference to `Curl_cookie_add'
../lib/.libs/libcurl.so: undefined reference to `Curl_FormBoundary'
../lib/.libs/libcurl.so: undefined reference to `Curl_digest_cleanup'
../lib/.libs/libcurl.so: undefined reference to `Curl_cookie_cleanup'
*** Error code 1
Stop in /usr/local/usr/ports/ftp/curl/work/curl-7.11.0/src.
*** Error code 1
Stop in /usr/local/usr/ports/ftp/curl/work/curl-7.11.0/src.
*** Error code 1
Stop in /usr/local/usr/ports/ftp/curl/work/curl-7.11.0.
Can anyone reproduce this effect?
Regards,
Jens
-- Jens Schweikhardt http://www.schweikhardt.net/ SIGSIG -- signature too long (core dumped)Received on 2004-07-14