I am having problems compiling ClamAV on Solaris 9 and 10. Both Sparc and x86. The configure completes without any errors. I will show the compile error below.

In the Solaris 9 environment, I am using GCC from sunfreeware.com and GNU make that I compiled myself, located in /usr/local/bin.

In the Solaris 10 environment, I am using the GCC that shipped with the operating system. I am primarily attempting to use GNU make (/usr/local/bin/make) that I compiled myself.

Also, in references to one of the FAQ items, I have also tried to compile using the shipped /usr/sfw/bin/gmake in both environments.

This is the compile error I am getting below. I have been using ClamAV for many past revisions, and the .90 version has bee the first version that I am seeing problems with in the compiling part.

Any suggestions are appreciated.

Thank you,

Jerry K

===================================================

gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I./unrar -I/usr/local/include -I/usr/local/include -I/usr/local/include -g -O2 -MT hashtab.lo -MD -MP -MF .deps/hashtab.Tpo -c hashtab.c -fPIC -DPIC -o .libs/hashtab.o gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I./unrar -I/usr/local/include -I/usr/local/include -I/usr/local/include -g -O2 -MT hashtab.lo -MD -MP -MF .deps/hashtab.Tpo -c hashtab.c -o hashtab.o >/dev/null 2>&1 if /bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I./unrar -I/usr/local/include -I/usr/local/include -I/usr/local/include -g -O2 -MT dconf.lo -MD -MP -MF ".deps/dconf.Tpo" -c -o dconf.lo dconf.c; \ then mv -f ".deps/dconf.Tpo" ".deps/dconf.Plo"; else rm -f ".deps/dconf.Tpo"; exit 1; fi gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I./unrar -I/usr/local/include -I/usr/local/include -I/usr/local/include -g -O2 -MT dconf.lo -MD -MP -MF .deps/dconf.Tpo -c dconf.c -fPIC -DPIC -o .libs/dconf.o gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I./unrar -I/usr/local/include -I/usr/local/include -I/usr/local/include -g -O2 -MT dconf.lo -MD -MP -MF .deps/dconf.Tpo -c dconf.c -o dconf.o >/dev/null 2>&1 if /bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I./unrar -I/usr/local/include -I/usr/local/include -I/usr/local/include -g -O2 -MT lockdb.lo -MD -MP -MF ".deps/lockdb.Tpo" -c -o lockdb.lo lockdb.c; \ then mv -f ".deps/lockdb.Tpo" ".deps/lockdb.Plo"; else rm -f ".deps/lockdb.Tpo"; exit 1; fi gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I./unrar -I/usr/local/include -I/usr/local/include -I/usr/local/include -g -O2 -MT lockdb.lo -MD -MP -MF .deps/lockdb.Tpo -c lockdb.c -fPIC -DPIC -o .libs/lockdb.o gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I./unrar -I/usr/local/include -I/usr/local/include -I/usr/local/include -g -O2 -MT lockdb.lo -MD -MP -MF .deps/lockdb.Tpo -c lockdb.c -o lockdb.o >/dev/null 2>&1 /bin/bash ../libtool --tag=CC --mode=link gcc -g -O2 -o libclamav.la -rpath /usr/local/lib -thread-safe -version-info 1:40:0 -no-undefined matcher-ac.lo matcher-bm.lo matcher-ncore.lo matcher.lo md5.lo others.lo readdb.lo cvd.lo dsig.lo str.lo scanners.lo filetypes.lo rtf.lo blob.lo mbox.lo message.lo snprintf.lo table.lo text.lo ole2_extract.lo vba_extract.lo msexpand.lo pe.lo upx.lo htmlnorm.lo chmunpack.lo rebuildpe.lo petite.lo wwunpack.lo suecrypt.lo unsp.lo packlibs.lo fsg.lo mew.lo upack.lo line.lo untar.lo unzip.lo special.lo binhex.lo is_tar.lo tnef.lo unrar15.lo unrarvm.lo unrar.lo unrarfilter.lo unrarppm.lo unrar20.lo unrarcmd.lo pdf.lo spin.lo yc.lo elf.lo sis.lo uuencode.lo phishcheck.lo phish_domaincheck_db.lo phish_whitelist.lo regex_list.lo sha256.lo mspack.lo cab.lo entconv.lo hashtab.lo dconf.lo lockdb.lo -liconv -L/usr/local/lib -lz -lbz2 -lgmp -L/usr/local/lib -lcurl -L/usr/sfw/lib -lssl -lcrypto -lsocket -lnsl -lssl -lcrypto -lsocket -lnsl -ldl -lz -R/usr/sfw/lib -L/usr/sfw/lib -lssl -lcrypto -lsocket -lnsl -ldl -lpthread -lsocket -lnsl gcc -shared -Wl,-h -Wl,libclamav.so.1 -o .libs/libclamav.so.1.0.40 .libs/matcher-ac.o .libs/matcher-bm.o .libs/matcher-ncore.o .libs/matcher.o .libs/md5.o .libs/others.o .libs/readdb.o .libs/cvd.o .libs/dsig.o .libs/str.o .libs/scanners.o .libs/filetypes.o .libs/rtf.o .libs/blob.o .libs/mbox.o .libs/message.o .libs/snprintf.o .libs/table.o .libs/text.o .libs/ole2_extract.o .libs/vba_extract.o .libs/msexpand.o .libs/pe.o .libs/upx.o .libs/htmlnorm.o .libs/chmunpack.o .libs/rebuildpe.o .libs/petite.o .libs/wwunpack.o .libs/suecrypt.o .libs/unsp.o .libs/packlibs.o .libs/fsg.o .libs/mew.o .libs/upack.o .libs/line.o .libs/untar.o .libs/unzip.o .libs/special.o .libs/binhex.o .libs/is_tar.o .libs/tnef.o .libs/unrar15.o .libs/unrarvm.o .libs/unrar.o .libs/unrarfilter.o .libs/unrarppm.o .libs/unrar20.o .libs/unrarcmd.o .libs/pdf.o .libs/spin.o .libs/yc.o .libs/elf.o .libs/sis.o .libs/uuencode.o .libs/phishcheck.o .libs/phish_domaincheck_db.o .libs/phish_whitelist.o .libs/regex_list.o .libs/sha256.o .libs/mspack.o .libs/cab.o .libs/entconv.o .libs/hashtab.o .libs/dconf.o .libs/lockdb.o -R/usr/local/lib -R/usr/local/lib -R/usr/sfw/lib /usr/local/lib/libiconv.so -L/usr/local/lib -L/usr/lib -L/usr/openwin/lib -L/usr/local/ssl/lib -L/usr/local/BerkeleyDB.4.2/lib -lbz2 /usr/local/lib/libgmp.so /usr/local/lib/libcurl.so -L/usr/sfw/lib -lz -lssl -lcrypto -ldl -lpthread -lsocket -lnsl -lc
Text relocation remains                         referenced
    against symbol                  offset      in file
