Joel L. Breazeale on 19 Dec 2003 12:57:02 -0500


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

[tcptra-dev] tcptraceroute for SunOS


Folks,

I'm trying to build tcptraceroute for SunOS.  Here's the output of uname -a
so you know the particulars of the OS:

    SunOS isis 5.8 Generic_108528-19 sun4u sparc

So...  I gathered up libpcap, libnet, and tcptraceroute sources and
compiled them all.  I can get libpcap and libnet to compile, but not
tcptraceroute.  It barfs thusly:

/home/jlb/tcptraceroute/tcptraceroute-1.4> make
PATH=/usr/X/bin:/usr/local/bin:/usr/ucb:/usr/bin:/bin:/usr/ccs/bin:.:/usr/games:/usr/sbin:/home/jlb/bin:/home/drechsau/bin:../libnet
gcc -O2 -Wall `libnet-config --defines` \
        -I../libnet/include -I../libpcap-0.8.1 \
        -o tcptraceroute tcptraceroute.c \
        -L../libpcap-0.8.1 \
        `libnet-config --libs` -lpcap
tcptraceroute.c: In function `iptohost':
tcptraceroute.c:596: warning: implicit declaration of function `libnet_host_lookup'
tcptraceroute.c:596: warning: return makes pointer from integer without a cast
tcptraceroute.c: In function `finddev':
tcptraceroute.c:823: warning: implicit declaration of function `libnet_name_resolve'
tcptraceroute.c: In function `allocateid':
tcptraceroute.c:885: `PRu16' undeclared (first use in this function)
tcptraceroute.c:885: (Each undeclared identifier is reported only once
tcptraceroute.c:885: for each function it appears in.)
tcptraceroute.c: In function `debugoptions':
tcptraceroute.c:1007: `LIBNET_IP_H' undeclared (first use in this function)
tcptraceroute.c:1007: `LIBNET_ICMP_H' undeclared (first use in this function)
tcptraceroute.c: In function `defaults':
tcptraceroute.c:1136: `LIBNET_IP_H' undeclared (first use in this function)
tcptraceroute.c:1145: too few arguments to function `libnet_seed_prand'
tcptraceroute.c:1147: warning: implicit declaration of function `libnet_open_raw_sock'
tcptraceroute.c: In function `initcapture':
tcptraceroute.c:1182: `LIBNET_IP_H' undeclared (first use in this function)
tcptraceroute.c:1182: `LIBNET_ICMP_H' undeclared (first use in this function)
tcptraceroute.c: In function `probe':
tcptraceroute.c:1225: `LIBNET_IP_H' undeclared (first use in this function)
tcptraceroute.c:1271: warning: implicit declaration of function `libnet_build_ip'
tcptraceroute.c:1298: warning: passing arg 8 of `libnet_build_tcp' makes integer from pointer without a cast
tcptraceroute.c:1298: too few arguments to function `libnet_build_tcp'
tcptraceroute.c:1300: warning: passing arg 1 of `libnet_do_checksum' from incompatible pointer type
tcptraceroute.c:1300: warning: passing arg 2 of `libnet_do_checksum' makes pointer from integer without a cast
tcptraceroute.c:1300: too few arguments to function `libnet_do_checksum'
tcptraceroute.c:1302: warning: implicit declaration of function `libnet_write_ip'
tcptraceroute.c:1222: warning: `size' might be used uninitialized in this function
tcptraceroute.c: In function `capture':
tcptraceroute.c:1412: `LIBNET_IP_H' undeclared (first use in this function)
tcptraceroute.c:1418: `LIBNET_ICMP_H' undeclared (first use in this function)
tcptraceroute.c:1426: dereferencing pointer to incomplete type
tcptraceroute.c:1432: dereferencing pointer to incomplete type
tcptraceroute.c:1438: dereferencing pointer to incomplete type
tcptraceroute.c:1441: dereferencing pointer to incomplete type
tcptraceroute.c:1451: dereferencing pointer to incomplete type
tcptraceroute.c:1489: dereferencing pointer to incomplete type
tcptraceroute.c:1495: dereferencing pointer to incomplete type
tcptraceroute.c:1501: dereferencing pointer to incomplete type
tcptraceroute.c:1504: dereferencing pointer to incomplete type
tcptraceroute.c:1508: dereferencing pointer to incomplete type
tcptraceroute.c:1511: dereferencing pointer to incomplete type
tcptraceroute.c:1516: dereferencing pointer to incomplete type
tcptraceroute.c:1523: dereferencing pointer to incomplete type
tcptraceroute.c:1537: dereferencing pointer to incomplete type
tcptraceroute.c:1541: dereferencing pointer to incomplete type
tcptraceroute.c:1582: dereferencing pointer to incomplete type
tcptraceroute.c:1544: warning: unreachable code at beginning of switch statement
tcptraceroute.c:1586: dereferencing pointer to incomplete type
tcptraceroute.c:1591: dereferencing pointer to incomplete type
tcptraceroute.c:1594: dereferencing pointer to incomplete type
tcptraceroute.c:1599: dereferencing pointer to incomplete type
tcptraceroute.c:1600: dereferencing pointer to incomplete type
tcptraceroute.c:1603: dereferencing pointer to incomplete type
tcptraceroute.c:1611: dereferencing pointer to incomplete type
tcptraceroute.c:1615: dereferencing pointer to incomplete type
tcptraceroute.c:1618: dereferencing pointer to incomplete type
tcptraceroute.c:1631: dereferencing pointer to incomplete type
tcptraceroute.c:1632: dereferencing pointer to incomplete type
tcptraceroute.c:1675: dereferencing pointer to incomplete type
tcptraceroute.c: In function `trace':
tcptraceroute.c:1693: `LIBNET_IP_H' undeclared (first use in this function)
make: *** [tcptraceroute] Error 1
/home/jlb/tcptraceroute/tcptraceroute-1.4>

I think this boils down to not having the proper combination of versions
of the various files.  I have libnet 1.1 from
 http://www.packetfactory.net/libnet, libpcap-0.8.1 from http://www.tcpdump.org,
and finally tcptraceroute 1.4 from http://michael.toren.net/code/tcptraceroute.

Maybe it's just a dumb compilation issue, but I can definately see from 
the libnet source that libnet_host_lookup has been renamed, so what are my
options?

Perhaps someone has a tcptraceroute already compiled that I could just take
and use?!

Regards,
Joel Breazeale
_______________________________________________
tcptraceroute-dev mailing list
tcptraceroute-dev@netisland.net
http://lists.netisland.net/mailman/listinfo/tcptraceroute-dev