Kyle H wrote : > Make sure that the OpenSSL includes that your program is compiled with > are the ones from the 0.9.9 snapshot you built, not the ones from > /usr/include or /usr/include/openssl. > > -Kyle H > > On Sun, Nov 16, 2008 at 12:11 PM, Vishnu Param <[EMAIL PROTECTED]> wrote: > > I have followed your advice, and tried compiling the latest snapshot of > > 0.9.9. It finishes compiling, and even installs on my system. My system is > > Ubuntu 8.04. These are the steps i took to compile OpenSSL : > > > > ./config --prefix=/home/zero/test --openssldir=/home/zero/test/openssl > > no-shared > > make > > make test > > make install > > > > However, when I link my program to the static library, I get these errors : > > > > /home/zero/test/lib/libssl.a(s3_enc.o): In function > > `ssl3_change_cipher_state': > > s3_enc.c:(.text+0xa38): undefined reference to `COMP_CTX_free' > > s3_enc.c:(.text+0xa4e): undefined reference to `COMP_CTX_new' > > s3_enc.c:(.text+0xa9e): undefined reference to `EVP_CIPHER_CTX_cleanup' > > s3_enc.c:(.text+0xad5): undefined reference to `COMP_CTX_free' > > s3_enc.c:(.text+0xaeb): undefined reference to `COMP_CTX_new' > > > > I get these in addition to a whole load of other "undefined references". So, > > to make sure I was doing the compilation steps properly, I tried again with > > 0.9.8i. No luck either, it seems I still get the same problem. Seems like I > > am doing something wrong in my compilation steps. Can anyone point me in the > > right direction? > > > > Thanks, > > Vishnu
I am sure I am pointing to the 0.9.9 libraries/headers, because I wouldn't get these errors if I wasn't. What could possibly cause all these undefined references? It also happens when I compile 0.9.8i myself. I think there is something wrong with my compilation steps, even though openssl compiles just fine. Here is my error (when linking to openssl libraries) : Invoking: GCC C Linker gcc -static -L/home/zero/test/lib -o"SSLclient" ./client.o -lcrypto -lpthread -lssl /home/zero/test/lib/libcrypto.a(b_sock.o): In function `BIO_get_host_ip': b_sock.c:(.text+0x532): warning: Using 'gethostbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking /home/zero/test/lib/libcrypto.a(b_sock.o): In function `BIO_get_port': b_sock.c:(.text+0x733): warning: Using 'getservbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking /home/zero/test/lib/libcrypto.a(dso_dlfcn.o): In function `dlfcn_globallookup': dso_dlfcn.c:(.text+0x2d): undefined reference to `dlopen' dso_dlfcn.c:(.text+0x43): undefined reference to `dlsym' dso_dlfcn.c:(.text+0x4d): undefined reference to `dlclose' /home/zero/test/lib/libcrypto.a(dso_dlfcn.o): In function `dlfcn_pathbyaddr': dso_dlfcn.c:(.text+0x8f): undefined reference to `dladdr' dso_dlfcn.c:(.text+0xe8): undefined reference to `dlerror' /home/zero/test/lib/libcrypto.a(dso_dlfcn.o): In function `dlfcn_bind_func': dso_dlfcn.c:(.text+0x445): undefined reference to `dlsym' dso_dlfcn.c:(.text+0x526): undefined reference to `dlerror' /home/zero/test/lib/libcrypto.a(dso_dlfcn.o): In function `dlfcn_bind_var': dso_dlfcn.c:(.text+0x5b1): undefined reference to `dlsym' dso_dlfcn.c:(.text+0x68d): undefined reference to `dlerror' /home/zero/test/lib/libcrypto.a(dso_dlfcn.o): In function `dlfcn_unload': dso_dlfcn.c:(.text+0x6f3): undefined reference to `dlclose' /home/zero/test/lib/libcrypto.a(dso_dlfcn.o): In function `dlfcn_load': dso_dlfcn.c:(.text+0x7c7): undefined reference to `dlopen' dso_dlfcn.c:(.text+0x838): undefined reference to `dlclose' dso_dlfcn.c:(.text+0x87d): undefined reference to `dlerror' /home/zero/test/lib/libssl.a(t1_lib.o): In function `tls1_process_ticket': t1_lib.c:(.text+0x64e): undefined reference to `EVP_aes_128_cbc' /home/zero/test/lib/libssl.a(t1_enc.o): In function `tls1_change_cipher_state': t1_enc.c:(.text+0x1271): undefined reference to `COMP_CTX_free' t1_enc.c:(.text+0x128a): undefined reference to `COMP_CTX_new' t1_enc.c:(.text+0x1348): undefined reference to `COMP_CTX_free' t1_enc.c:(.text+0x1361): undefined reference to `COMP_CTX_new' And a whole lot more "undefined references". Please help. Thanks, Vishnu. _________________________________________________________________ Easily edit your photos like a pro with Photo Gallery. http://get.live.com/photogallery/overview