Problem making shared library with openssl

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

Problem making shared library with openssl

Angel Martinez Gonzalez

I have a source files that use openssl functionality. I want to make a
shared library to use this with Java. I did this following steps:

1º Compile sources:
    gcc -fPIC -g -c -Wall -I/usr/local/java/include \
    -I/usr/local/java/include/linux \
    -I/usr/local/ssl/include \
    -L/usr/local/ssl/lib -ssl -lcrypto *.c

2º Make a shared library:
    gcc -shared -Wl,-soname, -o *.o -lc

But when I use this shared library "", my java program not found
openssl functions. I obtain this error:

/usr/local/jakarta-tomcat-4.1.12/webapps/pseudomatic/TTP/ undefined
symbol: PEM_write_DSA_PUBKEY

I think that the problem is in the compilate phase, but I don´t know what is

Somebody can help me?. Thanks.


OpenSSL Project                       
User Support Mailing List                    [hidden email]
Automated List Manager                           [hidden email]