I've been trying the options u gave me but gcc keeps giving me errors.
$ gcc -c -g -c -fPIC -I/usr/include -I/usr/j2sdk1.4.2_08/include
-I/usr/j2sdk1.4.2_08/include/linux nativeCrypto.c -o nativeCrypto.o gcc
-shared -Wl,-soname,libnativeCrypto.so -o libnativeCrypto.so
nativeCrypto.o -g -L/usr/lib - lcryptmakeo
gcc: cannot specify -o with -c or -S and multiple compilations
On Sat, 2005-04-23 at 17:17 +0100, P�l � Riain wrote:
> >>make
> > gcc -c -g -c -fPIC -I/usr/include -I/usr/j2sdk1.4.2_08/include
> > -I/usr/j2sdk1.4.2_
> > 08/include/linux jni.c -o jni.o
> > gcc -shared -Wl,-soname,libnativebf.so -o libnativebf.so jni.o -g
> > -L/usr/lib -
> > lcrypto
>
> It tells me -c -g etc are invalid options
>
>
>
> On Sun, 2005-04-24 at 00:41 +0900, Takaaki Ishii wrote:
> > >Ok well thats not the problem so, its definately in /usr/lib/. I am
> > >having this problem not only on OpenSSL crypto libraries but a very
> > >similiar problem at work with some c crypto libraries we are using. Its
> > >more likely my jni interface thats misbehaving then. (although i did
> > >check it several times b4 asking this q here).
> >
> > I think yours is not a code problem in this case,
> > because I could run your code without UnsatisfiedLinkError.
> >
> > # Still I have any wired understanding?
> > -----
> > host:~/user/jni$ tail jni.c
> > enc[len] = '\0';
> > dec = malloc(len+1);
> > dec[len] = '\0';
> >
> > encrypt(txtToEncrypt, enc, len, key1); //Encrypt txtToEncryptt usingenc
> > with
> > key1
> > decrypt(enc, dec, len, key2); //Decrypt enc(txtToEncrypt) using key2
> >
> > printf("done!\n");
> > }
> >
> > host:~/user/jni$ make
> > gcc -c -g -c -fPIC -I/usr/include -I/usr/j2sdk1.4.2_08/include
> > -I/usr/j2sdk1.4.2_
> > 08/include/linux jni.c -o jni.o
> > gcc -shared -Wl,-soname,libnativebf.so -o libnativebf.so jni.o -g
> > -L/usr/lib -
> > lcrypto
> > host:~/user/jni$ LD_LIBRARY_PATH=$LD_LIBRARY_PATH:`pwd`; export
> > LD_LIBRARY_PATH
> > host:~/user/jni$ java nativeBF
> > done!
> > ______________________________________________________________________
> > OpenSSL Project http://www.openssl.org
> > User Support Mailing List [email protected]
> > Automated List Manager [EMAIL PROTECTED]
> >
>
> ______________________________________________________________________
> OpenSSL Project http://www.openssl.org
> User Support Mailing List [email protected]
> Automated List Manager [EMAIL PROTECTED]
>
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List [email protected]
Automated List Manager [EMAIL PROTECTED]