Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

[Users] FreeS/WAN Compilation

From: Adam W <woja(at)optusnet.com.au>
Date: Wed Apr 16 2003 - 19:35:35 EDT


Hi,

Tried a different approach - followed the documentation from freeswan.org - it says to run 'make oldmod' then 'make minstall'

I get these errors from 'make oldmod':

egrep -q '^CONFIG_MODULES=y' /usr/src/linux/.config egrep -q '^CONFIG_IPSEC=m' /usr/src/linux/.config ( cd /usr/src/linux ; \

        make SUBDIRS=net/ipsec modules 2>&1 ) | tee out.kbuild make[1]: Entering directory `/usr/src/linux-2.4.21-0.13mdk' scripts/split-include include/linux/autoconf.h include/config make -C net/ipsec CFLAGS="-D__KERNEL__

-I/usr/src/linux-2.4.21-0.13mdk/include  -Wall -Wstrict-prototypes
-Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -pipe
-mpreferred-stack-boundary=2 -march=i586 -DMODULE -DMODVERSIONS -include
/usr/src/linux-2.4.21-0.13mdk/include/linux/modversions.h" MAKING_MODULES=1 modules
make[2]: Entering directory `/usr/src/linux-2.4.21-0.13mdk/net/ipsec' make[2]: *** No rule to make target
`/usr/src/linux-2.4.21-0.13mdk/include/linux/modversions.h', needed by
`ipsec_init.o'. Stop.
make[2]: Leaving directory `/usr/src/linux-2.4.21-0.13mdk/net/ipsec'
make[1]: *** [_mod_net/ipsec] Error 2
make[1]: Leaving directory `/usr/src/linux-2.4.21-0.13mdk'
utils/errcheck out.kbuild

***ERRORS DETECTED in out.kbuild (examine file for details): make[2]: *** No rule to make target
`/usr/src/linux-2.4.21-0.13mdk/include/linux/modversions.h', needed by
`ipsec_init.o'. Stop.

make[1]: *** [_mod_net/ipsec] Error 2

#################################################################

There is no modversions.h in that directory - where do I get this library from??

Regards,

Do you need help?X

Adam W.

-----Original Message-----
From: Adam W [mailto:woja@optusnet.com.au] Sent: Thursday, 17 April 2003 9:24 AM
To: 'users@lists.freeswan.org'
Subject: FreeS/WAN Compilation

Hi All,

Trying to compile FreeS/WAN on my mandrake 9.1 system... I have patched the source with the x509 patch and then ran the command 'make programs'

I get the following errors after a while of compiling:

make[3]: Entering directory
`/home/adamw/freeswan-1.99/testing/utils/uml_netjig'
cc -g -Wall -I/usr/include/pcap -DARP_PROCESS -c -o uml_netjig.o

uml_netjig.c
uml_netjig.c:73:18: pcap.h: No such file or directory
uml_netjig.c:126: parse error before "pcap_dumper_t"
uml_netjig.c:126: warning: no semicolon at end of struct or union
uml_netjig.c:128: parse error before '*' token
uml_netjig.c:128: warning: type defaults to `int' in declaration of

