Newsgroup: it.comp.os.unix
Titolo: tcpick viene compilato sulla tua distro?

Dunque, sto creando uno sniffer che traccia, memorizza e salva le
connessioni tcp. Il problema e' che vorrei testare se questo software e'
compilabile su tutte le piattaforme unix, e, implicitamente su tutte le
distro linux. Hai voglia di collaborare? E' semplice: scarica il pacchetto
da qui: 
https://sourceforge.net/projects/tcpick/
 e poi posta un messaggio
specificando se il "./configure" e il "make" sono andati a buon fine!
(specificando, naturalmente il sistema operativo utilizzato, il kernel
ecc...). La lista dei sistemi testati sara' inclusa (assieme al tuo nome,
se non desideri diversamente) nel file PLATFORMS, presente nei prossimi
pacchetti.
Grazie a tutti per la collaborazione
DuskDruid
Ah, dimenticavo: sulla mia Slackware 9.1 con gcc 3.2.3 e kernel 2.4.22
tcpick viene compilato perfettamente!
(messaggio originariamente postato sul forum di 
hancproject.org
)

provato su un mac con kernel darwin 7.2.
./configure = ok
make = errori (eccoli:)
..
tcpick.c: In function `datalinktoa':
tcpick.c:170: error: `DLT_PPP_ETHER' undeclared (first use in this 
function)
tcpick.c:170: error: (Each undeclared identifier is reported only once
tcpick.c:170: error: for each function it appears in.)
tcpick.c:195: error: `DLT_LTALK' undeclared (first use in this function)
make[1]: *** [tcpick.o] Error 1
make: *** [all] Error 2

 distro linux. 
System: IBM AIX 4.3.3.11
[avaresio@e3112] ./configure
checking for a BSD-compatible install... ./install-sh -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... no
checking for nawk... nawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking for C compiler default output... 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... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc
checking for pcap_lookupdev in -lpcap... yes
checking for pcap_lookupnet in -lpcap... yes
checking for pcap_open_live in -lpcap... yes
checking for pcap_compile in -lpcap... yes
checking for pcap_setfilter in -lpcap... yes
checking for pcap_datalink in -lpcap... yes
checking for pcap_loop in -lpcap... yes
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -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... no
checking for unistd.h... yes
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking netinet/in_systm.h usability... yes
checking netinet/in_systm.h presence... yes
checking for netinet/in_systm.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking netinet/ip.h usability... no
checking netinet/ip.h presence... yes
configure: WARNING: netinet/ip.h: present but cannot be compiled
configure: WARNING: netinet/ip.h: check for missing prerequisite headers?
configure: WARNING: netinet/ip.h: proceeding with the preprocessor's result
configure: WARNING:     ## ------------------------------------ ##
configure: WARNING:     ## Report this to 
bug-au...@gnu.org
. ##
configure: WARNING:     ## ------------------------------------ ##
checking for netinet/ip.h... yes
checking for stdlib.h... (cached) yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking for unistd.h... (cached) yes
checking getopt.h usability... no                   <---
checking getopt.h presence... no                    <---
checking for getopt.h... no                         <---
checking pcap.h usability... yes
checking pcap.h presence... yes
checking for pcap.h... yes
checking pcap/pcap.h usability... no
checking pcap/pcap.h presence... no
checking for pcap/pcap.h... no
checking for an ANSI C-conforming const... yes
checking for gethostbyaddr... yes
checking for inet_ntoa... yes
checking for strdup... yes
checking for strtol... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
config.status: executing depfiles commands
[avaresio@e3112] gmake
gmake  all-am
gmake[1]: Entering directory `/obj/Develop/tcpick-0.1.17'
source='display.c' object='display.o' libtool=no \
depfile='.deps/display.Po' tmpdepfile='.deps/display.TPo' \
depmode=gcc /bin/sh ./depcomp \
gcc -DHAVE_CONFIG_H -I. -I. -I.     -g -O2 -c `test -f 'display.c' || echo 
'./'`display.c
In file included from display.c:19:
myheaders.h:8: getopt.h: A file or directory in the path name does not exist.
gmake[1]: *** [display.o] Error 1
gmake[1]: Leaving directory `/obj/Develop/tcpick-0.1.17'
gmake: *** [all] Error 2
... Su AIX manca getopt.h, ma esiste la funzione getopt() in 
/usr/include/unistd.h, purtroppo non la getopt_long().
E' possibile installare SW addizionale, normalmente sotto /usr/local. Nel
mio caso pcap.h si trova li' e viene riconosciuto modificando
CPPFLAGS proma del ./configure.
-- 
  Alberto 'JCN-9000' Varesio AKA BlueRider      AIX pSeries System Admin
  Datavision PLM  -  Cso Svizzera 185         Biker on HONDA CB500 - LHG
  10149 Torino - ITALY  
+390117710276
          Jeeper on Sport TJ - Wave
  A.Varesio(@)datavisionplm(.)com    A.Varesio(@)dv-plm(.)dnsalias(.)net
  Please 
http://www.fsf.org/philosophy/no-word-attachments.html
, thanks!
-- 
  BOFH Excuse: Netscape has crashed

 /usr/include/unistd.h, purtroppo non la getopt_long().
strano pero' come funzionano i tool gnu forniti in rpm da ibm ?
mi pare che abbiano il supporto x la getopt_long ...
 
-- 
- Perche' le bionde si lavano i capelli nel lavandino?
- Perche', tu dove la lavi la verdura?
                -- Da it.hobby.umorismo

 tcpick.c:195: error: `DLT_LTALK' undeclared (first use in this function)
Grazie mille a tutti per le segnalazioni :)
quando uscira' la versione 0.1.19/20 penso che avro' risolto una bella
fetta dei problemi di incompatibilita'.
vi faro' sapere... :)
ciao
Francesco "duskdruid"

 nei prossimi pacchetti.
FreeBSD 4.9-RELEASE
Ok configure
make:
make  all-am
source='display.c' object='display.o' libtool=no 
depfile='.deps/display.Po' tmpdepfile='.deps/display.TPo'  depmode=gcc
/bin/bash ./depcomp  gcc -DHAVE_CONFIG_H -I. -I. -I.
 -g -O2 -c `test -f 'display.c' || echo './'`display.c
In file included from display.c:19:
myheaders.h:8: getopt.h: No such file or directory *** Error code 1
FreeBSD 5.2-RC
Ok configure e make

 wrote:
[]
FreeBSD 5.0-RELEASE-p19 (i386)
gcc version 3.2.1
../configure e make, OK.
-- 
Kirillov