Re: Problems making sysmon

From: Jared Mauch (jared@sysmon.org)
Date: Tue Sep 18 2001 - 19:21:17 EDT


        Yup.. FreeBSD calls it something different in
the netinet/ip.h structure

        you can replace saddr and daddr with

        ip_src and ip_dst in that line.

        I'll have to commit a real fix for multi-os issues.

        - jared

On Sun, Sep 16, 2001 at 09:36:47PM -0400, Jared Mauch wrote:
> I did not test on FreeBSD.
>
> They may have named the structure members something
> else on FreeBSD.
>
> Will check on my freebsd machine(s).
>
> You can comment out that line, it's just debugging.
>
> - Jared
>
> On Fri, Sep 14, 2001 at 09:45:05AM +0200, Tobias Larsson wrote:
> > Hi,
> > I'm running FreeBSD 4.4 RC-4 and I'm trying to compile sysmon-0.91.5 on my system. I have problems thou...
> >
> > Configure works without any problems.
> >
> > atom# ./configure
> > loading cache ./config.cache
> > checking whether make sets ${MAKE}... (cached) yes
> > checking for gcc... (cached) gcc
> > checking whether the C compiler (gcc ) works... yes
> > checking whether the C compiler (gcc ) is a cross-compiler... no
> > checking whether we are using GNU C... (cached) yes
> > checking whether gcc accepts -g... (cached) yes
> > checking for ranlib... (cached) ranlib
> > checking for a BSD compatible install... (cached) /usr/bin/install -c
> > checking for sendmail... (cached) /usr/sbin/sendmail
> > checking for flex... (cached) /usr/bin/flex
> > checking for lex... (cached) /usr/bin/flex
> > checking for refresh in -lcurses... (cached) yes
> > checking for refresh in -lncurses... (cached) yes
> > checking for inet_ntoa in -lnsl... (cached) no
> > checking for yywrap in -lfl... (cached) yes
> > checking for yywrap in -ll... (cached) yes
> > checking for getpeername in -lsocket... (cached) no
> > checking for gethostname in -lresolv... (cached) no
> > checking for snprintf in -lc... (cached) yes
> > checking for revoke in -lbsd... (cached) no
> > checking for hosts_ctl in -lwrap... (cached) yes
> > checking how to run the C preprocessor... (cached) gcc -E
> > checking for tcpd.h... (cached) yes
> > updating cache ./config.cache
> > creating ./config.status
> > creating src/Makefile
> > creating src/defines.h
> > src/defines.h is unchanged
> >
> > Make stops when compiling icmp.c.
> >
> > atom# make
> > gcc -g -O2 '-DMAIL="/usr/sbin/sendmail"' -c heartbeat.c
> > gcc -g -O2 '-DMAIL="/usr/sbin/sendmail"' -c syswatch.c
> > gcc -g -O2 '-DMAIL="/usr/sbin/sendmail"' -c page.c
> > gcc -g -O2 '-DMAIL="/usr/sbin/sendmail"' -c tcp.c
> > gcc -g -O2 '-DMAIL="/usr/sbin/sendmail"' -c udp.c
> > gcc -g -O2 '-DMAIL="/usr/sbin/sendmail"' -c icmp.c
> > icmp.c: In function `handle_icmp_responses':
> > icmp.c:170: structure has no member named `saddr'
> > icmp.c:170: structure has no member named `daddr'
> > *** Error code 1
> >
> > Anyone seen this problem before? I can compile sysmon without any problems on a Mandrake Linux box.
>
> --
> Jared Mauch | pgp key available via finger from jared@puck.nether.net
> clue++; | http://puck.nether.net/~jared/ My statements are only mine.

-- 
Jared Mauch  | pgp key available via finger from jared@puck.nether.net
clue++;      | http://puck.nether.net/~jared/  My statements are only mine.



This archive was generated by hypermail 2b29 : Sun Aug 04 2002 - 04:14:07 EDT