|
|||||||||||
|
[Users] FreeS/WAN Compilation
From: Adam W <woja(at)optusnet.com.au>
Date: Wed Apr 16 2003 - 20:47:58 EDT
I managed to do 'make oldmod' - after some figuring out that it kept deleting files from my kernel source! So I had to copy them back during the make, and it finally got through ok. NOW... 'make minstall' gives me these errors: [root@woja freeswan-1.99]# make minstall rm -f out.kinstall egrep -q '^CONFIG_MODULES=y' /usr/src/linux/.config egrep -q '^CONFIG_IPSEC=m' /usr/src/linux/.config make -C /usr/src/linux modules_install 2>&1 | tee out.kinstallmake[1]: Entering directory `/usr/src/linux-2.4.21-0.13mdk' make -C kernel modules_install make[2]: Entering directory `/usr/src/linux-2.4.21-0.13mdk/kernel' make[2]: Nothing to be done for `modules_install'. make[2]: Leaving directory `/usr/src/linux-2.4.21-0.13mdk/kernel'make -C drivers modules_install make[2]: Entering directory `/usr/src/linux-2.4.21-0.13mdk/drivers' make -C acpi modules_install make[3]: Entering directory `/usr/src/linux-2.4.21-0.13mdk/drivers/acpi' mkdir -p /lib/modules/2.4.21-0.13mdkcustom/kernel/drivers/acpi/ cp ac.o battery.o button.o fan.o processor.o thermal.o toshiba_acpi.o /lib/modules/2.4.21-0.13mdkcustom/kernel/drivers/acpi/ cp: cannot stat `ac.o': No such file or directory cp: cannot stat `battery.o': No such file or directory cp: cannot stat `button.o': No such file or directory cp: cannot stat `fan.o': No such file or directory cp: cannot stat `processor.o': No such file or directory cp: cannot stat `thermal.o': No such file or directory cp: cannot stat `toshiba_acpi.o': No such file or directory make[3]: *** [_modinst__] Error 1 make[3]: Leaving directory `/usr/src/linux-2.4.21-0.13mdk/drivers/acpi' make[2]: *** [_modinst_acpi] Error 2 make[2]: Leaving directory `/usr/src/linux-2.4.21-0.13mdk/drivers'make[1]: *** [_modinst_drivers] Error 2 make[1]: Leaving directory `/usr/src/linux-2.4.21-0.13mdk' utils/errcheck out.kinstall ***ERRORS DETECTED in out.kinstall (examine file for details): make[3]: *** [_modinst__] Error 1 make[2]: *** [_modinst_acpi] Error 2 make[1]: *** [_modinst_drivers] Error 2 There are no .o object files in any of the driver directories... How do I compile these .o files???
-----Original Message-----
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
################################################################# There is no modversions.h in that directory - where do I get this library from?? Regards, Adam W.
-----Original Message-----
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
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 `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' 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 withouta 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' 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 knownmake[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, Adam W. Users mailing list Users@lists.freeswan.org http://lists.freeswan.org/mailman/listinfo/users Received on Thu Apr 17 11:40:10 2003 This archive was generated by hypermail 2.1.8 : Wed Aug 23 2006 - 13:01:20 EDT |
||||||||||
|
|||||||||||