Mantis - Resin
Viewing Issue Advanced Details
3347 crash always 02-19-09 00:12 02-18-11 16:53
copart  
ferg  
normal  
closed 3.2.1  
fixed  
none    
none 4.0.16  
0003347: make on sol10 misses -fPIC (gcc) or -kpic (solaris cc)
a normal 64 bit configure, either gcc or sun workshop will result in:

[23:37:19.883] {main} java.lang.UnsatisfiedLinkError: /usr/local/resin-pro-3.2.1/libexec64/libresin.so: ld.so.1: java: fatal: relocation error: R_AMD64
_32: file /usr/local/resin-pro-3.2.1/libexec64/libresin.so: symbol (unknown): value 0xfffffd7fe4439186 does not fit

The problem seems to be that most compiles happen with no -fpic:
gcc -c -I/usr/sfw/include/ -g -O2 -DPOLL -D_POSIX_PTHREAD_SEMANTICS -DB64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -m64 -D__SOLARIS__ -DHAS_JVMTI memory.c


by forcing fpic via
 CFLAGS="-fPIC" ./configure ...

We get a resin binary that loads properly.

There are no notes attached to this issue.