Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

linux-ipsec: Re: ipnsec 0.82

From: Petr Novak <pn(at)I.CZ>
Date: Fri Apr 10 1998 - 13:07:20 EDT


Hi Florian,

> Hi Petr,
>
>
> I tried to compile the ipnsec-0.82 under Linux 2.1.82 with an
> updated 2.1 GNU C library

I was using 2.0.32 and 2.0.33 with the Linux libc5.

The missing netlink.h is probably due to changes in 2.0.x to 2.1.x.

The __STUFF are probably caused by clash of kernel vs. GLibc definitions, or something nasty like that.

My priority is to get ipnsec up and running with proper kernel interface (ie. use firewalling hooks, rather than the ipsec0 device) under at least one environment, rather than to make the code running in every possible environment. In this respect, please consider the whole ipnsec development branch as an experimental alpha quality code.

It works for me under 2.0.33 using (changed) RedHat 4.2 system (and is known to run and compile under RedHat 4.1 as well).

If you have some interesting project and strict dependency on the 2.1 kernel or GLIBC, please let me know and I will try to fix it.

Do you need help?X

On the other hand, the quality of the code and docs is as bad today, that users are supposed to be able to fix at least the missing header files themselves.

Sorry if this does not help you.

Petr

>
> (make modules)
>
> .....
>
> make[2]: Entering directory
> `/nfs/user2/m/otel/phd/ipsec/ipnsec-0.82/linux/net/ipsec' gcc
> -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2
> -fomit-frame-pointer -D__SMP__ -pipe -fno-strength-reduce -m486
> -malign-loops=2 -malign-jumps=2 -malign-functions=2 -DCPU=586
> -D__SMP__ -DMODULE -DMODVERSIONS -include
> /usr/src/linux/include/linux/modversions.h -c -o ipsec_init.o
> ipsec_init.c ipsec_init.c:84: net/netlink.h: No such file or
> directory In file included from /usr/include/unistd.h:174,
> from ipsec_init.c:85:
> /usr/include/bits/types.h:91: warning: `__NFDBITS' redefined
> /usr/src/linux/include/linux/posix_types.h:30: warning: this is the
> location of the previous definition /usr/include/bits/types.h:93:
> warning: `__FDMASK' redefined
> /usr/src/linux/include/linux/posix_types.h:42: warning: this is the
> location of the previous definition In file included from
> ipsec_init.c:85: /usr/include/unistd.h:177: warning: redefinition of
> `ssize_t' /usr/src/linux/include/linux/types.h:37: warning:
> `ssize_t' previously declared here In file included from
> ipsec_init.c:85: /usr/include/unistd.h:189: conflicting types for
> `gid_t' /usr/src/linux/include/linux/types.h:17: previous
> declaration of `gid_t' /usr/include/unistd.h:194: conflicting types
> for `uid_t' /usr/src/linux/include/linux/types.h:16: previous
> declaration of `uid_t' /usr/include/unistd.h:200: warning:
> redefinition of `off_t' /usr/src/linux/include/linux/types.h:14:
> warning: `off_t' previously declared here /usr/include/unistd.h:212:
> warning: redefinition of `pid_t'
> /usr/src/linux/include/linux/types.h:15: warning: `pid_t' previously
> declared here ipsec_init.c: In function `ipsec_init':
> ipsec_init.c:212: warning: passing arg 1 of
> `proc_register_Re164fe67' from incompatible pointer type
> ipsec_init.c:213: warning: passing arg 1 of
> `proc_register_Re164fe67' from incompatible pointer type
> ipsec_init.c:215: `NETLINK_IPSEC' undeclared (first use this
> function) ipsec_init.c:215: (Each undeclared identifier is reported
> only once ipsec_init.c:215: for each function it appears in.)
> ipsec_init.c:215: warning: passing arg 2 of `netlink_attach' from
> incompatible pointer type ipsec_init.c: In function `ipsec_cleanup':
> ipsec_init.c:238: warning: passing arg 1 of
> `proc_unregister_Rb58d59a6' from incompatible pointer type
> ipsec_init.c:240: warning: passing arg 1 of
> `proc_unregister_Rb58d59a6' from incompatible pointer type
> ipsec_init.c:243: `NETLINK_IPSEC' undeclared (first use this
> function) make[2]: *** [ipsec_init.o] Error 1 make[2]: Leaving
> directory `/nfs/user2/m/otel/phd/ipsec/ipnsec-0.82/linux/net/ipsec'
> make[1]: *** [modules] Error 2 make[1]: Leaving directory
> `/usr/src/playground/linux-2.1.82/net' make: *** [modules] Error 2
>
>
> ...
>
> Any hints ?
>
> Regards,
>
> Florian.
>

--

Petr Novak  
ICZ, a.s.
Praha, Czech republic
Received on Fri Apr 10 11:56:26 1998

This archive was generated by hypermail 2.1.8 : Wed Aug 23 2006 - 12:59:10 EDT


Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library