UPDATE: iplog 2.2.3 ./configure error with existing libpcap in Solaris 9

From: Birl (sbirl@temple.edu)
Date: Tue Jul 22 2003 - 14:46:55 EDT


Trying to configure iplog is still failing. Output from a few commands
appended below.

Any further help is appriciated.(sp?)

TIA

---------- Forwarded message ----------
Date: Fri, 18 Jul 2003 14:49:56 -0400 (EDT)
From: Birl <sbirl@temple.edu>

Ive tried 'crle' with and without a symlink, deleted config.cache, re-ran
configure and it still failed with the same error.

Im wondering if it's the 0.7.2 version of libpcap that's causing the
problem?

I was able to compile and install ngrep with no problems though.

Output of crle
==================================================================================
# /usr/bin/crle

Configuration file [3]: /var/ld/ld.config
  Default Library Path (ELF): /usr/lib:/usr/local/lib:/usr/local/ssl/lib
  Trusted Directories (ELF): /usr/lib/secure (system default)

Command line:
  crle -c /var/ld/ld.config -l /usr/lib:/usr/local/lib:/usr/local/ssl/lib

==================================================================================

==================================================================================
# nm /usr/local/lib/libpcap.a | grep pcap_open_live
[28] | 492| 1840|FUNC |GLOB |0 |3 |pcap_open_live
[13] | 0| 0|NOTY |GLOB |0 |UNDEF |pcap_open_live
==================================================================================

==================================================================================
ln -s /usr/local/lib/libpcap.a /usr/lib/libpcap.a And configure again

Failed.
==================================================================================

# sh
# CC="gcc -Wl,-lnsl"
# export CC
# ./configure

Output of iplog-2.2.3/config.log
==================================================================================
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

configure:570: checking for a BSD compatible install
configure:623: checking whether build environment is sane
configure:680: checking whether make sets ${MAKE}
configure:726: checking for working aclocal
configure:739: checking for working autoconf
configure:752: checking for working automake
configure:765: checking for working autoheader
configure:778: checking for working makeinfo
configure:792: checking whether to enable maintainer-specific portions of Makefiles
configure:819: checking whether make sets ${MAKE}
configure:867: checking for gcc
configure:980: checking whether the C compiler (gcc -Wl,-lnsl ) works
configure:996: gcc -Wl,-lnsl -o conftest conftest.c 1>&5
configure:1022: checking whether the C compiler (gcc -Wl,-lnsl ) is a cross-compiler
configure:1027: checking whether we are using GNU C
configure:1036: gcc -Wl,-lnsl -E conftest.c
gcc: -lnsl: linker input file unused because linking not done
configure:1055: checking whether gcc -Wl,-lnsl accepts -g
configure:1098: checking for a BSD compatible install
configure:1157: checking host system type
configure:1183: checking for __attribute__
configure:1201: gcc -Wl,-lnsl -c -O2 conftest.c 1>&5
gcc: -lnsl: linker input file unused because linking not done
configure:1264: checking for dprintf
configure:1292: gcc -Wl,-lnsl -o conftest -O2 conftest.c 1>&5
Undefined first referenced
 symbol in file
dprintf /var/tmp//ccAqszpW.o
ld: fatal: Symbol referencing errors. No output written to conftest
collect2: ld returned 1 exit status
configure: failed program was:
#line 1269 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char dprintf(); below. */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply. */
char dprintf();

int main() {

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS. Some functions are actually named
    something starting with __ and the normal name is an alias. */
#if defined (__stub_dprintf) || defined (__stub___dprintf)
choke me
#else
dprintf();
#endif

; return 0; }
configure:1264: checking for vasprintf
configure:1292: gcc -Wl,-lnsl -o conftest -O2 conftest.c 1>&5
Undefined first referenced
 symbol in file
vasprintf /var/tmp//cc64JQZx.o
ld: fatal: Symbol referencing errors. No output written to conftest
collect2: ld returned 1 exit status
configure: failed program was:
#line 1269 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char vasprintf(); below. */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply. */
char vasprintf();

int main() {

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS. Some functions are actually named
    something starting with __ and the normal name is an alias. */
#if defined (__stub_vasprintf) || defined (__stub___vasprintf)
choke me
#else
vasprintf();
#endif

; return 0; }
configure:1264: checking for getopt_long
configure:1292: gcc -Wl,-lnsl -o conftest -O2 conftest.c 1>&5
Undefined first referenced
 symbol in file
getopt_long /var/tmp//ccuf9VXD.o
ld: fatal: Symbol referencing errors. No output written to conftest
collect2: ld returned 1 exit status
configure: failed program was:
#line 1269 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char getopt_long(); below. */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply. */
char getopt_long();

