Hi,

I had the same problem but only for INET_ADDRSTRLEN not being defined...

The first thing I would look for is to see if you have the library /usr/local/include/netinet/in.h
To be on the safe side, because some progs look in /usr/local/include and others in /usr/include, make sure you have all librarys in both places i.e. both places have the same files.

In my case the library did not define the parametre INET_ADDRSTRLEN so I edited the clamav-milter.c and added:

#ifndef INET_ADDRESTRLEN
#define INET_ADDRESTRLEN 16
#endif

just after the big list on #include 's ....

Hope it helps,

Nikos Karamanolis
Systems Support Engineer
Ideal Systems

Hi,

   Thanks for the reply. I inserted the values you said in clamav-milter.c, now I am getting the following error

 

/bin/sh ../libtool --mode=link gcc  -g -O2   -L/usr/local/lib -L/opt/gmp/lib -L/usr/lib -o clamav-milter  clamav-milter.o ../clamd/cfgfile.o ../clamd/others.o ../clamscan/getopt.o -L../libclamav -lclamav -L/usr/lib/libmilter -lmilter  -lpthread

gcc -g -O2 -o clamav-milter clamav-milter.o ../clamd/cfgfile.o ../clamd/others.o ../clamscan/getopt.o  -L/usr/local/lib -L/opt/gmp/lib -L/usr/lib -L/test/down/clamav-0.70-rc/libclamav /usr/local/clamav70/lib/libclamav.sl -lz -L/usr/lib/libmilter -lmilter -lpthread -Wl,+b -Wl,/usr/local/clamav70/lib

/usr/ccs/bin/ld: (Warning) At least one PA 2.0 object file (/usr/local/lib/libmilter.sl(main.o)) was detected. The linked output may not run on a PA 1.x system.

/usr/ccs/bin/ld: Unsatisfied symbols:

   inet_ntop (first referenced in clamav-milter.o) (code)

collect2: ld returned 1 exit status

*** Error exit code 1

 

Stop.

 

 

 

 

On HP-UX 11.00 routine inet_ntop is not available; it’s available only on HP-UX 11i. Compilation was success if I comment the line in clamav-milter.c

 

remoteIP = (char *)inet_ntop(AF_INET, &((struct sockaddr_in *)(hostaddr))->sin_addr, ip, sizeof(ip));

 

Does it affect any another functionality by commenting the above line in clamav-milter.c?

 

Thanks

PAd

 

 

Reply via email to