ok finally no undefined symbol error..but jvm is crashing.
I think using a command shell to execute openssl might be a better
alternative!

SIGSEGV   11*  segmentation violation
    si_signo [11]: SIGSEGV   11*  segmentation violation
    si_errno [0]: Success
    si_code [0]: SI_USER [pid: 0, uid: 0]
        stackpointer=0xbffff530

Full thread dump Classic VM (JDK-1.2.2_007, green threads):
    "Finalizer" (TID:0x40ea2320, sys_thread_t:0x8109258, state:CW) prio=8
        at java.lang.Object.wait(Native Method)
        at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:112)
        at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:127)
        at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:174)
    "Reference Handler" (TID:0x40ea23b0, sys_thread_t:0x8104790, state:CW)
prio=10
        at java.lang.Object.wait(Native Method)
        at java.lang.Object.wait(Object.java:424)
        at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:114)
    "Signal dispatcher" (TID:0x40ea23e0, sys_thread_t:0x8102b90, state:CW)
prio=5
    "main" (TID:0x40ea21e0, sys_thread_t:0x804c240, state:R) prio=5
        at test.GenerateX509Cert(Native Method)
        at test.main(test.java:11)
Monitor Cache Dump:
    java.lang.ref.Reference$Lock@40EA23C0/40ED7B20: <unowned>
        Waiting to be notified:
            "Reference Handler" (0x8104790)
    java.lang.ref.ReferenceQueue$Lock@40EA2338/40ED8028: <unowned>
        Waiting to be notified:
            "Finalizer" (0x8109258)
Registered Monitor Dump:
    utf8 hash table: <unowned>
    JNI pinning lock: <unowned>
    JNI global reference lock: <unowned>
    BinClass lock: <unowned>
    Class linking lock: <unowned>
    System class loader lock: <unowned>
    Code rewrite lock: <unowned>
    Heap lock: <unowned>
    Monitor cache lock: owner "main" (0x804c240) 1 entry
    Dynamic loading lock: <unowned>
    Monitor IO lock: <unowned>
    User signal monitor: <unowned>
        Waiting to be notified:
            "Signal dispatcher" (0x8102b90)
    Child death monitor: <unowned>
    I/O monitor: <unowned>
    Alarm monitor: <unowned>
        Waiting to be notified:
            <unknown thread> (0x80577e0)
    Thread queue lock: owner "main" (0x804c240) 1 entry
    Monitor registry: owner "main" (0x804c240) 1 entry

-----Original Message-----
app_RAND_load_file() is not in the library. it is only a function used
in the openssl command tool. you can get the function definition in
apps/app_rand.c
______________________________________________________________________

I wrote a JNI stub myx509.c and compiled it into a shared library.
But while running the java file I get UnsatisfiedLinkError: Undefined
symbol: app_RAND_load_file 
The problem is I dont know which are the files to be put in the shared
library
or if there is any single archive file..I tried linking libcrypto.a libssl.a
and libRSAglue.a but still i get errors..

any idea which are the required files..I can find out one by one but is a
long
and painful process.I am using Redhat Linux 6.2 and OpenSSL-0.9.6
well I tried your suggestion but still it is giving undefine symbol:
thanks
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to