Mantis - Resin
Viewing Issue Advanced Details
4715 minor always 08-18-11 06:39 08-23-11 15:12
cowan  
ferg  
normal  
closed 4.0.19  
fixed  
none    
none 4.0.21  
0004715: Build fails on Solaris 8
SunOS 5.8 = Solaris 8
gcc 3.3

cc -shared -shared -fPIC -L/tmp/openssl_64/lib -o libresin.so ../resin_os/std.o ../resin_os/memory.o ../resin_os/java.o jni_vfs.o profile.o heap.o lru.o symbol.o crc64.o stat.o mmap_file.o -lnsl -lsocket -lthread
cc: Warning: multiple use of -h option, previous one discarded.
cc: Warning: illegal option -fPIC
ld: warning: option -h appears more than once, first setting taken
ld: fatal: option -h and building a dynamic executable are incompatible
ld: fatal: Flags processing errors
gmake[5]: *** [libresin.so] Error 1
Rep by S. Patil
 openwave-solaris8.patch [^] (211 bytes) 08-18-11 06:39

Notes
(0005448)
cowan   
08-18-11 06:41   
Note: build was eventually fixed using Sun CC NOT gcc:

-fPIC is unrecognized on this platform/compiler
-m64 is also unrecognized
-G appears to be needed also

Patch is attached that makes the build work for Sun CC