Hello,
I believe I have solved my problem, I changed the Makefile in
/usr/src/linux/net/core/Makefile.
I changed the following line:
export-objs := netfilter.o profile.o
to this:
export-objs := netfilter.o profile.o dev.o
Now it does compile fine, I will test it out and try to provide some feedback.
Michael.
On Wed, 25 Feb 2004 09:01:39 -0700
Michael Gale <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I will keep trying, I am running slackware 9.1 which came with kernel
> 2.4.22 so
> I have downloaded the full source of 2.4.23, compiled and am using a working
> 2.4.23 kernel now.
>
> I then tried copying all the files in the kernel directory that Luca provided
> over and compile it again, with no luck.
>
> Michael.
>
>
>
> On Wed, 25 Feb 2004 09:48:00 -0600
> "Burton M. Strauss III" <[EMAIL PROTECTED]> wrote:
>
> > If Luca is distributing kernel patches, those are usually HIGHLY dependant
> > upon having the EXACT same version of the kernal and sometimes even the same
> > other patches.
> >
> > Some times a patch will work for a later version - you'll usually need to
> > review the version to version differences and make sure nothing changed in
> > the source file or it's includes.
> >
> > You might give the vanilla source a try - often patches for a RedHat kernel
> > won't work on a vanilla kernel nor on a Gentoo kernel and vice versa. As
> > with most of the major distros - but I have experience with those two - most
> > distros distribute highly patched versions. Instead of moving to a new
> > major release, they back port the critical fixes, sometimes for years.
> >
> > Good luck...
> >
> > -----Burton
> >
> >
> > > -----Original Message-----
> > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of
> > > Michael Gale
> > > Sent: Wednesday, February 25, 2004 9:00 AM
> > > To: [EMAIL PROTECTED]
> > > Subject: Re: [Ntop] How to high speed packet capture
> > >
> > >
> > > Hello,
> > >
> > > When I try to compile the kernel I now get the following
> > > error message:
> > >
> > > make[3]: Entering directory `/usr/src/linux-2.4.23/net/core'
> > > gcc -D__KERNEL__ -I/usr/src/linux-2.4.23/include -Wall -Wstrict-prototypes
> > > -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common
> > > -fomit-frame-pointer -pipe
> > > -mpreferred-stack-boundary=2 -march=i686 -nostdinc -iwithprefix include
> > > -DKBUILD_BASENAME=dev -c -o dev.o dev.c dev.c:118: syntax error before
> > > "this_object_must_be_defined_as_export_objs_in_the_Makefile"
> > > dev.c:118: warning:
> > > type defaults to `int' in declaration of
> > > `this_object_must_be_defined_as_export_objs_in_the_Makefile'
> > > dev.c:118: warning:
> > > data definition has no type or storage class make[3]: *** [dev.o] Error 1
> > > make[3]: Leaving directory `/usr/src/linux-2.4.23/net/core'
> > > make[2]: *** [first_rule] Error 2
> > > make[2]: Leaving directory `/usr/src/linux-2.4.23/net/core'
> > > make[1]: *** [_subdir_core] Error 2
> > > make[1]: Leaving directory `/usr/src/linux-2.4.23/net'
> > > make: *** [_dir_net] Error 2
> > >
> > > This is after coping over the dev.c file.
> > >
> > > Michael.
> > >
> > >
> > >
> > > On Tue, 24 Feb 2004 17:50:17 -0700
> > > Michael Gale <[EMAIL PROTECTED]> wrote:
> > >
> > > > Hello,
> > > >
> > > > I have read the Ring.pdf document on how to setup ntop for
> > > high speed
> > > > capture
> > > > but am still a little confused. I need to use my own kernel, so from my
> > > > understanding I need to do the following.
> > > >
> > > > Download the latest libcap, replace the files (like the README
> > > says) and build
> > > > it. No prob ... but what about all the stuff in ring-../kernel
> > > ? do I have to
> > > > copy those files into my existing 2.4.23 kernel directory ?
> > > >
> > > > And do the same if I want to upgrade to 2.4.25 or 2.6.3 ?
> > > >
> > > > --
> > > > Michael Gale
> > > > Network Administrator
> > > > Utilitran Corporation
> > > > _______________________________________________
> > > > Ntop mailing list
> > > > [EMAIL PROTECTED]
> > > > http://listgateway.unipi.it/mailman/listinfo/ntop
> > > >
> > > >
> > > >
> > > >
> > >
> > >
> > > --
> > > Michael Gale
> > > Network Administrator
> > > Utilitran Corporation
> > > _______________________________________________
> > > Ntop mailing list
> > > [EMAIL PROTECTED]
> > > http://listgateway.unipi.it/mailman/listinfo/ntop
> > >
> >
> > _______________________________________________
> > Ntop mailing list
> > [EMAIL PROTECTED]
> > http://listgateway.unipi.it/mailman/listinfo/ntop
> >
> >
> >
> >
>
>
> --
> Michael Gale
> Network Administrator
> Utilitran Corporation
> _______________________________________________
> Ntop mailing list
> [EMAIL PROTECTED]
> http://listgateway.unipi.it/mailman/listinfo/ntop
>
>
>
>
--
Michael Gale
Network Administrator
Utilitran Corporation
_______________________________________________
Ntop mailing list
[EMAIL PROTECTED]
http://listgateway.unipi.it/mailman/listinfo/ntop