tcpdump mailing list archives

Re: SCO libpcap


From: "sufei7099" <sufei7099 () gmail com>
Date: Thu, 12 Jun 2008 10:14:53 +0800

The output of ./configure is :
 # ./configure
checking for a BSD-compatible install... config/install-sh -c
checking whether build environment is sane... yes
checking whether make sets $(MAKE)... yes
checking for working aclocal-1.4... missing
checking for working autoconf... missing
checking for working automake-1.4... missing
checking for working autoheader... missing
checking for working makeinfo... missing
checking build system type... i686-pc-sco3.2v5.0.7
checking host system type... i686-pc-sco3.2v5.0.7
checking for gcc... no
checking for cc... cc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... no
checking whether cc accepts -g... yes
checking for cc option to accept ANSI C... none needed
checking that cc handles ansi prototypes... yes
checking for gawk... no
checking for mawk... no
checking for nawk... nawk
checking for gcc... (cached) cc
checking whether we are using the GNU C compiler... (cached) no
checking whether cc accepts -g... (cached) yes
checking for cc option to accept ANSI C... (cached) none needed
checking for a BSD-compatible install... config/install-sh -c
checking whether ln -s works... yes
checking for bison... no
checking for byacc... no
checking for a sed that does not truncate output... /bin/sed
checking for egrep... grep -E
checking for non-GNU ld... /bin/ld
checking if the linker (/bin/ld) is GNU ld... no
checking for /bin/ld option to reload object files... -r
checking for BSD-compatible nm... /bin/nm -p
checking how to recognise dependent libraries... pass_all
checking whether the C compiler needs -belf... yes
checking how to run the C preprocessor... cc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for g++... no
checking for c++... no
checking for gpp... no
checking for aCC... no
checking for CC... CC
checking whether we are using the GNU C++ compiler... no
checking whether CC accepts -g... yes
checking how to run the C++ preprocessor... CC -E
checking for g77... no
checking for f77... no
checking for xlf... no
checking for frt... no
checking for pgf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for f90... no
checking for xlf90... no
checking for pgf90... no
checking for epcf90... no
checking for f95... no
checking for fort... no
checking for xlf95... no
checking for ifc... no
checking for efc... no
checking for pgf95... no
checking for lf95... no
checking for gfortran... no
checking whether we are using the GNU Fortran 77 compiler... no
checking whether  accepts -g... no
checking the maximum length of command line arguments... 32768
checking command to parse /bin/nm -p output from cc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... :
checking for strip... strip
checking if cc static flag  works... yes
checking for cc option to produce PIC... -Kpic
checking if cc PIC flag -Kpic works... yes
checking if cc supports -c -o file.o... yes
checking whether the cc linker (/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... sco3.2v5.0.7 ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... no
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... no
checking whether to build static libraries... yes
configure: creating libtool
appending configuration tag "CXX" to libtool
checking whether the CC linker (/bin/ld) supports shared libraries... no
checking for CC option to produce PIC... -fPIC
checking if CC PIC flag -fPIC works... no
checking if CC supports -c -o file.o... no
checking whether the CC linker (/bin/ld) supports shared libraries... no
checking dynamic linker characteristics... sco3.2v5.0.7 ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... no
appending configuration tag "F77" to libtool
checking for ANSI C header files... (cached) yes
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking sys/ioccom.h usability... no
checking sys/ioccom.h presence... no
checking for sys/ioccom.h... no
checking sys/sockio.h usability... no
checking sys/sockio.h presence... no
checking for sys/sockio.h... no
checking ifaddrs.h usability... no
checking ifaddrs.h presence... no
checking for ifaddrs.h... no
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking for netinet/if_ether.h... no
checking for inline... no
checking for __attribute__... no
checking for u_int8_t using cc... no
checking for u_int16_t using cc... no
checking for u_int32_t using cc... no
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for off_t... yes
checking for pid_t... yes
checking for size_t... yes
checking for struct stat.st_rdev... yes
checking whether time.h and sys/time.h may both be included... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking whether sys/types.h defines makedev... no
checking sys/mkdev.h usability... no
checking sys/mkdev.h presence... no
checking for sys/mkdev.h... no
checking sys/sysmacros.h usability... yes
checking sys/sysmacros.h presence... yes
checking for sys/sysmacros.h... yes
checking return type of signal handlers... void
checking for ether_hostton... no
checking for strerror... yes
checking for strlcpy... yes
checking for vsnprintf... yes
checking for snprintf... yes
checking if --disable-protochain option is specified... enabled
checking packet capture type... dlpi
checking generating other os sources... pcap-bpf.c pcap-pf.c pcap-enet.c pcap-snit.c pcap-nit.c pcap-linux.c 
pcap-snoop.c pcap-enet.c pcap-null.c pcap-dag.c pcap-win32.c
checking for getifaddrs... no
checking whether we have SIOCGLIFCONF... no
checking if --enable-ipv6 option is specified... no
checking whether to build optimizer debugging code... no
checking whether to build parser debugging code... no
checking sys/bufmod.h usability... no
checking sys/bufmod.h presence... no
checking for sys/bufmod.h... no
checking sys/dlpi_ext.h usability... no
checking sys/dlpi_ext.h presence... no
checking for sys/dlpi_ext.h... no
checking for /dev/dlpi device... no
checking for /dev/dlpi directory... no
checking whether we have /proc/net/dev... no
checking whether we have DAG API... no
checking for flex... no
checking for bison... no
checking for capable lex... yes
checking if sockaddr struct has sa_len member... no
checking if sockaddr_storage struct exists... no
checking if dl_hp_ppa_info_t struct has dl_module_id_1 member... no
checking if unaligned accesses fail... no
checking for a BSD-compatible install... config/install-sh -c
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing default-1 commands



The output of  "ls -l /usr/include/sys/dlpi.h" is:
   lrwxrwxrwx   1 root     root          38 Jun  4 11:46 /usr/include/sys/dlpi.h -> 
/opt/K/SCO/lli/5.0.7a/llicompat/dlpi.h


The output of "ls -l /usr/local/include/sys/dlpi.h" is:
   ls: /usr/local/include/sys/dlpi.h not found: No such file or directory (error 2)

The output of "egrep DL_PROMISC_PHYS /usr/include/sys/*.h /usr/local/include/sys/*.h" is:
 /usr/include/sys/attdlpi.h:#define      DL_PROMISC_PHYS         0x01    /* promiscuous mode at phys level */
egrep: cannot open file /usr/local/include/sys/*.h for reading: No such file or directory (error 2)
  




sufei7099
2008-06-12



发件人: Guy Harris
发送时间: 2008-06-12 10:03:12
收件人: tcpdump-workers () lists tcpdump org
抄送: 
主题: Re: [tcpdump-workers] SCO libpcap


On Jun 11, 2008, at 6:44 PM, sufei7099 wrote:

the following is the faults when I run make after run ./configure:

What was the output of ./configure?

"pcap-dlpi.c", line 699: error: undefined symbol: DL_PROMISC_PHYS

Googling for DL_PROMISC_PHYS on any sco.com site found no hits.

This could mean that SCO's version of DLPI is sufficiently different  
from the DLPI in, for example, Solaris or HP-UX that libpcap would  
have to be changed significantly to work on SCO OpenServer.  The page at

http://osr600doc.sco.com/en/HDK_concepts/ddT_dlpi.html

further suggests that they do things very differently, and therefore  
that completely new libpcap code would have to be written to support  
SCO's various flavors of UN*X.

Or maybe they define all those values, but in different header files  
than  <sys/dlpi.h > or files it includes; that would be a bit annoying,  
given that, for example, this stuff from the DLPI specification:

http://www.opengroup.org/onlinepubs/9638599/apdxf.htm

indicates that  <sys/dlpi.h > is supposed to define DL_PROMISC_PHYS.

Could you do

ls -l /usr/include/sys/dlpi.h
ls -l /usr/local/include/sys/dlpi.h
egrep DL_PROMISC_PHYS /usr/include/sys/*.h /usr/local/include/sys/*.h

and send us the output of those commands?
-
This is the tcpdump-workers list.
Visit https://cod.sandelman.ca/ to unsubscribe.
-
This is the tcpdump-workers list.
Visit https://cod.sandelman.ca/ to unsubscribe.

Current thread: