Hi,

 
I am getting error during linking

ld: fatal: relocations remain against allocatable but 
non-writable sections
collect2: ld returned 1 exit status
*** Error code 1
make: Fatal error: Command failed for target 
`nsapi_redirector.so'
 
The server I compile on is 
Solaris 9, sparc. Connector version 1.2.37
I was able to compile on linux, but need it on Solaris 9 sparc as well. Any 
ideas, please?

 

$make -f Makefile.solaris > comp.log 
2>&1


gcc 
-DNET_SSL -DSOLARIS -D_REENTRANT -DXP_UNIX -DMCC_HTTPD -DSPAPI20 -DJK_NSAPI 
-DHAVE_CONFIG_H -I../common -I/apps/sun/we
pps/sun/web/plugins/include/base 
-I/apps/sun/web/plugins/include/frame -c ../common/ap_snprintf.c
gcc 
-DNET_SSL -DSOLARIS -D_REENTRANT -DXP_UNIX -DMCC_HTTPD -DSPAPI20 -DJK_NSAPI 
-DHAVE_CONFIG_H -I../common -I/apps/sun/we
pps/sun/web/plugins/include/base 
-I/apps/sun/web/plugins/include/frame -c ../common/jk_md5.c
gcc 
-DNET_SSL -DSOLARIS -D_REENTRANT -DXP_UNIX -DMCC_HTTPD -DSPAPI20 -DJK_NSAPI 
-DHAVE_CONFIG_H -I../common -I/apps/sun/we
pps/sun/web/plugins/include/base 
-I/apps/sun/web/plugins/include/frame -c ../common/jk_ajp12_worker.c
gcc 
-DNET_SSL -DSOLARIS -D_REENTRANT -DXP_UNIX -DMCC_HTTPD -DSPAPI20 -DJK_NSAPI 
-DHAVE_CONFIG_H -I../common -I/apps/sun/we
pps/sun/web/plugins/include/base 
-I/apps/sun/web/plugins/include/frame -c ../common/jk_msg_buff.c
gcc 
-DNET_SSL -DSOLARIS -D_REENTRANT -DXP_UNIX -DMCC_HTTPD -DSPAPI20 -DJK_NSAPI 
-DHAVE_CONFIG_H -I../common -I/apps/sun/we
pps/sun/web/plugins/include/base 
-I/apps/sun/web/plugins/include/frame -c ../common/jk_ajp13.c
gcc 
-DNET_SSL -DSOLARIS -D_REENTRANT -DXP_UNIX -DMCC_HTTPD -DSPAPI20 -DJK_NSAPI 
-DHAVE_CONFIG_H -I../common -I/apps/sun/we
pps/sun/web/plugins/include/base 
-I/apps/sun/web/plugins/include/frame -c ../common/jk_ajp13_worker.c
gcc 
-DNET_SSL -DSOLARIS -D_REENTRANT -DXP_UNIX -DMCC_HTTPD -DSPAPI20 -DJK_NSAPI 
-DHAVE_CONFIG_H -I../common -I/apps/sun/we
pps/sun/web/plugins/include/base 
-I/apps/sun/web/plugins/include/frame -c ../common/jk_pool.c
gcc 
-DNET_SSL -DSOLARIS -D_REENTRANT -DXP_UNIX -DMCC_HTTPD -DSPAPI20 -DJK_NSAPI 
-DHAVE_CONFIG_H -I../common -I/apps/sun/we
pps/sun/web/plugins/include/base 
-I/apps/sun/web/plugins/include/frame -c ../common/jk_ajp14.c
gcc 
-DNET_SSL -DSOLARIS -D_REENTRANT -DXP_UNIX -DMCC_HTTPD -DSPAPI20 -DJK_NSAPI 
-DHAVE_CONFIG_H -I../common -I/apps/sun/we
pps/sun/web/plugins/include/base 
-I/apps/sun/web/plugins/include/frame -c ../common/jk_shm.c
gcc 
-DNET_SSL -DSOLARIS -D_REENTRANT -DXP_UNIX -DMCC_HTTPD -DSPAPI20 -DJK_NSAPI 
-DHAVE_CONFIG_H -I../common -I/apps/sun/we
pps/sun/web/plugins/include/base 
-I/apps/sun/web/plugins/include/frame -c ../common/jk_ajp14_worker.c
gcc 
-DNET_SSL -DSOLARIS -D_REENTRANT -DXP_UNIX -DMCC_HTTPD -DSPAPI20 -DJK_NSAPI 
-DHAVE_CONFIG_H -I../common -I/apps/sun/we
pps/sun/web/plugins/include/base 
-I/apps/sun/web/plugins/include/frame -c ../common/jk_sockbuf.c
gcc 
-DNET_SSL -DSOLARIS -D_REENTRANT -DXP_UNIX -DMCC_HTTPD -DSPAPI20 -DJK_NSAPI 
-DHAVE_CONFIG_H -I../common -I/apps/sun/we
pps/sun/web/plugins/include/base 
-I/apps/sun/web/plugins/include/frame -c ../common/jk_ajp_common.c
gcc 
-DNET_SSL -DSOLARIS -D_REENTRANT -DXP_UNIX -DMCC_HTTPD -DSPAPI20 -DJK_NSAPI 
-DHAVE_CONFIG_H -I../common -I/apps/sun/we
pps/sun/web/plugins/include/base 
-I/apps/sun/web/plugins/include/frame -c ../common/jk_status.c
gcc 
-DNET_SSL -DSOLARIS -D_REENTRANT -DXP_UNIX -DMCC_HTTPD -DSPAPI20 -DJK_NSAPI 
-DHAVE_CONFIG_H -I../common -I/apps/sun/we
pps/sun/web/plugins/include/base 
-I/apps/sun/web/plugins/include/frame -c ../common/jk_connect.c
gcc 
-DNET_SSL -DSOLARIS -D_REENTRANT -DXP_UNIX -DMCC_HTTPD -DSPAPI20 -DJK_NSAPI 
-DHAVE_CONFIG_H -I../common -I/apps/sun/we
pps/sun/web/plugins/include/base 
-I/apps/sun/web/plugins/include/frame -c 
../common/jk_uri_worker_map.c
gcc 
-DNET_SSL -DSOLARIS -D_REENTRANT -DXP_UNIX -DMCC_HTTPD -DSPAPI20 -DJK_NSAPI 
-DHAVE_CONFIG_H -I../common -I/apps/sun/we
pps/sun/web/plugins/include/base 
-I/apps/sun/web/plugins/include/frame -c ../common/jk_context.c
gcc 
-DNET_SSL -DSOLARIS -D_REENTRANT -DXP_UNIX -DMCC_HTTPD -DSPAPI20 -DJK_NSAPI 
-DHAVE_CONFIG_H -I../common -I/apps/sun/we
pps/sun/web/plugins/include/base 
-I/apps/sun/web/plugins/include/frame -c ../common/jk_url.c
gcc 
-DNET_SSL -DSOLARIS -D_REENTRANT -DXP_UNIX -DMCC_HTTPD -DSPAPI20 -DJK_NSAPI 
-DHAVE_CONFIG_H -I../common -I/apps/sun/we
pps/sun/web/plugins/include/base 
-I/apps/sun/web/plugins/include/frame -c ../common/jk_util.c
gcc 
-DNET_SSL -DSOLARIS -D_REENTRANT -DXP_UNIX -DMCC_HTTPD -DSPAPI20 -DJK_NSAPI 
-DHAVE_CONFIG_H -I../common -I/apps/sun/we
pps/sun/web/plugins/include/base 
-I/apps/sun/web/plugins/include/frame -c ../common/jk_lb_worker.c
gcc 
-DNET_SSL -DSOLARIS -D_REENTRANT -DXP_UNIX -DMCC_HTTPD -DSPAPI20 -DJK_NSAPI 
-DHAVE_CONFIG_H -I../common -I/apps/sun/we
pps/sun/web/plugins/include/base 
-I/apps/sun/web/plugins/include/frame -c ../common/jk_worker.c
gcc 
-DNET_SSL -DSOLARIS -D_REENTRANT -DXP_UNIX -DMCC_HTTPD -DSPAPI20 -DJK_NSAPI 
-DHAVE_CONFIG_H -I../common -I/apps/sun/we
pps/sun/web/plugins/include/base 
-I/apps/sun/web/plugins/include/frame -c ../common/jk_map.c
gcc 
-DNET_SSL -DSOLARIS -D_REENTRANT -DXP_UNIX -DMCC_HTTPD -DSPAPI20 -DJK_NSAPI 
-DHAVE_CONFIG_H -I../common -I/apps/sun/we
pps/sun/web/plugins/include/base 
-I/apps/sun/web/plugins/include/frame -c jk_nsapi_plugin.c
gcc 
-shared -v -m32 ap_snprintf.o jk_md5.o jk_ajp12_worker.o jk_msg_buff.o 
jk_ajp13.o jk_ajp13_worker.o jk_pool.o jk
_ajp14_worker.o jk_sockbuf.o jk_ajp_common.o jk_status.o 
jk_connect.o jk_uri_worker_map.o jk_context.o jk_url.o jk_u
jk_worker.o jk_map.o jk_nsapi_plugin.o -o 
nsapi_redirector.so
Reading specs from 
/usr/local/lib/gcc/sparc-sun-solaris2.9/3.4.2/specs
Configured with: ../configure --with-as=/usr/ccs/bin/as 
--with-ld=/usr/ccs/bin/ld --disable-nls
Thread model: posix
gcc 
version 3.4.2
/usr/local/libexec/gcc/sparc-sun-solaris2.9/3.4.2/collect2 
-V -G -dy -z text -Y P,/usr/ccs/lib:/usr/lib -Qy -o nsapi_redirec
gcc/sparc-sun-solaris2.9/3.4.2/crti.o 
/usr/ccs/lib/values-Xa.o 
/usr/local/lib/gcc/sparc-sun-solaris2.9/3.4.2/crtbegin.o -L/us
sun-solaris2.9/3.4.2 -L/usr/ccs/bin -L/usr/ccs/lib 
-L/usr/local/lib/gcc/sparc-sun-solaris2.9/3.4.2/../../.. ap_snprintf.o 
jk_
o 
jk_msg_buff.o jk_ajp13.o jk_ajp13_worker.o jk_pool.o jk_ajp14.o jk_shm.o 
jk_ajp14_worker.o jk_sockbuf.o jk_ajp_common.o jk_
jk_uri_worker_map.o jk_context.o jk_url.o jk_util.o 
jk_lb_worker.o jk_worker.o jk_map.o jk_nsapi_plugin.o -lgcc_s -lgcc_s 
/us
sun-solaris2.9/3.4.2/crtend.o 
/usr/local/lib/gcc/sparc-sun-solaris2.9/3.4.2/crtn.o
ld: 
Software Generation Utilities - Solaris Link Editors: 5.9-1.401
Text relocation remains referenced
against symbol offset in file
<unknown> 0x2a0c ap_snprintf.o
<unknown> 0x2a10 ap_snprintf.o
…..

ld: 
fatal: relocations remain against allocatable but non-writable 
sections
collect2: ld returned 1 exit status
*** 
Error code 1
make: Fatal error: Command failed for target 
`nsapi_redirector.so'



end_of_the_skype_highlightingThank you,Vlad
                                                                                
  

Reply via email to