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

From: Birl <sbirl_at_temple.edu>
Date: Fri Aug 01 2003 - 13:40:27 EDT
Many thanks go to  Randy Romero  and  Baranyai Pal  for helping to
troubleshoot the issue.

And many thanks to  Steven M. Christensen  of SunFreeware who managed to
compile a working version for Solaris 9.  Part of his message to me is
below.



Steven:  I just did iplog for Solaris 9 on SPARC for you to test.
Steven:
Steven:  Note that I had to get around a problem with the configure
Steven:  script which seems to be broken.  Also, the help function, as in
Steven:
Steven:  iplog --help
Steven:
Steven:  does not work and I did not want to fiddle with that, I just
Steven:  deleted that functionality.
Steven:
Steven:  The file is at
Steven:
Steven:  ftp://ftp.sunfreeware.com/pub/freeware/sparc/9/iplog-2.2.3-sol9-sparc-local.gz





As it was written on Jul 22, thus Birl spake unto sunmanagers@sunmanagers.org:

Previous update:  Date: Tue, 22 Jul 2003 14:46:55 -0400 (EDT)
Previous update:  From: Birl <sbirl@temple.edu>
Previous update:  To: sunmanagers@sunmanagers.org
Previous update:  Subject: UPDATE: iplog 2.2.3 ./configure error with
Previous update:      existing libpcap in Solaris 9
Previous update:
Previous update:  Trying to configure  iplog  is still failing.  Output from a few commands
Previous update:  appended below.
Previous update:
Previous update:  Any further help is appriciated.(sp?)
Previous update:
Previous update:
Previous update:  TIA
Previous update:
Previous update:
Previous update:
Previous update:  ---------- Forwarded message ----------
Previous update:  Date: Fri, 18 Jul 2003 14:49:56 -0400 (EDT)
Previous update:  From: Birl <sbirl@temple.edu>
Previous update:
Previous update:
Previous update:  Ive tried 'crle' with and without a symlink, deleted config.cache, re-ran
Previous update:  configure and it still failed with the same error.
Previous update:
Previous update:  Im wondering if it's the 0.7.2 version of libpcap that's causing the
Previous update:  problem?
Previous update:
Previous update:  I was able to compile and install  ngrep  with no problems though.
Previous update:
Previous update:
Previous update:
Previous update:
Previous update:  Output of crle
Previous update:  ==================================================================================
Previous update:  # /usr/bin/crle
Previous update:
Previous update:  Configuration file [3]: /var/ld/ld.config
Previous update:    Default Library Path (ELF):   /usr/lib:/usr/local/lib:/usr/local/ssl/lib
Previous update:    Trusted Directories (ELF):    /usr/lib/secure  (system default)
Previous update:
Previous update:  Command line:
Previous update:    crle -c /var/ld/ld.config -l /usr/lib:/usr/local/lib:/usr/local/ssl/lib
Previous update:
Previous update:  ==================================================================================
Previous update:
Previous update:
Previous update:
Previous update:  ==================================================================================
Previous update:  # nm /usr/local/lib/libpcap.a | grep pcap_open_live
Previous update:  [28]    |       492|    1840|FUNC |GLOB |0    |3      |pcap_open_live
Previous update:  [13]    |         0|       0|NOTY |GLOB |0    |UNDEF  |pcap_open_live
Previous update:  ==================================================================================
Previous update:
Previous update:
Previous update:
Previous update:  ==================================================================================
Previous update:  ln -s /usr/local/lib/libpcap.a /usr/lib/libpcap.a      And configure again
Previous update:
Previous update:  Failed.
Previous update:  ==================================================================================
Previous update:
Previous update:
Previous update:
Previous update:
Previous update:  # sh
Previous update:  # CC="gcc -Wl,-lnsl"
Previous update:  # export CC
Previous update:  # ./configure
Previous update:
Previous update:
Previous update:  Output of iplog-2.2.3/config.log
Previous update:  ==================================================================================
Previous update:  This file contains any messages produced by compilers while
Previous update:  running configure, to aid debugging if configure makes a mistake.
Previous update:
Previous update:  configure:570: checking for a BSD compatible install
Previous update:  configure:623: checking whether build environment is sane
Previous update:  configure:680: checking whether make sets ${MAKE}
Previous update:  configure:726: checking for working aclocal
Previous update:  configure:739: checking for working autoconf
Previous update:  configure:752: checking for working automake
Previous update:  configure:765: checking for working autoheader
Previous update:  configure:778: checking for working makeinfo
Previous update:  configure:792: checking whether to enable maintainer-specific portions of Makefiles
Previous update:  configure:819: checking whether make sets ${MAKE}
Previous update:  configure:867: checking for gcc
Previous update:  configure:980: checking whether the C compiler (gcc -Wl,-lnsl  ) works
Previous update:  configure:996: gcc -Wl,-lnsl -o conftest    conftest.c  1>&5
Previous update:  configure:1022: checking whether the C compiler (gcc -Wl,-lnsl  ) is a cross-compiler
Previous update:  configure:1027: checking whether we are using GNU C
Previous update:  configure:1036: gcc -Wl,-lnsl -E conftest.c
Previous update:  gcc: -lnsl: linker input file unused because linking not done
Previous update:  configure:1055: checking whether gcc -Wl,-lnsl accepts -g
Previous update:  configure:1098: checking for a BSD compatible install
Previous update:  configure:1157: checking host system type
Previous update:  configure:1183: checking for __attribute__
Previous update:  configure:1201: gcc -Wl,-lnsl -c -O2  conftest.c 1>&5
Previous update:  gcc: -lnsl: linker input file unused because linking not done
Previous update:  configure:1264: checking for dprintf
Previous update:  configure:1292: gcc -Wl,-lnsl -o conftest -O2   conftest.c  1>&5
Previous update:  Undefined			first referenced
Previous update:   symbol  			    in file
Previous update:  dprintf                             /var/tmp//ccAqszpW.o
Previous update:  ld: fatal: Symbol referencing errors. No output written to conftest
Previous update:  collect2: ld returned 1 exit status
Previous update:  configure: failed program was:
Previous update:  #line 1269 "configure"
Previous update:  #include "confdefs.h"
Previous update:  /* System header to define __stub macros and hopefully few prototypes,
Previous update:      which can conflict with char dprintf(); below.  */
Previous update:  #include <assert.h>
Previous update:  /* Override any gcc2 internal prototype to avoid an error.  */
Previous update:  /* We use char because int might match the return type of a gcc2
Previous update:      builtin and then its argument prototype would still apply.  */
Previous update:  char dprintf();
Previous update:
Previous update:  int main() {
Previous update:
Previous update:  /* The GNU C library defines this for functions which it implements
Previous update:      to always fail with ENOSYS.  Some functions are actually named
Previous update:      something starting with __ and the normal name is an alias.  */
Previous update:  #if defined (__stub_dprintf) || defined (__stub___dprintf)
Previous update:  choke me
Previous update:  #else
Previous update:  dprintf();
Previous update:  #endif
Previous update:
Previous update:  ; return 0; }
Previous update:  configure:1264: checking for vasprintf
Previous update:  configure:1292: gcc -Wl,-lnsl -o conftest -O2   conftest.c  1>&5
Previous update:  Undefined			first referenced
Previous update:   symbol  			    in file
Previous update:  vasprintf                           /var/tmp//cc64JQZx.o
Previous update:  ld: fatal: Symbol referencing errors. No output written to conftest
Previous update:  collect2: ld returned 1 exit status
Previous update:  configure: failed program was:
Previous update:  #line 1269 "configure"
Previous update:  #include "confdefs.h"
Previous update:  /* System header to define __stub macros and hopefully few prototypes,
Previous update:      which can conflict with char vasprintf(); below.  */
Previous update:  #include <assert.h>
Previous update:  /* Override any gcc2 internal prototype to avoid an error.  */
Previous update:  /* We use char because int might match the return type of a gcc2
Previous update:      builtin and then its argument prototype would still apply.  */
Previous update:  char vasprintf();
Previous update:
Previous update:  int main() {
Previous update:
Previous update:  /* The GNU C library defines this for functions which it implements
Previous update:      to always fail with ENOSYS.  Some functions are actually named
Previous update:      something starting with __ and the normal name is an alias.  */
Previous update:  #if defined (__stub_vasprintf) || defined (__stub___vasprintf)
Previous update:  choke me
Previous update:  #else
Previous update:  vasprintf();
Previous update:  #endif
Previous update:
Previous update:  ; return 0; }
Previous update:  configure:1264: checking for getopt_long
Previous update:  configure:1292: gcc -Wl,-lnsl -o conftest -O2   conftest.c  1>&5
Previous update:  Undefined			first referenced
Previous update:   symbol  			    in file
Previous update:  getopt_long                         /var/tmp//ccuf9VXD.o
Previous update:  ld: fatal: Symbol referencing errors. No output written to conftest
Previous update:  collect2: ld returned 1 exit status
Previous update:  configure: failed program was:
Previous update:  #line 1269 "configure"
Previous update:  #include "confdefs.h"
Previous update:  /* System header to define __stub macros and hopefully few prototypes,
Previous update:      which can conflict with char getopt_long(); below.  */
Previous update:  #include <assert.h>
Previous update:  /* Override any gcc2 internal prototype to avoid an error.  */
Previous update:  /* We use char because int might match the return type of a gcc2
Previous update:      builtin and then its argument prototype would still apply.  */
Previous update:  char getopt_long();
Previous update:
Previous update:  int main() {
Previous update:
Previous update:  /* The GNU C library defines this for functions which it implements
Previous update:      to always fail with ENOSYS.  Some functions are actually named
Previous update:      something starting with __ and the normal name is an alias.  */
Previous update:  #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
Previous update:  choke me
Previous update:  #else
Previous update:  getopt_long();
Previous update:  #endif
Previous update:
Previous update:  ; return 0; }
Previous update:  configure:1264: checking for localtime_r
Previous update:  configure:1292: gcc -Wl,-lnsl -o conftest -O2   conftest.c  1>&5
Previous update:  configure:1264: checking for inet_aton
Previous update:  configure:1292: gcc -Wl,-lnsl -o conftest -O2   conftest.c  1>&5
Previous update:  Undefined			first referenced
Previous update:   symbol  			    in file
Previous update:  inet_aton                           /var/tmp//ccEIztfK.o
Previous update:  ld: fatal: Symbol referencing errors. No output written to conftest
Previous update:  collect2: ld returned 1 exit status
Previous update:  configure: failed program was:
Previous update:  #line 1269 "configure"
Previous update:  #include "confdefs.h"
Previous update:  /* System header to define __stub macros and hopefully few prototypes,
Previous update:      which can conflict with char inet_aton(); below.  */
Previous update:  #include <assert.h>
Previous update:  /* Override any gcc2 internal prototype to avoid an error.  */
Previous update:  /* We use char because int might match the return type of a gcc2
Previous update:      builtin and then its argument prototype would still apply.  */
Previous update:  char inet_aton();
Previous update:
Previous update:  int main() {
Previous update:
Previous update:  /* The GNU C library defines this for functions which it implements
Previous update:      to always fail with ENOSYS.  Some functions are actually named
Previous update:      something starting with __ and the normal name is an alias.  */
Previous update:  #if defined (__stub_inet_aton) || defined (__stub___inet_aton)
Previous update:  choke me
Previous update:  #else
Previous update:  inet_aton();
Previous update:  #endif
Previous update:
Previous update:  ; return 0; }
Previous update:  configure:1264: checking for vsnprintf
Previous update:  configure:1292: gcc -Wl,-lnsl -o conftest -O2   conftest.c  1>&5
Previous update:  configure:1264: checking for snprintf
Previous update:  configure:1292: gcc -Wl,-lnsl -o conftest -O2   conftest.c  1>&5
Previous update:  configure:1264: checking for getpagesize
Previous update:  configure:1292: gcc -Wl,-lnsl -o conftest -O2   conftest.c  1>&5
Previous update:  configure:1318: checking how to run the C preprocessor
Previous update:  configure:1339: gcc -Wl,-lnsl -E  conftest.c >/dev/null 2>conftest.out
Previous update:  gcc: -lnsl: linker input file unused because linking not done
Previous update:  configure: failed program was:
Previous update:  #line 1333 "configure"
Previous update:  #include "confdefs.h"
Previous update:  #include <assert.h>
Previous update:  Syntax Error
Previous update:  configure:1356: gcc -Wl,-lnsl -E -traditional-cpp  conftest.c >/dev/null 2>conftest.out
Previous update:  gcc: -lnsl: linker input file unused because linking not done
Previous update:  configure: failed program was:
Previous update:  #line 1350 "configure"
Previous update:  #include "confdefs.h"
Previous update:  #include <assert.h>
Previous update:  Syntax Error
Previous update:  configure:1373: gcc -Wl,-lnsl -nologo -E  conftest.c >/dev/null 2>conftest.out
Previous update:  gcc: unrecognized option `-nologo'
Previous update:  gcc: -lnsl: linker input file unused because linking not done
Previous update:  configure: failed program was:
Previous update:  #line 1367 "configure"
Previous update:  #include "confdefs.h"
Previous update:  #include <assert.h>
Previous update:  Syntax Error
Previous update:  configure:1401: checking for paths.h
Previous update:  configure:1411: /lib/cpp  conftest.c >/dev/null 2>conftest.out
Previous update:  "configure", line 1407: Can't find include file paths.h
Previous update:  configure: failed program was:
Previous update:  #line 1406 "configure"
Previous update:  #include "confdefs.h"
Previous update:  #include <paths.h>
Previous update:  configure:1401: checking for sys/sockio.h
Previous update:  configure:1411: /lib/cpp  conftest.c >/dev/null 2>conftest.out
Previous update:  configure:1439: checking for ANSI C header files
Previous update:  configure:1452: /lib/cpp  conftest.c >/dev/null 2>conftest.out
Previous update:  configure:1519: gcc -Wl,-lnsl -o conftest -O2   conftest.c  1>&5
Previous update:  configure:1543: checking for u_int32_t
Previous update:  configure:1577: checking for uint32_t
Previous update:  configure:1612: checking for u_int16_t
Previous update:  configure:1646: checking for uint16_t
Previous update:  configure:1681: checking for u_int8_t
Previous update:  configure:1715: checking for uint8_t
Previous update:  configure:1750: checking for ipaddr_t
Previous update:  configure:1764: gcc -Wl,-lnsl -c -O2  conftest.c 1>&5
Previous update:  gcc: -lnsl: linker input file unused because linking not done
Previous update:  configure:1780: checking for in_port_t
Previous update:  configure:1794: gcc -Wl,-lnsl -c -O2  conftest.c 1>&5
Previous update:  gcc: -lnsl: linker input file unused because linking not done
Previous update:  configure:1818: checking for pthread_create in -lpthread
Previous update:  configure:1837: gcc -Wl,-lnsl -o conftest -O2 -D_REENTRANT   conftest.c -lpthread   1>&5
Previous update:  configure:2064: checking for pthread_cancel in -lpthread
Previous update:  configure:2083: gcc -Wl,-lnsl -o conftest -O2 -D_REENTRANT   conftest.c -lpthread   1>&5
Previous update:  configure:2119: checking for getservbyport_r
Previous update:  configure:2147: gcc -Wl,-lnsl -o conftest -O2 -D_REENTRANT   conftest.c  1>&5
Previous update:  Undefined			first referenced
Previous update:   symbol  			    in file
Previous update:  getservbyport_r                     /var/tmp//cc6Ena9G.o
Previous update:  ld: fatal: Symbol referencing errors. No output written to conftest
Previous update:  collect2: ld returned 1 exit status
Previous update:  configure: failed program was:
Previous update:  #line 2124 "configure"
Previous update:  #include "confdefs.h"
Previous update:  /* System header to define __stub macros and hopefully few prototypes,
Previous update:      which can conflict with char getservbyport_r(); below.  */
Previous update:  #include <assert.h>
Previous update:  /* Override any gcc2 internal prototype to avoid an error.  */
Previous update:  /* We use char because int might match the return type of a gcc2
Previous update:      builtin and then its argument prototype would still apply.  */
Previous update:  char getservbyport_r();
Previous update:
Previous update:  int main() {
Previous update:
Previous update:  /* The GNU C library defines this for functions which it implements
Previous update:      to always fail with ENOSYS.  Some functions are actually named
Previous update:      something starting with __ and the normal name is an alias.  */
Previous update:  #if defined (__stub_getservbyport_r) || defined (__stub___getservbyport_r)
Previous update:  choke me
Previous update:  #else
Previous update:  getservbyport_r();
Previous update:  #endif
Previous update:
Previous update:  ; return 0; }
Previous update:  configure:2174: checking for getservbyport_r in -lpthread
Previous update:  configure:2193: gcc -Wl,-lnsl -o conftest -O2 -D_REENTRANT   conftest.c -lpthread   1>&5
Previous update:  Undefined			first referenced
Previous update:   symbol  			    in file
Previous update:  getservbyport_r                     /var/tmp//cckYdj6h.o
Previous update:  ld: fatal: Symbol referencing errors. No output written to conftest
Previous update:  collect2: ld returned 1 exit status
Previous update:  configure: failed program was:
Previous update:  #line 2182 "configure"
Previous update:  #include "confdefs.h"
Previous update:  /* Override any gcc2 internal prototype to avoid an error.  */
Previous update:  /* We use char because int might match the return type of a gcc2
Previous update:      builtin and then its argument prototype would still apply.  */
Previous update:  char getservbyport_r();
Previous update:
Previous update:  int main() {
Previous update:  getservbyport_r()
Previous update:  ; return 0; }
Previous update:  configure:2174: checking for getservbyport_r in -lpthread
Previous update:  configure:2174: checking for getservbyport_r in -lsocket
Previous update:  configure:2193: gcc -Wl,-lnsl -o conftest -O2 -D_REENTRANT   conftest.c -lsocket   1>&5
Previous update:  configure:2231: checking whether getservbyport_r takes 6 args
Previous update:  configure:2242: gcc -Wl,-lnsl -c -O2 -D_REENTRANT  conftest.c 1>&5
Previous update:  configure: In function `main':
Previous update:  configure:2238: too many arguments to function `getservbyport_r'
Previous update:  configure: failed program was:
Previous update:  #line 2233 "configure"
Previous update:  #include "confdefs.h"
Previous update:  #include <unistd.h>
Previous update:  					#include <sys/types.h>
Previous update:  					#include <netdb.h>
Previous update:  int main() {
Previous update:  getservbyport_r(0, NULL, NULL, NULL, 0, NULL);
Previous update:  ; return 0; }
Previous update:  configure:2261: checking whether getservbyport_r takes 5 args
Previous update:  configure:2272: gcc -Wl,-lnsl -c -O2 -D_REENTRANT  conftest.c 1>&5
Previous update:  gcc: -lnsl: linker input file unused because linking not done
Previous update:  configure:2333: checking for gethostbyaddr_r
Previous update:  configure:2361: gcc -Wl,-lnsl -o conftest -O2 -D_REENTRANT   conftest.c  1>&5
Previous update:  configure:2445: checking whether gethostbyaddr_r takes 8 args
Previous update:  configure:2456: gcc -Wl,-lnsl -c -O2 -D_REENTRANT  conftest.c 1>&5
Previous update:  configure: In function `main':
Previous update:  configure:2452: too many arguments to function `gethostbyaddr_r'
Previous update:  configure: failed program was:
Previous update:  #line 2447 "configure"
Previous update:  #include "confdefs.h"
Previous update:  #include <unistd.h>
Previous update:  					#include <sys/types.h>
Previous update:  					#include <netdb.h>
Previous update:  int main() {
Previous update:  gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL, NULL);
Previous update:  ; return 0; }
Previous update:  configure:2475: checking whether gethostbyaddr_r takes 7 args
Previous update:  configure:2486: gcc -Wl,-lnsl -c -O2 -D_REENTRANT  conftest.c 1>&5
Previous update:  gcc: -lnsl: linker input file unused because linking not done
Previous update:  configure:2547: checking for getprotobynumber_r
Previous update:  configure:2575: gcc -Wl,-lnsl -o conftest -O2 -D_REENTRANT   conftest.c  1>&5
Previous update:  Undefined			first referenced
Previous update:   symbol  			    in file
Previous update:  getprotobynumber_r                  /var/tmp//ccGvHIc4.o
Previous update:  ld: fatal: Symbol referencing errors. No output written to conftest
Previous update:  collect2: ld returned 1 exit status
Previous update:  configure: failed program was:
Previous update:  #line 2552 "configure"
Previous update:  #include "confdefs.h"
Previous update:  /* System header to define __stub macros and hopefully few prototypes,
Previous update:      which can conflict with char getprotobynumber_r(); below.  */
Previous update:  #include <assert.h>
Previous update:  /* Override any gcc2 internal prototype to avoid an error.  */
Previous update:  /* We use char because int might match the return type of a gcc2
Previous update:      builtin and then its argument prototype would still apply.  */
Previous update:  char getprotobynumber_r();
Previous update:
Previous update:  int main() {
Previous update:
Previous update:  /* The GNU C library defines this for functions which it implements
Previous update:      to always fail with ENOSYS.  Some functions are actually named
Previous update:      something starting with __ and the normal name is an alias.  */
Previous update:  #if defined (__stub_getprotobynumber_r) || defined (__stub___getprotobynumber_r)
Previous update:  choke me
Previous update:  #else
Previous update:  getprotobynumber_r();
Previous update:  #endif
Previous update:
Previous update:  ; return 0; }
Previous update:  configure:2602: checking for getprotobynumber_r in -lsocket
Previous update:  configure:2621: gcc -Wl,-lnsl -o conftest -O2 -D_REENTRANT   conftest.c -lsocket   1>&5
Previous update:  configure:2659: checking whether getprotobynumber_r takes 5 args
Previous update:  configure:2670: gcc -Wl,-lnsl -c -O2 -D_REENTRANT  conftest.c 1>&5
Previous update:  configure: In function `main':
Previous update:  configure:2666: too many arguments to function `getprotobynumber_r'
Previous update:  configure: failed program was:
Previous update:  #line 2661 "configure"
Previous update:  #include "confdefs.h"
Previous update:  #include <unistd.h>
Previous update:  					#include <sys/types.h>
Previous update:  					#include <netdb.h>
Previous update:  int main() {
Previous update:  getprotobynumber_r(0, NULL, NULL, 0, NULL);
Previous update:  ; return 0; }
Previous update:  configure:2689: checking whether getprotobynumber_r takes 4 args
Previous update:  configure:2700: gcc -Wl,-lnsl -c -O2 -D_REENTRANT  conftest.c 1>&5
Previous update:  gcc: -lnsl: linker input file unused because linking not done
Previous update:  configure:2773: checking for pcap_open_live in -lpcap
Previous update:  configure:2792: gcc -Wl,-lnsl -o conftest -O2 -D_REENTRANT   conftest.c -lpcap   1>&5
Previous update:  Undefined			first referenced
Previous update:   symbol  			    in file
Previous update:  getprotobyname                      /usr/local/lib/gcc-lib/sparc-sun-solaris2.9/3.2/../../../libpcap.a(nametoaddr.o)
Previous update:  getservbyname                       /usr/local/lib/gcc-lib/sparc-sun-solaris2.9/3.2/../../../libpcap.a(nametoaddr.o)
Previous update:  getnetbyname                        /usr/local/lib/gcc-lib/sparc-sun-solaris2.9/3.2/../../../libpcap.a(nametoaddr.o)
Previous update:  ld: fatal: Symbol referencing errors. No output written to conftest
Previous update:  collect2: ld returned 1 exit status
Previous update:  configure: failed program was:
Previous update:  #line 2781 "configure"
Previous update:  #include "confdefs.h"
Previous update:  /* Override any gcc2 internal prototype to avoid an error.  */
Previous update:  /* We use char because int might match the return type of a gcc2
Previous update:      builtin and then its argument prototype would still apply.  */
Previous update:  char pcap_open_live();
Previous update:
Previous update:  int main() {
Previous update:  pcap_open_live()
Previous update:  ; return 0; }
Previous update:  ==================================================================================
Previous update:  _______________________________________________
Previous update:  sunmanagers mailing list
Previous update:  sunmanagers@sunmanagers.org
Previous update:  http://www.sunmanagers.org/mailman/listinfo/sunmanagers
Previous update:
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
Received on Fri Aug 1 13:44:17 2003

This archive was generated by hypermail 2.1.8 : Thu Mar 03 2016 - 06:43:17 EST