Mike Sullivan wrote: > sagun shakya wrote: > >> Thank you Paul, >> >> There is one warning I see and was wandering if any compiler expert >> could answer this: >> >> While compiling libpcap in 64bit sparc I was getting this error: >> ld: fatal: relocation error: R_SPARC_M44: file pcap-libdlpi.o: symbol >> .rodata1 (section): relocations based on the ABS44 coding model can not >> be used in building a shared object >> >> > > That almost sounds like something I saw when testing studio 12 on sfw. > Are you using 12 or 11 (you're supposed to be using 11 now). > I'm using studio 11
CC = /opt/SUNWspro/SS11/bin/cc > >> I found that adding the -xcode=pic32 to the CFLAGS fixed it. But when >> compiling libpcap 64bit in i386 I get this warning. although the shared >> library is built? >> >> cc: Warning: illegal option -xcode=pic32 >> > > My cc man page says: > > -xcode=v > (SPARC) Specify code address space > OK that would explain. Is it ok to ignore this warning if I I have to used the -xcode flag or set TARGETENV64 in my changes depending upon the architecture? Thanks, Sagun -- Sagun Shakya 781.442.7344/ X27344 sagun.shakya at sun.com
