
|
OpenCALEA
Date Prev | Date Next |
Date Index |
Thread Index |
Author Index |
Historical
Re: [OpenCALEA] Compile problem on tap.c
- From: Steve Wagor
- Date: Wed Apr 18 18:58:31 2007
- Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:reply-to:sender:to:subject:in-reply-to:mime-version:content-type:references:x-google-sender-auth; b=eVMoOxVdW288JBHHdylaegm1s5BvGaNi96V3VCrcjFZuymk0/EUhHGJTLr9stsIT2Jy2/5OI/BdQCA2qNSjwI2bo73sXmJ8tR1Drdw2Yf6dVl5ExBzuU/GsxZ4tWMssaVa81Cvx4KnILtLsRpUc+nlOeXpkW1qAYclRjMI9wtn0=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:reply-to:sender:to:subject:in-reply-to:mime-version:content-type:references:x-google-sender-auth; b=bz8pa2Ao7Uxkz6ZPO6Io2R2XmA0VPEzbUZ53PguZFlUAv0xH/W9P83KH01AtBHuCxj8mGawpEHE0O+c3jTunCjBYB1eANVZ8AHq2YEFTjeChY9qpzjbrZiDRnr+cFjlbCFYP3H2BINjYbhqAQx3YOB4XI6JQfpyMkwBWHH5t5S0=
Norman,
Even though I got it to compile with 4.1.2 I figured I would go back and try your suggestion and use 2.95. It did get past that error in tap.c after moving those two lines to the top of the function but then had problems with lea_collector.c with an undeclared sock_ids and then a few more undeclared's as well. So maybe there are more instances of this type of thing that would be needing tweaked before it would compile with
2.95 but since I can do it with 4.12 I at least am happy :)
#define CmIIh cmii_header_t is in the 0.5 calea.h file in the src directory.
Thanks again.
Steve...
On 4/18/07, Norman Brandinger <norm@goes.com> wrote:
Hi Steve,
CmIIh and HEADER are defined in calea.h. Can you confirm they are there ?
Can you try to move the following two lines (in tap.c) to the top of the process_packet routine
CmIIh cmiih;
HEADER payload;
I'm using gcc version 4.1.2, but perhaps your C compiler isn't happy with a declaration in the middle of a routine.
Regards, Norm
Steve Wagor wrote: > Hello again,
> > I installed libtool and reran ./configure in the open_calea directory > (v0.5) and still it comes up with libtool=no in that source= line when > doing a make. > > I deleted my directory of /root/open_calea (even though subversion
> puts it into opencalea). > > I then used apt-get to install subversion and then used it to get the > latest using the svn command below: > > # Non-members may check out a read-only working copy anonymously over
> HTTP. > svn checkout */http/*://opencalea.googlecode.com/svn/trunk/ opencalea > > > I noticed the new opencalea directory even has an executable in the > opencalea directory called libtool but even after running the
> ./configure in this newly created directory of opencalea it still > gives me the same error. > > I am guessing I am missing a .h file or another define since it has > problems with these two lines in
tap.c: > CmIIh cmiih; > HEADER payload; > > Steve... > > > > On 4/18/07, *Jesse Norell* <jesse@kci.net <mailto:
jesse@kci.net>> wrote: > > Hello, > > I'm guessing that's the version 0.5 tarball? Try the latest svn. > Although 0.5 shouldn't do that either ... maybe that "libtool=no"
> is the > problem? See if installing libtool fixes you up. > > > > On Wed, 2007-04-18 at 15:06 -0600, Steve Wagor wrote: > > It's probably something I don't have installed but can someone
> tell me > > why I would get this error when doing a make from the opencalea > > directory? > > > > ------------cut here------------ > > root@mymachine
:~/open_calea# make > > Making all in src > > make[1]: Entering directory `/root/open_calea/src' > > source='tap.c ' object='tap-tap.o' libtool=no \ > > DEPDIR=.deps depmode=gcc /bin/sh ../depcomp \
> > gcc -DPACKAGE_NAME=\"open_calea\" -DPACKAGE_TARNAME= > > \"open_calea\" -DPACKAGE_VERSION=\" 0.5\" -DPACKAGE_STRING= > > \"open_calea\
0.5\" -DPACKAGE_BUGREPORT=\"mkarir@merit.edu\" > > -DPACKAGE=\"open_calea\" -DVERSION=\"0.5\" -DSTDC_HEADERS=1 > > -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1
> > -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 > > -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 > > -DHAVE_STDIO_H=1 -DHAVE_MATH_H=1 -DHAVE_TIME_H=1 -DHAVE_NETDB_H=1
> > -DHAVE_NETINET_IN_H=1 -DHAVE_ARPA_INET_H=1 -I. -I. -g -O2 > -Wall -g > > -O2 -c -o tap-tap.o `test -f 'tap.c' || echo './'`tap.c > > tap.c: In function `process_packet':
> > tap.c:78: parse error before `cmiih' > > tap.c:81: `cmiih' undeclared (first use in this function) > > tap.c :81: (Each undeclared identifier is reported only once > >
tap.c:81: for each function it appears in.) > > tap.c:86: `payload' undeclared (first use in this function) > > make[1]: *** [tap-tap.o ] Error 1 > > make[1]: Leaving directory `/root/open_calea/src'
> > make: *** [all-recursive] Error 1 > > > > ------------cut here------------ > > > > The contents of my compile was done with this gcc: > >
root@mymachine:~/open_calea# ls -l /usr/bin/gcc > > lrwxr-xr-x 1 root root 17 Apr 17 21:34 /usr/bin/gcc -> > /usr/bin/gcc- > > 2.95 > > > > > > The distro I am doing this on is Debian (
2.6.8-xxxxx ) and had no > > tcpdump or compiler or libraries on it so I got the following using > > apt-get install after doing an apt-get update: > > gcc > > tcpdump
> > ngrep > > netcat > > gcc-2.95 > > ncurses-dev > > libpcap0.8 > > libpcap0.8-dev > > > > Also I linked gcc to the gcc-2.95
version. > > > > Thanks for any help. > > > > Steve... > > > -- > Jesse Norell - jesse@kci.net <mailto:
jesse@kci.net> > Kentec Communications, Inc. > >
|
|
|