> From: Dale Walsh [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, May 04, 2005 10:10 AM
> To: Jon Dossey
> Subject: Re: [Clamav-users] Problems building 0.83
> 
> 
> On May 04, 2005, at 11:03, Jon Dossey wrote:
> 
> > Redhat 8.0, currently running clamav 0.70rc-1.  Trying to upgrade to
> > 0.83 to match the other MX, then I'll move them both to 0.84 in the
> > next
> > couple weeks.
> >
> > /home/sysadmin/clamav-0.83/freshclam/dns.c:55: undefined reference
to
> > `__res_query'
> > /home/sysadmin/clamav-0.83/freshclam/dns.c:62: undefined reference
to
> > `__dn_expand'
> > /home/sysadmin/clamav-0.83/freshclam/dns.c:77: undefined reference
to
> > `__dn_expand'
> >
> > I can ./configure and throw in a --disable-dns and it makes fine.  I
> > assumed I could stick a -lresolv somewhere in my Makefile and clear
> > this
> > up, but I'm not sure exactly where.
> >
> > Or possibly this old machine doesn't have the resolver libraries
> > installed to link against?  I found this, but I'm not sure if its
ln'd
> > right:
> >
> > -rwxr-xr-x    1 root     root        73640 Apr  7  2003
> > libresolv-2.3.2.so
> > lrwxrwxrwx    1 root     root           18 Apr 23  2003
libresolv.so.2
> > -> libresolv-2.3.2.so
> 
> Shouldn't this be:
> lrwxrwxrwx    1 root     root           18 Apr 23  2003 libresolv.so -
>  > libresolv-2.3.2.so

See that's exactly what I thought.  I thought that was the whole point
of linking the libraries, so you could always point it at the link, so
you could upgrade the actual shared object without having to rebuild
everything linked against it.
 
> > I'm pretty lost when dealing w/ libraries and such, so any help
> > would be
> > appreciated.
> >
> > Thanks,
> > .jon
> 
> examine other link files like libz and libgmp.

Not sure what you mean here.  But thanks for your help so far.

> -- Dale

Here's some other info that might be helpful:
[EMAIL PROTECTED] clamav-0.83]# gcc -v
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/3.2/specs
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
--infodir=/usr/share/info --enable-shared --enable-threads=posix
--disable-checking --host=i386-redhat-linux --with-system-zlib
--enable-__cxa_atexit
Thread model: posix
gcc version 3.2 20020903 (Red Hat Linux 8.0 3.2-7)

Also, when configuring, I noticed the following lines:
checking for bind in -lsocket... no
checking for strlcpy... no
checking for strlcat... no
checking for __dn_expand in -lresolv... no
checking for dn_expand in -lresolv... no

(not right next to each other, just the ones that jumped out at me).

Don't know if any of this is useful at all ...

.jon

_______________________________________________
http://lurker.clamav.net/list/clamav-users.html

Reply via email to