Török Edwin wrote: > On 2008-07-24 20:20, Forrest Aldrich wrote: > >> Prior to posting, I searched Google and found some reports like this - >> though they referred to previous installations needing to be removed >> (which I do not have). >> >> I'm trying to compile the latest stable release on Solaris 10 x86, in >> 64bit -- though compiling it standard with regular GCC still gets the >> same error: >> >> /usr/sfw/bin/gcc -shared -Wl,-h -Wl,libclamunrar.so.4 -o >> .libs/libclamunrar.so.4.0.4 .libs/unrar15.o .libs/unrar.o >> .libs/unrar20.o .libs/unrarppm.o .libs/unrarvm.o .libs/unrarcmd.o >> .libs/unrarfilter.o .libs/unrarhlp.o -lz -lnsl -lsocket -lc -m64 >> -Wl,-M -Wl,../libclamunrar/libclamunrar.map >> (cd .libs && rm -f libclamunrar.so.4 && ln -s libclamunrar.so.4.0.4 >> libclamunrar.so.4) >> (cd .libs && rm -f libclamunrar.so && ln -s libclamunrar.so.4.0.4 >> libclamunrar.so) >> false cru .libs/libclamunrar.a unrar15.o unrar.o unrar20.o unrarppm.o >> unrarvm.o unrarcmd.o unrarfilter.o unrarhlp.o >> >> > > It is supposed to call 'ar' here, is it in your path? > I remember having to edit my $PATH to include all the stuff in > /usr/xpg4/bin, and some other Solaris specific directories. > > Best regards, > --Edwin
Thanks, Edwin. I'm a little new to Solairs, so this is very helpful. I managed to get past that and now I've a different sort of error: mkdir .libs /usr/sfw/bin/gcc -m64 -o .libs/clamscan output.o getopt.o cfgparser.o misc.o options.o clamscan.o others.o manager.o treewalk.o ../libclamav/.libs/libclamav.so /usr/local/src/clamav/clamav-0.93.3/libclamunrar_iface/.libs/libclamunrar_iface.so /usr/local/src/clamav/clamav-0.93.3/libclamunrar/.libs/libclamunrar.so -L/usr/local/lib -lbz2 -lz -lnsl -lsocket -lpthread -R/usr/local/lib ld: warning: file /usr/local/lib/libbz2.a(bzlib.o): wrong ELF class: ELFCLASS32 Undefined first referenced symbol in file BZ2_bzDecompress ../libclamav/.libs/libclamav.so BZ2_bzRead ../libclamav/.libs/libclamav.so BZ2_bzDecompressEnd ../libclamav/.libs/libclamav.so BZ2_bzReadOpen ../libclamav/.libs/libclamav.so BZ2_bzDecompressInit ../libclamav/.libs/libclamav.so BZ2_bzReadClose ../libclamav/.libs/libclamav.so ld: fatal: Symbol referencing errors. No output written to .libs/clamscan collect2: ld returned 1 exit status gmake[2]: *** [clamscan] Error 1 gmake[2]: Leaving directory `/usr/local/src/clamav/clamav-0.93.3/clamscan' gmake[1]: *** [all-recursive] Error 1 gmake[1]: Leaving directory `/usr/local/src/clamav/clamav-0.93.3' gmake: *** [all] Error 2 I think this is because I'm trying to compile in 64bit mode, so I may have to give that up... Feedback welcomed. Thanks, Forrest _______________________________________________ Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net http://www.clamav.net/support/ml