`nh_input'
uml_netjig.c:128: warning: data definition has no type or storage class uml_netjig.c:133: parse error before '}' token uml_netjig.c: In function `cleanup': uml_netjig.c:158: dereferencing pointer to incomplete type uml_netjig.c:160: dereferencing pointer to incomplete type uml_netjig.c:162: dereferencing pointer to incomplete type uml_netjig.c:164: dereferencing pointer to incomplete type uml_netjig.c: In function `free_connection': uml_netjig.c:189: dereferencing pointer to incomplete type uml_netjig.c: In function `service_connection': uml_netjig.c:208: dereferencing pointer to incomplete type uml_netjig.c:221: dereferencing pointer to incomplete type uml_netjig.c: In function `forward_data': uml_netjig.c:245: dereferencing pointer to incomplete type uml_netjig.c:249: dereferencing pointer to incomplete type uml_netjig.c: In function `handle_data': uml_netjig.c:257: storage size of `ph' isn't known uml_netjig.c:261: dereferencing pointer to incomplete type uml_netjig.c:271: dereferencing pointer to incomplete type
Do you need more help?X
uml_netjig.c:272: warning: implicit declaration of function `pcap_dump' uml_netjig.c:272: dereferencing pointer to incomplete type uml_netjig.c:284: dereferencing pointer to incomplete type uml_netjig.c:284: dereferencing pointer to incomplete type uml_netjig.c:299: dereferencing pointer to incomplete type uml_netjig.c:299: dereferencing pointer to incomplete type uml_netjig.c:309: dereferencing pointer to incomplete type uml_netjig.c:310: dereferencing pointer to incomplete type uml_netjig.c:320: dereferencing pointer to incomplete type uml_netjig.c:257: warning: unused variable `ph' uml_netjig.c: In function `new_connection': uml_netjig.c:359: dereferencing pointer to incomplete type uml_netjig.c:359: dereferencing pointer to incomplete type uml_netjig.c:359: dereferencing pointer to incomplete type uml_netjig.c: In function `handle_connections': uml_netjig.c:371: dereferencing pointer to incomplete type uml_netjig.c: In function `accept_connection': uml_netjig.c:390: dereferencing pointer to incomplete type uml_netjig.c: In function `bind_sockets': uml_netjig.c:456: dereferencing pointer to incomplete type uml_netjig.c:456: dereferencing pointer to incomplete type uml_netjig.c:460: dereferencing pointer to incomplete type uml_netjig.c:460: dereferencing pointer to incomplete type uml_netjig.c:466: dereferencing pointer to incomplete type uml_netjig.c:467: dereferencing pointer to incomplete type uml_netjig.c:473: dereferencing pointer to incomplete type uml_netjig.c:478: dereferencing pointer to incomplete type uml_netjig.c:481: dereferencing pointer to incomplete type uml_netjig.c:486: dereferencing pointer to incomplete type uml_netjig.c:490: dereferencing pointer to incomplete type uml_netjig.c:492: dereferencing pointer to incomplete type
Can we help you?X
uml_netjig.c:494: dereferencing pointer to incomplete type uml_netjig.c:494: dereferencing pointer to incomplete type uml_netjig.c: In function `init_nethub': uml_netjig.c:583: dereferencing pointer to incomplete type uml_netjig.c:584: dereferencing pointer to incomplete type uml_netjig.c:584: dereferencing pointer to incomplete type uml_netjig.c:584: dereferencing pointer to incomplete type uml_netjig.c:586: dereferencing pointer to incomplete type uml_netjig.c:589: dereferencing pointer to incomplete type uml_netjig.c:591: dereferencing pointer to incomplete type uml_netjig.c:593: dereferencing pointer to incomplete type uml_netjig.c:594: dereferencing pointer to incomplete type uml_netjig.c:595: dereferencing pointer to incomplete type uml_netjig.c:596: dereferencing pointer to incomplete type uml_netjig.c:597: dereferencing pointer to incomplete type uml_netjig.c:598: dereferencing pointer to incomplete type uml_netjig.c:605: dereferencing pointer to incomplete type uml_netjig.c:612: dereferencing pointer to incomplete type uml_netjig.c:615: dereferencing pointer to incomplete type uml_netjig.c:619: dereferencing pointer to incomplete type uml_netjig.c:626: dereferencing pointer to incomplete type uml_netjig.c:631: dereferencing pointer to incomplete type uml_netjig.c:635: dereferencing pointer to incomplete type uml_netjig.c:642: dereferencing pointer to incomplete type uml_netjig.c: In function `main': uml_netjig.c:789: invalid use of undefined type `struct nethub' uml_netjig.c:790: invalid use of undefined type `struct nethub' uml_netjig.c:793: `pcap_t' undeclared (first use in this function) uml_netjig.c:793: (Each undeclared identifier is reported only once uml_netjig.c:793: for each function it appears in.) uml_netjig.c:793: `pt' undeclared (first use in this function)
Can't find what you're looking for?X
uml_netjig.c:797: invalid use of undefined type `struct nethub' uml_netjig.c:799: warning: implicit declaration of function

`pcap_open_dead'
uml_netjig.c:799: `DLT_EN10MB' undeclared (first use in this function)
uml_netjig.c:800: invalid use of undefined type `struct nethub'
uml_netjig.c:800: warning: implicit declaration of function

`pcap_dump_open'
uml_netjig.c:801: invalid use of undefined type `struct nethub'
uml_netjig.c:813: invalid use of undefined type `struct nethub'
uml_netjig.c:816: invalid use of undefined type `struct nethub'
uml_netjig.c:817: invalid use of undefined type `struct nethub'
uml_netjig.c:828: invalid use of undefined type `struct nethub'
uml_netjig.c:829: invalid use of undefined type `struct nethub'
uml_netjig.c:829: warning: implicit declaration of function

