[OpenVPN home] [Date Prev] [Date Index] [Date Next]
[OpenVPN mailing lists] [Thread Prev] [Thread Index] [Thread Next]
Google
 
Web openvpn.net

[Openvpn-users] Re: [ openvpn-Bugs-543327 ] Compilation Error


  • Subject: [Openvpn-users] Re: [ openvpn-Bugs-543327 ] Compilation Error
  • From: "John Baker" <johnb@xxxxxxxxxxxxxxx>
  • Date: Sun, 14 Apr 2002 19:39:26 -0500

libcrypto.a is in /usr/lib with a file date of Apr 14

headers are in /usr/include/openssl - all with same date as libcrypto.a

I tried
./configure  --with-ssl-headers=/usr/include/openssl --with-ssl-lib=/usr/lib

Got the same results.  Sorry about the trouble.

John Baker



----- Original Message -----
From: <noreply@xxxxxxxxxxxxxxx>
To: <noreply@xxxxxxxxxxxxxxx>
Sent: Sunday, April 14, 2002 6:47 PM
Subject: [ openvpn-Bugs-543327 ] Compilation Error


> Bugs item #543327, was opened at 2002-04-13 00:03
> You can respond by visiting:
>
http://sourceforge.net/tracker/?func=detail&atid=454719&aid=543327&group_id=
48978
>
> Category: None
> Group: None
> Status: Open
> Resolution: None
> Priority: 5
> Submitted By: Nobody/Anonymous (nobody)
> Assigned to: Nobody/Anonymous (nobody)
> Summary: Compilation Error
>
> Initial Comment:
> Hello
> While compiling, I got this:
>
> crypto.o: In function `init_cipher':
> /usr/src/openvpn-1.1.0/crypto.c:393: undefined
> reference to `EVP_CIPHER_CTX_set_key_length'
> collect2: ld returned 1 exit status
> make: *** [openvpn] Error 1
>
> any ideas?
>
> Thanks
>
>
> ----------------------------------------------------------------------
>
> >Comment By: James Yonan (jimyonan)
> Date: 2002-04-14 17:47
>
> Message:
> Logged In: YES
> user_id=203197
>
> Just to clarify my last message, I think you installed 0.9.6 but you did
not
> overwrite an earlier OpenSSL lib, therefore the OpenVPN build is still
> referencing the old OpenSSL lib because it is just looking in the default
> library location.  If you use the --with-ssl-headers and --with-ssl-lib
options
> to ./configure to direct the OpenVPN build to the right place for 0.9.6,
it
> should work.
>
> BTW, it would be easier to communicate with you if you
> just use the mailing list openvpn-
> users@xxxxxxxxxxxxxxxxxxxxx
>
> This sourceforge interface is a bit
> clumsy, notice how it adds all the extraneous line breaks to
> messages.
>
> James
>
>
> ----------------------------------------------------------------------
>
> Comment By: James Yonan (jimyonan)
> Date: 2002-04-14 17:15
>
> Message:
> Logged In: YES
> user_id=203197
>
> Well EVP_CIPHER_CTX_set_key_length is definitely in OpenSSL 0.9.6c,
> though you would not find it in in 0.9.5 or earlier.  I think maybe the
> OpenVPN build is still referencing the earlier library, since that would
> explain why only EVP_CIPHER_CTX_set_key_length is undefined and not a
> lot of other OpenSSL symbols.
>
> Do this:
>
> Find the directory that
> you believe contains libcrypto.a (0.9.6c).
>
> Do: nm libcrypto.a |
> grep EVP_CIPHER_CTX_set_key_length
>
> You should get something like
> this:
>
> 00000740 T EVP_CIPHER_CTX_set_key_length
>          U
> EVP_CIPHER_CTX_set_key_length
>          U
> EVP_CIPHER_CTX_set_key_length
>          U
> EVP_CIPHER_CTX_set_key_length
>
> The first line with the "T" shows
> the symbol as being defined.
>
> Now find the directory that you believe
> contains the OpenSSL include files:
>
> [root@boulder openvpn]# grep -r
> EVP_CIPHER_CTX_set_key_length [your-ssl-include-
> dir]
> /usr/include/openssl/evp.h:int
> EVP_CIPHER_CTX_set_key_length(EVP_CIPHER_CTX *x,
> int
> keylen);
>
> You should get a declaration of
> EVP_CIPHER_CTX_set_key_length in evp.h
>
> Now do "./configure --with-
> ssl-headers=DIR and --with-ssl-lib=DIR" where DIR is the confirmed
location
> of the ssl lib and header files.
>
> See if that works.
>
> James
>
>
> ----------------------------------------------------------------------
>
> Comment By: Nobody/Anonymous (nobody)
> Date: 2002-04-14 16:13
>
> Message:
> Logged In: NO
>
> I had an old version of openssl, so I upgraded:
>
> OpenSSL 0.9.6c 21 dec 2001
>
> This didn't help.  Here's the output from configure:
>
> ./configure
> loading cache ./config.cache
> checking host system type... i586-pc-linux-gnu
> checking host system type... i586-pc-linux-gnu
> checking target system type... i586-pc-linux-gnu
> checking build system type... i586-pc-linux-gnu
> checking for a BSD compatible install...
> (cached) /usr/bin/install -c
> checking whether build environment is sane... yes
> checking whether make sets ${MAKE}... (cached) yes
> checking for working aclocal... found
> checking for working autoconf... found
> checking for working automake... found
> checking for working autoheader... found
> checking for working makeinfo... found
> checking for gcc... (cached) gcc
> checking whether the C compiler (gcc  ) works... yes
> checking whether the C compiler (gcc  ) is a cross-
> compiler... no
> checking whether we are using GNU C... (cached) yes
> checking whether gcc accepts -g... (cached) yes
> checking for a BSD compatible install... /usr/bin/install -c
> checking how to run the C preprocessor... (cached) gcc -E
> checking for ANSI C header files... (cached) yes
> checking for sys/wait.h that is POSIX.1 compatible...
> (cached) yes
> checking for fcntl.h... (cached) yes
> checking for sys/ioctl.h... (cached) yes
> checking for sys/time.h... (cached) yes
> checking for syslog.h... (cached) yes
> checking for unistd.h... (cached) yes
> checking for working const... (cached) yes
> checking for inline... (cached) inline
> checking for size_t... (cached) yes
> checking whether time.h and sys/time.h may both be
> included... (cached) yes
> checking whether gcc needs -traditional... (cached) no
> checking for 8-bit clean memcmp... (cached) yes
> checking for vprintf... (cached) yes
> checking return type of signal handlers... (cached) void
> checking for gettimeofday... (cached) yes
> checking for select... (cached) yes
> checking for socket... (cached) yes
> checking for strerror... (cached) yes
> checking for sys/socket.h... (cached) yes
> checking for netinet/in.h... (cached) yes
> checking for arpa/inet.h... (cached) yes
> checking for in_addr_t... yes
> checking for TUN/TAP driver version ...
> checking for linux/if_tun.h... (cached) no
> if_tun.h not found -- assuming old TUN/TAP driver.
> checking for OpenSSL Crypto Library and Header files ...
> checking for openssl/evp.h... (cached) yes
> checking for EVP_CIPHER_CTX_init in -lcrypto... (cached) yes
> checking that OpenSSL Library is at least version 0.9.6 ...
> checking for openssl/ssl.h... (cached) yes
> checking for SSL_CTX_new in -lssl... (cached) yes
> checking for LZO Library and Header files ...
> checking for lzo1x.h... (cached) yes
> checking for lzo1x_1_15_compress in -llzo... (cached) yes
> creating ./config.status
> creating Makefile
> creating openvpn.spec
> creating config.h
> config.h is unchanged
>
>
> and here's make:
>
> cd . && autoheader
> gcc -DHAVE_CONFIG_H -I. -I. -I.     -g -O2 -c crypto.c
> gcc -DHAVE_CONFIG_H -I. -I. -I.     -g -O2 -c gremlin.c
> gcc -DHAVE_CONFIG_H -I. -I. -I.     -g -O2 -c lzo.c
> gcc -DHAVE_CONFIG_H -I. -I. -I.     -g -O2 -c misc.c
> gcc -DHAVE_CONFIG_H -I. -I. -I.     -g -O2 -c reliable.c
> gcc -DHAVE_CONFIG_H -I. -I. -I.     -g -O2 -c ssl.c
> gcc -DHAVE_CONFIG_H -I. -I. -I.     -g -O2 -c fdmisc.c
> gcc -DHAVE_CONFIG_H -I. -I. -I.     -g -O2 -c packet_id.c
> gcc -DHAVE_CONFIG_H -I. -I. -I.     -g -O2 -c shaper.c
> gcc -DHAVE_CONFIG_H -I. -I. -I.     -g -O2 -c socket.c
> gcc -DHAVE_CONFIG_H -I. -I. -I.     -g -O2 -c buffer.c
> gcc -DHAVE_CONFIG_H -I. -I. -I.     -g -O2 -c error.c
> gcc -DHAVE_CONFIG_H -I. -I. -I.     -g -O2 -c openvpn.c
> gcc -DHAVE_CONFIG_H -I. -I. -I.     -g -O2 -c session_id.c
> gcc -DHAVE_CONFIG_H -I. -I. -I.     -g -O2 -c tun.c
> gcc  -g -O2  -o openvpn  crypto.o gremlin.o lzo.o misc.o
> reliable.o ssl.o fdmisc.o packet_id.o shaper.o socket.o
> buffer.o error.o openvpn.o session_id.o tun.o  -lssl -
> lcrypto -llzo
> crypto.o: In function `init_cipher':
> /usr/src/openvpn-1.1.0/crypto.c:393: undefined reference to
> `EVP_CIPHER_CTX_set_key_length'
> collect2: ld returned 1 exit status
> make: *** [openvpn] Error 1
>
>
> Thanks again
>
> John Baker
>
>
>
> ----------------------------------------------------------------------
>
> Comment By: James Yonan (jimyonan)
> Date: 2002-04-13 17:32
>
> Message:
> Logged In: YES
> user_id=203197
>
> Also, what version of OpenSSL are you using?
>
> ----------------------------------------------------------------------
>
> Comment By: James Yonan (jimyonan)
> Date: 2002-04-13 17:27
>
> Message:
> Logged In: YES
> user_id=203197
>
> This function (EVP_CIPHER_CTX_set_key_length) is normally included
> in libcrypto.a (0.9.6).  I don't know why it would be missing from your
> library.
>
> What does the full output of make look like?
>
>
> ----------------------------------------------------------------------
>
> You can respond by visiting:
>
http://sourceforge.net/tracker/?func=detail&atid=454719&aid=543327&group_id=
48978
>


_______________________________________________
Openvpn-users mailing list
Openvpn-users@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/openvpn-users