Thanks for all the info, but whats strange that it did work all the time to to compile every other version of clamav, and this rc3 I cannot compile anylonger... :(

Chris


On Sun, 4 Feb 2007, René Berber wrote:

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Krzys wrote:

I was able to compile all the versions up to .90 rc2, I just downloaded
rc3 and I am unable to compile it anylonger, any idea why? or what
changed or what I am doing wrong?

You have 2 installations of bzip2, the first comes with Solaris, the second you
made and it probably is wrong (i.e. forgot to use -fPIC or something similar);
you also give preference to /usr/local and no mention of /usr/sfw which should
be the default for Solaris.

Here is what I get:

[snip]
/bin/bash ../libtool --tag=CC --mode=link /usr/sfw/bin/gcc  -g -O2
-lsocket -lnsl -L/usr/local/lib -o libclamav.la -rpath /usr/local/lib
-thread-safe -version-info 1:33: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
-L/usr/local/lib -lz -lbz2 -lgmp -L/usr/local/lib -lcurl
-L/usr/local/lib -R/usr/local/lib -R/usr/lib -L/usr/lib
-R/usr/openwin/lib -L/usr/openwin/lib -L/usr/local/ssl/lib
-R/usr/local/ssl/lib -L/usr/local/BerkeleyDB.4.2/lib
-R/usr/local/BerkeleyDB.4.2/lib -lssl -lcrypto -lsocket -lnsl -lz
-L/usr/local/ssl/lib -lssl -lcrypto -lsocket -lnsl -ldl -lpthread
-lsocket -lnsl
/usr/sfw/bin/gcc -shared -Wl,-h -Wl,libclamav.so.1 -o
.libs/libclamav.so.1.0.33 .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/lib -R/usr/openwin/lib
-R/usr/local/ssl/lib -R/usr/local/BerkeleyDB.4.2/lib -L/usr/local/lib
-lbz2 /usr/local/lib/libgmp.so -L/usr/lib -L/usr/local/ssl/lib
-L/usr/local/BerkeleyDB.4.2/lib -L/usr/openwinlib
/usr/local/lib/libcurl.so -L/usr/openwin/lib -lz -lssl -lcrypto -ldl
-lpthread -lsocket -lnsl -lc
Text relocation remains                         referenced
    against symbol                  offset      in file
<unknown>                           0x32ec
/usr/local/lib/libbz2.a(decompress.o)
[snip]

Big problem, -shared is used but only libbz2.a is found... the above link
command is for using shared libraries only, you'll have to change it if you
really want to use static libs.

Get rid of that library and either use the one that came with Solaris or make a
good build.
- --
René Berber
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFxj3eL3NNweKTRgwRAmN5AKCmckvn3dqBKt2YHW8e8M8mQCvo7gCfcs9o
LwXOek1n0kW1IlQsNmy6xZo=
=q5mn
-----END PGP SIGNATURE-----

_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://lurker.clamav.net/list/clamav-users.html


!DSPAM:122,45c63ff416989021468!
_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://lurker.clamav.net/list/clamav-users.html

Reply via email to