Hello Andy/Jonathon,
I tarred up my /usr/local/ssl subdirectory, did a new ./configure &
make, and my compile went fine. Afterwards, I un-tarred my
/usr/local/ssl subdirectory as this was causing end users with IMAP over
SSL problems.
I guess that looking back in retrospective, I am curious what ClamAV
does with SSL? When I did the ./configure , I did not add any
additional configuration parameters.
What does ClamAV do with SSL? And what has changed in version .90 that
requires SSL? I have never had a problem getting a good compile prior
to version .90.
Again, thank you for your feedback. I have ClamAV .90 with a clean
compile and running on (2) Solaris 10 Sparc systems. Additional systems
will come online soon.
Jerry
Andy Fiddaman wrote:
On Fri, 23 Feb 2007, Jerry K wrote:
; Text relocation remains referenced
; against symbol offset in file
; <unknown> 0x4d4
; /usr/local/ssl/lib/libssl.a(s3_lib.o)
; <unknown> 0x4d8
; fopen64 0x4c8
; /usr/local/ssl/lib/libcrypto.a(bss_file.o)
; ld: fatal: relocations remain against allocatable but non-writable sections
; collect2: ld returned 1 exit status
; make[2]: *** [libclamav.la] Error 1
; make[2]: Leaving directory `/usr/local/src/c/clamav-0.90/libclamav'
; make[1]: *** [all-recursive] Error 1
; make[1]: Leaving directory `/usr/local/src/c/clamav-0.90'
; make: *** [all] Error 2
This means that your OpenSSL libraries aren't compiled as relocatable
objects. I'm assuming you're using gcc4 which refuses to link a shared
object that isn't really sharable.
Recompile OpenSSL with CFLAGS=-fPIC, or use the Sun supplied ones in
/usr/sfw[/sparcv9] and that should solve the problem. If you're still
having problems consider using the compiled binary packages from
http://clamav.citrus-it.net/ - they are compiled natively on a Solaris 10
64-bit machine.
I'm not actually sure why OpenSSL is being linked in, it isn't in my
environment..
ldd /opt/clamav/lib/libclamav.so
libz.so.1 => /usr/lib/64/libz.so.1
libbz2.so.1 => /usr/lib/64/libbz2.so.1
libgmp.so.3 => /opt/GNUmp/lib/libgmp.so.3
libpthread.so.1 => /lib/64/libpthread.so.1
libsocket.so.1 => /lib/64/libsocket.so.1
libnsl.so.1 => /lib/64/libnsl.so.1
libc.so.1 => /lib/64/libc.so.1
libmp.so.2 => /lib/64/libmp.so.2
libmd5.so.1 => /lib/64/libmd5.so.1
libscf.so.1 => /lib/64/libscf.so.1
libdoor.so.1 => /lib/64/libdoor.so.1
libuutil.so.1 => /lib/64/libuutil.so.1
libm.so.2 => /lib/64/libm.so.2
/platform/SUNW,Sun-Fire-V210/lib/sparcv9/libc_psr.so.1
/platform/SUNW,Sun-Fire-V210/lib/sparcv9/libmd5_psr.so.1
_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://lurker.clamav.net/list/clamav-users.html
_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://lurker.clamav.net/list/clamav-users.html