int main() {

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS. Some functions are actually named
    something starting with __ and the normal name is an alias. */
#if defined (__stub_getopt_long) || defined (__stub___getopt_long)
choke me
#else
getopt_long();
#endif

; return 0; }
configure:1264: checking for localtime_r
configure:1292: gcc -Wl,-lnsl -o conftest -O2 conftest.c 1>&5
configure:1264: checking for inet_aton
configure:1292: gcc -Wl,-lnsl -o conftest -O2 conftest.c 1>&5
Undefined first referenced
 symbol in file
inet_aton /var/tmp//ccEIztfK.o
ld: fatal: Symbol referencing errors. No output written to conftest
collect2: ld returned 1 exit status
configure: failed program was:
#line 1269 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char inet_aton(); below. */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply. */
char inet_aton();

int main() {

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS. Some functions are actually named
    something starting with __ and the normal name is an alias. */
#if defined (__stub_inet_aton) || defined (__stub___inet_aton)
choke me
#else
inet_aton();
#endif

; return 0; }
configure:1264: checking for vsnprintf
configure:1292: gcc -Wl,-lnsl -o conftest -O2 conftest.c 1>&5
configure:1264: checking for snprintf
configure:1292: gcc -Wl,-lnsl -o conftest -O2 conftest.c 1>&5
configure:1264: checking for getpagesize
configure:1292: gcc -Wl,-lnsl -o conftest -O2 conftest.c 1>&5
configure:1318: checking how to run the C preprocessor
configure:1339: gcc -Wl,-lnsl -E conftest.c >/dev/null 2>conftest.out
gcc: -lnsl: linker input file unused because linking not done
configure: failed program was:
#line 1333 "configure"
#include "confdefs.h"
#include <assert.h>
Syntax Error
configure:1356: gcc -Wl,-lnsl -E -traditional-cpp conftest.c >/dev/null 2>conftest.out
gcc: -lnsl: linker input file unused because linking not done
configure: failed program was:
#line 1350 "configure"
#include "confdefs.h"
#include <assert.h>
Syntax Error
configure:1373: gcc -Wl,-lnsl -nologo -E conftest.c >/dev/null 2>conftest.out
gcc: unrecognized option `-nologo'
gcc: -lnsl: linker input file unused because linking not done
configure: failed program was:
#line 1367 "configure"
#include "confdefs.h"
#include <assert.h>
Syntax Error
configure:1401: checking for paths.h
configure:1411: /lib/cpp conftest.c >/dev/null 2>conftest.out
"configure", line 1407: Can't find include file paths.h
configure: failed program was:
#line 1406 "configure"
#include "confdefs.h"
#include <paths.h>
configure:1401: checking for sys/sockio.h
configure:1411: /lib/cpp conftest.c >/dev/null 2>conftest.out
configure:1439: checking for ANSI C header files
configure:1452: /lib/cpp conftest.c >/dev/null 2>conftest.out
configure:1519: gcc -Wl,-lnsl -o conftest -O2 conftest.c 1>&5
configure:1543: checking for u_int32_t
configure:1577: checking for uint32_t
configure:1612: checking for u_int16_t
configure:1646: checking for uint16_t
configure:1681: checking for u_int8_t
configure:1715: checking for uint8_t
configure:1750: checking for ipaddr_t
configure:1764: gcc -Wl,-lnsl -c -O2 conftest.c 1>&5
gcc: -lnsl: linker input file unused because linking not done
configure:1780: checking for in_port_t
configure:1794: gcc -Wl,-lnsl -c -O2 conftest.c 1>&5
gcc: -lnsl: linker input file unused because linking not done
configure:1818: checking for pthread_create in -lpthread
configure:1837: gcc -Wl,-lnsl -o conftest -O2 -D_REENTRANT conftest.c -lpthread 1>&5
configure:2064: checking for pthread_cancel in -lpthread
configure:2083: gcc -Wl,-lnsl -o conftest -O2 -D_REENTRANT conftest.c -lpthread 1>&5
configure:2119: checking for getservbyport_r
configure:2147: gcc -Wl,-lnsl -o conftest -O2 -D_REENTRANT conftest.c 1>&5
Undefined first referenced
 symbol in file
getservbyport_r /var/tmp//cc6Ena9G.o
ld: fatal: Symbol referencing errors. No output written to conftest
collect2: ld returned 1 exit status
configure: failed program was:
#line 2124 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char getservbyport_r(); below. */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply. */
char getservbyport_r();

int main() {

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS. Some functions are actually named
    something starting with __ and the normal name is an alias. */
#if defined (__stub_getservbyport_r) || defined (__stub___getservbyport_r)
choke me
#else
getservbyport_r();
#endif

; return 0; }
configure:2174: checking for getservbyport_r in -lpthread
configure:2193: gcc -Wl,-lnsl -o conftest -O2 -D_REENTRANT conftest.c -lpthread 1>&5
Undefined first referenced
 symbol in file
getservbyport_r /var/tmp//cckYdj6h.o
ld: fatal: Symbol referencing errors. No output written to conftest
collect2: ld returned 1 exit status
configure: failed program was:
#line 2182 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply. */
char getservbyport_r();

int main() {
getservbyport_r()
; return 0; }
configure:2174: checking for getservbyport_r in -lpthread
configure:2174: checking for getservbyport_r in -lsocket
configure:2193: gcc -Wl,-lnsl -o conftest -O2 -D_REENTRANT conftest.c -lsocket 1>&5
configure:2231: checking whether getservbyport_r takes 6 args
configure:2242: gcc -Wl,-lnsl -c -O2 -D_REENTRANT conftest.c 1>&5
configure: In function `main':
configure:2238: too many arguments to function `getservbyport_r'
configure: failed program was:
#line 2233 "configure"
#include "confdefs.h"
#include <unistd.h>
                                        #include <sys/types.h>
                                        #include <netdb.h>
int main() {
getservbyport_r(0, NULL, NULL, NULL, 0, NULL);
; return 0; }
configure:2261: checking whether getservbyport_r takes 5 args
configure:2272: gcc -Wl,-lnsl -c -O2 -D_REENTRANT conftest.c 1>&5
gcc: -lnsl: linker input file unused because linking not done
configure:2333: checking for gethostbyaddr_r
configure:2361: gcc -Wl,-lnsl -o conftest -O2 -D_REENTRANT conftest.c 1>&5
configure:2445: checking whether gethostbyaddr_r takes 8 args
configure:2456: gcc -Wl,-lnsl -c -O2 -D_REENTRANT conftest.c 1>&5
configure: In function `main':
configure:2452: too many arguments to function `gethostbyaddr_r'
configure: failed program was:
#line 2447 "configure"
#include "confdefs.h"
#include <unistd.h>
                                        #include <sys/types.h>
                                        #include <netdb.h>
int main() {
gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL, NULL);
; return 0; }
configure:2475: checking whether gethostbyaddr_r takes 7 args
configure:2486: gcc -Wl,-lnsl -c -O2 -D_REENTRANT conftest.c 1>&5
gcc: -lnsl: linker input file unused because linking not done
configure:2547: checking for getprotobynumber_r
configure:2575: gcc -Wl,-lnsl -o conftest -O2 -D_REENTRANT conftest.c 1>&5
Undefined first referenced
 symbol in file
getprotobynumber_r /var/tmp//ccGvHIc4.o
ld: fatal: Symbol referencing errors. No output written to conftest
collect2: ld returned 1 exit status
configure: failed program was:
#line 2552 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char getprotobynumber_r(); below. */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply. */
char getprotobynumber_r();

int main() {

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS. Some functions are actually named
    something starting with __ and the normal name is an alias. */
#if defined (__stub_getprotobynumber_r) || defined (__stub___getprotobynumber_r)
choke me
#else
getprotobynumber_r();
#endif

; return 0; }
configure:2602: checking for getprotobynumber_r in -lsocket
configure:2621: gcc -Wl,-lnsl -o conftest -O2 -D_REENTRANT conftest.c -lsocket 1>&5
configure:2659: checking whether getprotobynumber_r takes 5 args
configure:2670: gcc -Wl,-lnsl -c -O2 -D_REENTRANT conftest.c 1>&5
configure: In function `main':
configure:2666: too many arguments to function `getprotobynumber_r'
configure: failed program was:
#line 2661 "configure"
#include "confdefs.h"
#include <unistd.h>
                                        #include <sys/types.h>
                                        #include <netdb.h>
int main() {
getprotobynumber_r(0, NULL, NULL, 0, NULL);
; return 0; }
configure:2689: checking whether getprotobynumber_r takes 4 args
configure:2700: gcc -Wl,-lnsl -c -O2 -D_REENTRANT conftest.c 1>&5
gcc: -lnsl: linker input file unused because linking not done
configure:2773: checking for pcap_open_live in -lpcap
configure:2792: gcc -Wl,-lnsl -o conftest -O2 -D_REENTRANT conftest.c -lpcap 1>&5
Undefined first referenced
 symbol in file
getprotobyname /usr/local/lib/gcc-lib/sparc-sun-solaris2.9/3.2/../../../libpcap.a(nametoaddr.o)
getservbyname /usr/local/lib/gcc-lib/sparc-sun-solaris2.9/3.2/../../../libpcap.a(nametoaddr.o)
getnetbyname /usr/local/lib/gcc-lib/sparc-sun-solaris2.9/3.2/../../../libpcap.a(nametoaddr.o)
ld: fatal: Symbol referencing errors. No output written to conftest
collect2: ld returned 1 exit status
configure: failed program was:
#line 2781 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply. */
char pcap_open_live();

int main() {
pcap_open_live()
; return 0; }
==================================================================================
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:26:47 EDT