Folks,
I wrote the author of tcptraceroute. Since that dialog is relevant
to the discussion I'm adding it this thread. It appears he'll have
a beta version correcting the current problems in the near future.
--Joel
---start of forwarded message---
From: Michael C. Toren <[EMAIL PROTECTED]>
Da
I decided to remove the suppression of warnings. Here is the result:
# make
gcc -O2 -Wall `libnet-config --defines` \
-o tcptraceroute tcptraceroute.c \
-I/sw/include -L/sw/lib \
`libnet-config --libs` -lpcap
tcptraceroute.c: In function `iptohost':
tc
The warnings at lines 231 affected the line numbers listed for the errors.
I also came up with #defines to resolve the rest. I'm down to this:
# make
gcc -O2 -Wall `libnet-config --defines` \
-o tcptraceroute tcptraceroute.c \
-I/sw/include -L/sw/lib \
Here's a followup on my earlier message...
I have gotten rid of the compilation errors and now turn to what remains.
[I must stress I made some guesses and it isn't clear that even if I can
get past the remaining issues that the result will be working code.]
Here's what I'm seeing in terms of er
Folks,
I'm an interested fink user who would like to see tcptraceroute compile successfully.
I also
happen to be a software developer professionally. I've taken a look at the archived
thread on
this subject to date and have a suggestion to fix the PRu16 error. Add the #define
PRu16 and
PRU32
Hmmm... OK. Now I've added the include line for libnet/libnet-headers.h
and the defines lines you mentioned, but I get this (notice the define
errors have gone):
patch -p1
patching file tcptraceroute.c
echo "No configure script."
No configure script.
# (cc -Wall -I/sw/include `libnet-config --d
I had a look at the tcptraceroute.c file, and it doesn't actually
'include' libnet-headers.h, only libnet.h:
#include
I'll try adding the DEFINE lines you mentioned, to see if that works.
Perhaps also including libnet-headers.h will work too.
Thanks!
On Tuesday, January 28, 2003, at 05:51 PM
Hi Jeremy,
Nevermind my previous answer... I just noticed
/sw/include/libnet/libnet-headers.h declares specifically LIBNET_IPV4_H
and LIBNET_ICMPV4_H instead of LIBNET_IP_H and LIBNET_ICMP_H.
Try patching in this at some point in the code after the "#include
" line:
#define LIBNET_IP_H LIBNET_I
Hi,
My guess is the file it is looking for would be
/sw/lib/include/libnet/ip.h, this follows the pattern I've seen in
other programs which define constants with underscores in the middle.
So you might have to play with CFLAGS a bit: SetCFLAGS: -I/%p/lib/libnet
(Is this an autoconf/automake prog
Hi everyone,
I've received some reports that tcptraceroute (which depends on libnet
& libpcap) isn't working, getting the following error, which I can
confirm occurs:
make tcptraceroute CFLAGS=-I/sw/include
gcc -I/sw/include `libnet-config --defines` \
-o tcptraceroute tcptraceroute.c \
10 matches
Mail list logo