Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: ClamAV: users

Problems compiling clamav-milter

 

 

ClamAV users RSS feed   Index | Next | Previous | View Threaded


n.wicker at cnk-networks

Aug 15, 2003, 9:48 AM

Post #1 of 2 (1327 views)
Permalink
Problems compiling clamav-milter

hallo list,
i am trying to compile clamav 0.60 and clamav-20030806 on a sun solaris
SPARC box. the make-process went fine with one exeption. trying to
compile clamav-milter produces some errors which prevent
code-generation.

configure options were:

./configure --prefix=/usr/local --sysconfdir=/etc --enable-milter

make uses:
gcc -g -O2 -Dstrerror_r=strerror -o clamav-milter clamav-milter.o
../clamd/cfgfile.o ../clamd/others.o
-L/export/home/nwicker/Solaris-Softwar
e/ClamAV/clamav-20030806/libclamav -L/usr/lib/libmilter -lmilter
-lpthread -lsocket -lnsl -lresolv

the errors produced were:

Undefined first referenced
symbol in file
strerror_r clamav-milter.o
getopt_long clamav-milter.o
ld: fatal: Symbol referencing errors. No output written to clamav-milter
collect2: ld returned 1 exit status

use of -Dstrerror_r=strerror option didn' t work and i've got no idea
how to fix the getopt_long problem.

any help appreciated.

Nikolaj Wicker



--
Nikolaj Wicker fon +49-(0)7248/9150-0
cnk networks gmbh fax +49-(0)7248/9150-50
becker-goering-strasse 26/1 info [at] cnk-networks
Germany, 76307 karlsbad


ludek.finstrle at pzkagis

Aug 17, 2003, 12:21 AM

Post #2 of 2 (1029 views)
Permalink
Re: Problems compiling clamav-milter [In reply to]

> i am trying to compile clamav 0.60 and clamav-20030806 on a sun solaris
> SPARC box. the make-process went fine with one exeption. trying to
> compile clamav-milter produces some errors which prevent
> code-generation.
>
> configure options were:
>
> ./configure --prefix=/usr/local --sysconfdir=/etc --enable-milter
>
> make uses:
> gcc -g -O2 -Dstrerror_r=strerror -o clamav-milter clamav-milter.o
> ../clamd/cfgfile.o ../clamd/others.o
> -L/export/home/nwicker/Solaris-Softwar
> e/ClamAV/clamav-20030806/libclamav -L/usr/lib/libmilter -lmilter
> -lpthread -lsocket -lnsl -lresolv

I had on RH 7.3 (but i386) similar problem. Sendmail is compiled with
libraries libmilter and libsmutil. I resolve problem with adding
-lsmutil to <clamav source dir>/clamav-milter/Makefile.

I changed line:
LIBS = -L../libclamav -L/usr/lib/libmilter -lclamav -lmilter -lpthread
this way:
LIBS = -L../libclamav -L/usr/lib/libmilter -lclamav -lmilter -lsmutil -lpthread

I hope this can help

Luf

ClamAV users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.