cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Building curl with yassl

From: Sid Chang <sid_at_adth.com>
Date: Wed, 17 Jan 2007 21:41:02 -0500

I was building with cyassl. Now I'm trying yassl (1.0.6).
I followed the instruction in the README as follows:
................
   To build for libcurl the library needs to be built without C++ globals since
   the linker will be called in a C context, also libcurl configure will expect
   OpenSSL library names so some symbolic links are created.

     ./configure --enable-pure-c
     make
     make openssl-links
     [make install]

     (then go to your libcurl home and tell libcurl about yaSSL build dir)
     ./configure --with-ssl=/yaSSL-BuildDir LDFLAGS=-lm
     make

So, I built yassl with '--prefix=/usr/local/yassl'; there are only two
sub-dirs:
/bin and /lib, no /include.
When I start to make curl, following errors showed up:
................
configure: Configured to build curl/libcurl:

   curl version: 7.15.5
   Host setup: i386-redhat-linux-gnu
   Install prefix: /usr/local/curl
   Compiler: i386-redhat-linux-gcc
   SSL support: enabled (OpenSSL)
   zlib support: enabled
   krb4 support: no (--with-krb4*)
   GSSAPI support: no (--with-gssapi)
   SPNEGO support: no (--with-spnego)
   c-ares support: no (--enable-ares)
   ipv6 support: no (--enable-ipv6)
   IDN support: no (--with-libidn)
   Build libcurl: Shared=yes, Static=yes
   Built-in manual: enabled
   Verbose errors: enabled (--disable-verbose)
   SSPI support: no (--enable-sspi)
   ca cert path: ${prefix}/share/curl/curl-ca-bundle.crt

bash-2.05b# make
Making all in lib
make[1]: Entering directory `/root/tools/curl/lib'
echo "/* This file is generated automatically */" > ../lib/ca-bundle.h
echo '#define CURL_CA_BUNDLE
"/usr/local/curl/share/curl/curl-ca-bundle.crt"' >> ../lib/ca-bundle.h
make all-am
make[2]: Entering directory `/root/tools/curl/lib'
if /bin/sh ../libtool --tag=CC --mode=compile i386-redhat-linux-gcc
-DHAVE_CONFIG_H -I../include -I../lib
-I../lib -I/usr/local/yassl/include/openssl -I/usr/local/yassl/include -g
-O2 -MT file.lo -MD -MP -MF ".deps/file.Tpo" -c -o file.lo file.c; \
then mv -f ".deps/file.Tpo" ".deps/file.Plo"; else rm -f ".deps/file.Tpo"; exit
1; fi
mkdir .libs
  i386-redhat-linux-gcc -DHAVE_CONFIG_H -I../include -I../lib -I../lib
-I/usr/local/yassl/include/openssl -I/usr/local/yassl/include -g -O2 -MT
file.lo -MD -MP -MF .deps/file.Tpo -c file.c -fPIC -DPIC -o .libs/file.o
In file included from /usr/include/openssl/ssl.h:179,
                  from urldata.h:58,
                  from file.c:77:
/usr/include/openssl/kssl.h:72:18: krb5.h: No such file or directory
In file included from /usr/include/openssl/ssl.h:179,
                  from urldata.h:58,
                  from file.c:77:
/usr/include/openssl/kssl.h:132: parse error before "krb5_enctype"
/usr/include/openssl/kssl.h:134: parse error before "FAR"
/usr/include/openssl/kssl.h:135: parse error before '}' token
/usr/include/openssl/kssl.h:147: parse error before "kssl_ctx_setstring"
/usr/include/openssl/kssl.h:147: parse error before '*' token
/usr/include/openssl/kssl.h:148: parse error before '*' token
/usr/include/openssl/kssl.h:149: parse error before '*' token
/usr/include/openssl/kssl.h:149: parse error before '*' token
/usr/include/openssl/kssl.h:150: parse error before '*' token
/usr/include/openssl/kssl.h:151: parse error before "kssl_ctx_setprinc"
/usr/include/openssl/kssl.h:151: parse error before '*' token
/usr/include/openssl/kssl.h:153: parse error before "kssl_cget_tkt"
/usr/include/openssl/kssl.h:153: parse error before '*' token
/usr/include/openssl/kssl.h:155: parse error before "kssl_sget_tkt"
/usr/include/openssl/kssl.h:155: parse error before '*' token
/usr/include/openssl/kssl.h:157: parse error before "kssl_ctx_setkey"
/usr/include/openssl/kssl.h:157: parse error before '*' token
/usr/include/openssl/kssl.h:159: parse error before "context"
/usr/include/openssl/kssl.h:160: parse error before "kssl_build_principal_2"
/usr/include/openssl/kssl.h:160: parse error before "context"
/usr/include/openssl/kssl.h:163: parse error before "kssl_validate_times"
/usr/include/openssl/kssl.h:163: parse error before "atime"
/usr/include/openssl/kssl.h:165: parse error before "kssl_check_authent"
/usr/include/openssl/kssl.h:165: parse error before '*' token
/usr/include/openssl/kssl.h:167: parse error before "enctype"
In file included from urldata.h:58,
                  from file.c:77:
/usr/include/openssl/ssl.h:909: parse error before "KSSL_CTX"
/usr/include/openssl/ssl.h:931: parse error before '}' token
make[2]: *** [file.lo] Error 1
make[2]: Leaving directory `/root/tools/curl/lib'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/root/tools/curl/lib'
make: *** [all-recursive] Error 1
bash-2.05b#

Looks as if it is looking for header file in the wrong place.
Any clue what's causing the errors?
Received on 2007-01-18