`pcap_open_offline'
uml_netjig.c:830: invalid use of undefined type `struct nethub'
uml_netjig.c:840: invalid use of undefined type `struct nethub'
uml_netjig.c:841: invalid use of undefined type `struct nethub'
uml_netjig.c:842: invalid use of undefined type `struct nethub'
uml_netjig.c:859: invalid use of undefined type `struct nethub'
uml_netjig.c:859: invalid use of undefined type `struct nethub'
uml_netjig.c:860: invalid use of undefined type `struct nethub'
uml_netjig.c:860: invalid use of undefined type `struct nethub'
uml_netjig.c:866: invalid use of undefined type `struct nethub'
uml_netjig.c:866: invalid use of undefined type `struct nethub'
uml_netjig.c:867: invalid use of undefined type `struct nethub'
uml_netjig.c:867: invalid use of undefined type `struct nethub'
uml_netjig.c:868: invalid use of undefined type `struct nethub'
uml_netjig.c:868: invalid use of undefined type `struct nethub'
uml_netjig.c:869: invalid use of undefined type `struct nethub'
uml_netjig.c:869: invalid use of undefined type `struct nethub'
Don't know where to look next?X
uml_netjig.c:872: invalid use of undefined type `struct nethub' uml_netjig.c:872: invalid use of undefined type `struct nethub' uml_netjig.c:873: invalid use of undefined type `struct nethub' uml_netjig.c:873: invalid use of undefined type `struct nethub' uml_netjig.c:874: invalid use of undefined type `struct nethub' uml_netjig.c:874: invalid use of undefined type `struct nethub' uml_netjig.c:875: invalid use of undefined type `struct nethub' uml_netjig.c:875: invalid use of undefined type `struct nethub' uml_netjig.c:887: invalid use of undefined type `struct nethub' uml_netjig.c:888: invalid use of undefined type `struct nethub' uml_netjig.c:899: invalid use of undefined type `struct nethub' uml_netjig.c:900: invalid use of undefined type `struct nethub' uml_netjig.c:924: dereferencing pointer to incomplete type uml_netjig.c:925: storage size of `ph' isn't known uml_netjig.c:930: warning: implicit declaration of function `pcap_next' uml_netjig.c:930: dereferencing pointer to incomplete type uml_netjig.c:930: warning: assignment makes pointer from integer without
a cast
uml_netjig.c:932: dereferencing pointer to incomplete type
uml_netjig.c:934: dereferencing pointer to incomplete type
uml_netjig.c:925: warning: unused variable `ph'
uml_netjig.c:941: invalid use of undefined type `struct nethub'
uml_netjig.c:942: invalid use of undefined type `struct nethub'
uml_netjig.c:961: invalid use of undefined type `struct nethub'
uml_netjig.c:961: invalid use of undefined type `struct nethub'
uml_netjig.c:963: invalid use of undefined type `struct nethub'
uml_netjig.c:963: invalid use of undefined type `struct nethub'
uml_netjig.c:965: invalid use of undefined type `struct nethub'
uml_netjig.c:965: invalid use of undefined type `struct nethub'
Confused? Frustrated?X
uml_netjig.c:967: invalid use of undefined type `struct nethub' uml_netjig.c:967: invalid use of undefined type `struct nethub' uml_netjig.c:970: invalid use of undefined type `struct nethub' uml_netjig.c:970: invalid use of undefined type `struct nethub' uml_netjig.c:972: invalid use of undefined type `struct nethub' uml_netjig.c:972: invalid use of undefined type `struct nethub' uml_netjig.c:973: invalid use of undefined type `struct nethub' uml_netjig.c:973: invalid use of undefined type `struct nethub' uml_netjig.c:975: invalid use of undefined type `struct nethub' uml_netjig.c:975: invalid use of undefined type `struct nethub' uml_netjig.c: At top level: uml_netjig.c:135: storage size of `public' isn't known uml_netjig.c:135: storage size of `private' isn't known
make[3]: *** [uml_netjig.o] Error 1
make[3]: Leaving directory
`/home/adamw/freeswan-1.99/testing/utils/uml_netjig'
make[3]: Entering directory
`/home/adamw/freeswan-1.99/testing/utils/ikeping'
cc -I../../../lib -I../../.. -DDEBUG -g -Wall -W -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wmissing-declarations -Wwrite-strings -Wstrict-prototypes -Werror -c ikeping.c cc -o ikeping ikeping.o ../../../lib/libfreeswan.a
make[3]: Leaving directory
`/home/adamw/freeswan-1.99/testing/utils/ikeping'
make[2]: Leaving directory `/home/adamw/freeswan-1.99/testing/utils' make[1]: Leaving directory `/home/adamw/freeswan-1.99/testing'

Any help would be greatly appreciated... Am I missing a dependency??

Regards,

Call Pantek today for Open Source Technical Support at 1-877-546-8934 - 24/7/365X

Adam W.



Users mailing list
Users@lists.freeswan.org
http://lists.freeswan.org/mailman/listinfo/users Received on Thu Apr 17 13:50:30 2003

This archive was generated by hypermail 2.1.8 : Wed Aug 23 2006 - 13:01:20 EDT


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