[Iftop-users] Trying to compile iftop-0.15 -- problems
tagriffin@micron.com
tagriffin at micron.com
Thu, 15 Jan 2004 13:04:21 -0700
This is a multi-part message in MIME format.
------_=_NextPart_001_01C3DBA2.C3D7CF92
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
I hope someone can help me out here. I am not a C coder but
occasionally compile things in the Unix [aix, solaris, linux]
environment. I am currently attempting to compile iftop and have run
into many problem. I have installed libpcap and ncurses to get past my
first two problems. I applied the patch referenced here
http://lists.beasts.org/pipermail/iftop-users/2003-November/000074.html
for POSIX threads. I am now stumped though. Here is the error that I
am getting when trying to compile:
.
.
.
.
checking for inet_pton... yes
checking size of u_int8_t... unknown type
checking size of u_int16_t... unknown type
checking size of u_int32_t... unknown type
checking for stdint.h... (cached) no
checking sys/inttypes.h usability... yes
checking sys/inttypes.h presence... yes
checking for sys/inttypes.h... yes
checking for library containing getnameinfo... none required
checking for library containing gethostbyaddr_r... none required
checking how to call gethostbyaddr_r... 7 args, struct hostent*
return
checking where to find pcap.h... /home/username/tcpdump/include
checking for pcap_open_live in -lpcap... yes
checking pcap.h usability... yes
checking pcap.h presence... yes
checking for pcap.h... yes
checking for a curses library containing mvchgat... -lncurses
checking how to compile a working program with POSIX threads...
-lpthread
checking if we need to enable promiscuous mode by default... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config/Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
make all-recursive
make[1]: Entering directory `/home/username/iftop-0.15'
Making all in config
make[2]: Entering directory `/home/username/iftop-0.15/config'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/username/iftop-0.15/config'
make[2]: Entering directory `/home/username/iftop-0.15'
source=3D'options.c' object=3D'options.o' libtool=3Dno \
depfile=3D'.deps/options.Po' tmpdepfile=3D'.deps/options.TPo' \
depmode=3Dgcc /bin/bash ./config/depcomp \
gcc -DHAVE_CONFIG_H -I. -I. -I.
-I/home/username/tcpdump/include -g -O2 -c `test -f 'options.c' ||
echo './'`options.c
options.c: In function `set_net_filter':
options.c:218: `u_int32_t' undeclared (first use in this
function)
options.c:218: (Each undeclared identifier is reported only once
options.c:218: for each function it appears in.)
options.c:218: parse error before `mm'
options.c:219: `mm' undeclared (first use in this function)
options.c: In function `options_config_get_net_filter':
options.c:466: `u_int32_t' undeclared (first use in this
function)
options.c:466: parse error before `mm'
options.c:467: `mm' undeclared (first use in this function)
make[2]: *** [options.o] Error 1
make[2]: Leaving directory `/home/username/iftop-0.15'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/username/iftop-0.15'
make: *** [all] Error 2
[60]/home/username/iftop-0.15 #=20
I am guessing that it is something simple but I just don't have the
knowledge base to figure this one out for myself. Any help would be
greatly appreciated.
Oh yes: SunOS hostname-here5.8 Generic_108528-22 sun4u sparc
SUNW,Ultra-5_10.=20
Teressa Griffin
------_=_NextPart_001_01C3DBA2.C3D7CF92
Content-Type: text/html;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
6.0.6487.1">
<TITLE>Trying to compile iftop-0.15 -- problems</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->
<P><FONT SIZE=3D2 FACE=3D"Verdana">I hope someone can help me out =
here. I am not a C coder but occasionally compile things in the =
Unix [aix, solaris, linux] environment. I am currently attempting =
to compile iftop and have run into many problem. I have installed =
libpcap and ncurses to get past my first two problems. I applied =
the patch referenced here </FONT><A =
HREF=3D"http://lists.beasts.org/pipermail/iftop-users/2003-November/00007=
4.html"><U><FONT COLOR=3D"#0000FF" SIZE=3D2 =
FACE=3D"Verdana">http://lists.beasts.org/pipermail/iftop-users/2003-Novem=
ber/000074.html</FONT></U></A><FONT SIZE=3D2 FACE=3D"Verdana"> for POSIX =
threads. I am now stumped though. Here is the error that I =
am getting when trying to compile:</FONT></P>
<BR>
<UL>
<P><FONT SIZE=3D2 FACE=3D"Verdana">.</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Verdana">.</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Verdana">.</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Verdana">.</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Courier">checking for inet_pton... yes</FONT>
<BR><FONT COLOR=3D"#FF0000" SIZE=3D2 FACE=3D"Courier">checking size of =
u_int8_t... unknown type</FONT>
<BR><FONT COLOR=3D"#FF0000" SIZE=3D2 FACE=3D"Courier">checking size of =
u_int16_t... unknown type</FONT>
<BR><FONT COLOR=3D"#FF0000" SIZE=3D2 FACE=3D"Courier">checking size of =
u_int32_t... unknown type</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Courier">checking for stdint.h... (cached) =
no</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Courier">checking sys/inttypes.h usability... =
yes</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Courier">checking sys/inttypes.h presence... =
yes</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Courier">checking for sys/inttypes.h... =
yes</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Courier">checking for library containing =
getnameinfo... none required</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Courier">checking for library containing =
gethostbyaddr_r... none required</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Courier">checking how to call =
gethostbyaddr_r... 7 args, struct hostent* return</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Courier">checking where to find pcap.h... =
/home/username/tcpdump/include</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Courier">checking for pcap_open_live in =
-lpcap... yes</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Courier">checking pcap.h usability... =
yes</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Courier">checking pcap.h presence... =
yes</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Courier">checking for pcap.h... yes</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Courier">checking for a curses library =
containing mvchgat... -lncurses</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Courier">checking how to compile a working =
program with POSIX threads... -lpthread</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Courier">checking if we need to enable =
promiscuous mode by default... yes</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Courier">configure: creating =
./config.status</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Courier">config.status: creating =
Makefile</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Courier">config.status: creating =
config/Makefile</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Courier">config.status: creating =
config.h</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Courier">config.status: config.h is =
unchanged</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Courier">config.status: executing depfiles =
commands</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Courier">make =
all-recursive</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Courier">make[1]: Entering directory =
`/home/username/iftop-0.15'</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Courier">Making all in config</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Courier">make[2]: Entering directory =
`/home/username/iftop-0.15/config'</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Courier">make[2]: Nothing to be done for =
`all'.</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Courier">make[2]: Leaving directory =
`/home/username/iftop-0.15/config'</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Courier">make[2]: Entering directory =
`/home/username/iftop-0.15'</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Courier">source=3D'options.c' =
object=3D'options.o' libtool=3Dno \</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Courier">depfile=3D'.deps/options.Po' =
tmpdepfile=3D'.deps/options.TPo' \</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Courier">depmode=3Dgcc /bin/bash =
./config/depcomp \</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Courier">gcc -DHAVE_CONFIG_H -I. -I. =
-I. -I/home/username/tcpdump/include -g -O2 -c =
`test -f 'options.c' || echo './'`options.c</FONT></P>
<P><FONT COLOR=3D"#FF0000" SIZE=3D2 FACE=3D"Courier">options.c: In =
function `set_net_filter':</FONT>
<BR><FONT COLOR=3D"#FF0000" SIZE=3D2 FACE=3D"Courier">options.c:218: =
`u_int32_t' undeclared (first use in this function)</FONT>
<BR><FONT COLOR=3D"#FF0000" SIZE=3D2 FACE=3D"Courier">options.c:218: =
(Each undeclared identifier is reported only once</FONT>
<BR><FONT COLOR=3D"#FF0000" SIZE=3D2 FACE=3D"Courier">options.c:218: for =
each function it appears in.)</FONT>
<BR><FONT COLOR=3D"#FF0000" SIZE=3D2 FACE=3D"Courier">options.c:218: =
parse error before `mm'</FONT>
<BR><FONT COLOR=3D"#FF0000" SIZE=3D2 FACE=3D"Courier">options.c:219: =
`mm' undeclared (first use in this function)</FONT>
<BR><FONT COLOR=3D"#FF0000" SIZE=3D2 FACE=3D"Courier">options.c: In =
function `options_config_get_net_filter':</FONT>
<BR><FONT COLOR=3D"#FF0000" SIZE=3D2 FACE=3D"Courier">options.c:466: =
`u_int32_t' undeclared (first use in this function)</FONT>
<BR><FONT COLOR=3D"#FF0000" SIZE=3D2 FACE=3D"Courier">options.c:466: =
parse error before `mm'</FONT>
<BR><FONT COLOR=3D"#FF0000" SIZE=3D2 FACE=3D"Courier">options.c:467: =
`mm' undeclared (first use in this function)</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Courier">make[2]: *** [options.o] Error =
1</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Courier">make[2]: Leaving directory =
`/home/username/iftop-0.15'</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Courier">make[1]: *** [all-recursive] Error =
1</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Courier">make[1]: Leaving directory =
`/home/username/iftop-0.15'</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Courier">make: *** [all] Error 2</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Courier">[60]/home/username/iftop-0.15 # =
</FONT>
</P>
<BR>
<BR>
</UL>
<P><FONT SIZE=3D2 FACE=3D"Verdana">I am guessing that it is something =
simple but I just don't have the knowledge base to figure this one out =
for myself. Any help would be greatly appreciated.</FONT></P>
<P><FONT SIZE=3D2 FACE=3D"Verdana">Oh yes: SunOS hostname-here5.8 =
Generic_108528-22 sun4u sparc SUNW,Ultra-5_10. </FONT>
</P>
<P><FONT SIZE=3D2 FACE=3D"Verdana">Teressa Griffin</FONT>
</P>
</BODY>
</HTML>
------_=_NextPart_001_01C3DBA2.C3D7CF92--