<unknown> 0x4d4 /usr/local/ssl/lib/libssl.a(s3_lib.o) <unknown> 0x4d8 /usr/local/ssl/lib/libssl.a(s3_lib.o) <unknown> 0x4dc /usr/local/ssl/lib/libssl.a(s3_lib.o) <unknown> 0x4e0 /usr/local/ssl/lib/libssl.a(s3_lib.o) <unknown> 0x4e4 /usr/local/ssl/lib/libssl.a(s3_lib.o) <unknown> 0x4e8 /usr/local/ssl/lib/libssl.a(s3_lib.o) <unknown> 0x4ec /usr/local/ssl/lib/libssl.a(s3_lib.o) <unknown> 0x4f0 /usr/local/ssl/lib/libssl.a(s3_lib.o) <unknown> 0x4f4 /usr/local/ssl/lib/libssl.a(s3_lib.o) <unknown> 0x4f8 /usr/local/ssl/lib/libssl.a(s3_lib.o) <unknown> 0x4fc /usr/local/ssl/lib/libssl.a(s3_lib.o) <unknown> 0x500 /usr/local/ssl/lib/libssl.a(s3_lib.o) <unknown> 0x504 /usr/local/ssl/lib/libssl.a(s3_lib.o) <unknown> 0x508 /usr/local/ssl/lib/libssl.a(s3_lib.o) <unknown> 0x8a4 /usr/local/ssl/lib/libssl.a(s3_lib.o) <unknown> 0x8a8 /usr/local/ssl/lib/libssl.a(s3_lib.o) <unknown> 0x8ac /usr/local/ssl/lib/libssl.a(s3_lib.o) <unknown> 0x8b0 /usr/local/ssl/lib/libssl.a(s3_lib.o) <unknown> 0x8b4 /usr/local/ssl/lib/libssl.a(s3_lib.o) <unknown> 0x8b8 /usr/local/ssl/lib/libssl.a(s3_lib.o) <unknown> 0x8bc /usr/local/ssl/lib/libssl.a(s3_lib.o) <unknown> 0x8c0 /usr/local/ssl/lib/libssl.a(s3_lib.o) <unknown> 0x8c4 /usr/local/ssl/lib/libssl.a(s3_lib.o) <unknown> 0x8c8 /usr/local/ssl/lib/libssl.a(s3_lib.o) <unknown> 0x8cc /usr/local/ssl/lib/libssl.a(s3_lib.o) <unknown> 0x8d0 /usr/local/ssl/lib/libssl.a(s3_lib.o) <unknown> 0x8d4 /usr/local/ssl/lib/libssl.a(s3_lib.o) <unknown> 0x8d8 /usr/local/ssl/lib/libssl.a(s3_lib.o) <unknown> 0x8dc /usr/local/ssl/lib/libssl.a(s3_lib.o) <unknown> 0xa2c /usr/local/ssl/lib/libssl.a(s3_enc.o) <unknown> 0xa30 /usr/local/ssl/lib/libssl.a(s3_enc.o) <unknown> 0xa34 /usr/local/ssl/lib/libssl.a(s3_enc.o) <unknown> 0xa38 /usr/local/ssl/lib/libssl.a(s3_enc.o) <unknown> 0xa3c /usr/local/ssl/lib/libssl.a(s3_enc.o) <unknown> 0xa40 /usr/local/ssl/lib/libssl.a(s3_enc.o) <unknown> 0xa44 /usr/local/ssl/lib/libssl.a(s3_enc.o) <unknown> 0xa48 /usr/local/ssl/lib/libssl.a(s3_enc.o) <unknown> 0xa4c /usr/local/ssl/lib/libssl.a(s3_enc.o)

***********************
truncated for shortness
***********************

qsort 0x9c0 /usr/local/ssl/lib/libssl.a(s3_lib.o) qsort 0x574 /usr/local/ssl/lib/libcrypto.a(o_names.o) qsort 0x828 /usr/local/ssl/lib/libcrypto.a(stack.o) qsort 0x920 /usr/local/ssl/lib/libcrypto.a(stack.o) qsort 0x80c /usr/local/ssl/lib/libcrypto.a(tasn_enc.o) qsort 0x190 /usr/local/ssl/lib/libcrypto.a(a_set.o) abort 0x47c /usr/local/ssl/lib/libcrypto.a(cryptlib.o) fopen64 0x170 /usr/local/ssl/lib/libcrypto.a(bss_file.o) 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
/usr/local/src/c/clamav-0.90 426 #
_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://lurker.clamav.net/list/clamav-users.html

Reply via email to