Forum OpenACS Q&A: Response to make error in nsjava

Collapse
Posted by Gilbert Wong on
I set the LD_LIBRARY_PATH variable and it didn't carry through so I edited the Makefile.global and changed it there. I just noticed that the files in the native_threads directory uses .sl instead of the .so extension. The compiler comes back with this error:
gcc -shared nsjava.o log.o set.o pg.o db.o javaevaltcl.o methods.o tclcalljava.o -lpthread  
-lpthread -L/opt/java/lib/PA_RISC/native_threads 
-ljava /home/aol30/sources/aolserver_src/aolserver/tcl8.3.2/unix/libtcl8.3g.a 
/home/aol30/sources/aolserver_src/aolserver/thread/libnsthread.a -o libnsjava.so 
/usr/ccs/bin/ld: DP relative code in file /var/tmp/ccs45s09.o - shared library must be position
    independent.  Use +z or +Z to recompile.
collect2: ld returned 1 exit status
make[1]: *** [libnsjava.so] Error 1
make[1]: Leaving directory `/home/aol30/sources/nsjava-0.0.9/src'
make: *** [all] Error 1
Any ideas? I got this problem before and I can't remember how I fixed it. Thanks. Gilbert