I just grabbed build 755 dated 24-March-2008 from CVS a few minutes ago and 
I'm still seeing the same issue with detecting lresolv.  There was a slight 
continuation of the thread, then it faded into the sunset.

I know that Nessus source through version 2.2.11 compile without issue using 
the same configure options as I use below on the same platform.

Information:

# uname -srmpi
Linux 2.6.24-gentoo-r3 SMP x86_64 Dual-Core AMD Opteron(tm) Processor 2216 HE 
AuthenticAMD

# gcc -v
Using built-in specs.
Target: x86_64-pc-linux-gnu
Configured with: 
/var/tmp/portage/sys-devel/gcc-4.2.3/work/gcc-4.2.3/configure --prefix=/usr 
--bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/4.2.3 
 --includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.2.3/include 
--datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.2.3 
 --mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.2.3/man 
--infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.2.3/info 
 --with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.2.3/include/g++-v4  
--host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --disable-altivec 
--enable-nls 
 --without-included-gettext --with-system-zlib --disable-checking 
--disable-werror 
 --enable-secureplt --disable-libunwind-exceptions --enable-multilib 
--enable-libmudflap 
 --disable-libssp --disable-libgcj --enable-languages=c,c++,treelang,fortran 
--enable-shared 
 --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu 
--with-bugurl=http://bugs.gentoo.org/ 
 --with-pkgversion=Gentoo 4.2.3 p1.0
Thread model: posix
gcc version 4.2.3 (Gentoo 4.2.3 p1.0)

# make -v
GNU Make 3.81
Copyright (C) 2006  Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.

This program built for x86_64-pc-linux-gnu

# ld -v
GNU ld (GNU Binutils) 2.18

# ldconfig -V
ldconfig (GNU libc) 2.7
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Written by Andreas Jaeger.

./configure \
--sysconfdir=/etc \
--localstatedir=/var \
--sharedstatedir=/var \
--infodir=/usr/share/info \
--mandir=/usr/share/man \
--datarootdir=/data/openvas \
--enable-gccpipe \
--enable-debug-store \
--enable-debug-ssl \
--enable-cipher \
CFLAGS='-O2 -march=opteron -pipe' \
LDFLAGS='-L/lib -L/usr/lib -L/usr/local/lib' \
CPPFLAGS='-I/usr/include/gentoo-multilib/x86 -I/usr/include 
-I/usr/local/include'

checking for a BSD-compatible install... /usr/bin/install -c
checking for dn_expand in -lresolv... no
configure: error: you need to install resolve library with development files

Relevant section of 'config.log':

configure:8059: checking for a BSD-compatible install
configure:8115: result: /usr/bin/install -c
configure:8133: checking for dn_expand in -lresolv
configure:8168: gcc -pipe -o 
conftest -O2 -march=opteron -pipe -I/usr/include/gentoo-multilib/x86 
-I/usr/include 
 -I/usr/local/include -L/lib -L/usr/lib -L/usr/local/lib conftest.c -lresolv 
 >&5
/tmp/.private/root/cc5j1SRk.o: In function `main':
conftest.c:(.text+0x7): undefined reference to `dn_expand'
collect2: ld returned 1 exit status
configure:8174: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| /* end confdefs.h.  */
|
| /* Override any GCC internal prototype to avoid an error.
|    Use char because int might match the return type of a GCC
|    builtin and then its argument prototype would still apply.  */
| #ifdef __cplusplus
| extern "C"
| #endif
| char dn_expand ();
| int
| main ()
| {
| return dn_expand ();
|   ;
|   return 0;
| }
configure:8192: result: no
configure:8197: error: you need to install resolve library with development 
files

# ldconfig -v | grep resolv
        libresolv.so.2 -> libresolv-2.7.so
        libresolv.so.2 -> libresolv-2.7.so

# ldconfig -p | grep resolv
        libresolv.so.2 (libc6,x86-64, OS ABI: Linux 2.6.9) => 
/lib/libresolv.so.2
        libresolv.so.2 (libc6, OS ABI: Linux 2.6.9) => /lib32/libresolv.so.2
        libresolv.so (libc6,x86-64, OS ABI: Linux 2.6.9) => 
/usr/lib/libresolv.so
        libresolv.so (libc6, OS ABI: Linux 2.6.9) => /usr/lib32/libresolv.so

# grep dn_expand /lib/libresolv.so.2
Binary file /lib/libresolv.so.2 matches
# grep dn_expand /lib32/libresolv.so.2
Binary file /lib32/libresolv.so.2 matches

Any hope of resolution?

--
Ed Vazquez
25 March 2008 15:15:40

A fanatic is one who can't change his mind and won't change the
subject. - Sir Winston Leonard Spencer Churchill

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________
Openvas-discuss mailing list
Openvas-discuss@wald.intevation.org
http://lists.wald.intevation.org/mailman/listinfo/openvas-discuss

Reply via email to