Forum OpenACS Q&A: Response to nsopenssl build problem

Collapse
Posted by Eric Lee on
1. Yes, I made that change, which I believe is shown in the output from the successful part of the build (below) but the error is the
same with or without that addition. 
I also tried adding
CFLAGS   +=  -I$(OPENSSL)/include/openssl
to the Makefile per the OpenSSL INSTALL advice: Again, same results
with or without it.

gcc -shared -nostartfiles -o nsopenssl.so nsopenssl.o config.o init.o 
ssl.o thread.o tclcmds.o -L/opt/usr/local/lib -lssl -lcrypto
-L/usr/local/lib/gcc-lib/i386-pc-solaris2.7/2.95.2 -lgcc

2. Before it dies the build seems to have created all of the OBS (*.o) but not the MOD (nsopenssl.so) and not so_locations.

3. What I think I need is some help understanding what ld is doing or what it needs in this step. 
What are the "sections" it is referring to as non-writable in the error message?

Text relocation remains                         referenced
    against symbol                  offset      in file
des_SPtrans 0x305       /opt/usr/local/lib/libcrypto.a(dx86-sol.o)
...
until
...
   0x22d8      /opt/usr/local/lib/libcrypto.a(dx86-sol.o)
ld: fatal: relocations remain against allocatable but non-writable 
sections
collect2: ld returned 1 exit status
gmake: *** [nsopenssl.so] Error 1