Unanswered question

Recieving issues in installing WAN emulation on unix box

We are receiving issues while installing WAN emulation on unix machines to be used as controller and load generators . Following are the details of the error being received :-

[root@uamplgosussd01 2.6.32-220.13.1.el6.x86_64]# make prepare
scripts/kconfig/conf -s arch/x86/Kconfig
CHK include/linux/version.h
CHK include/linux/utsrelease.h
SYMLINK include/asm -> include/asm-x86
make[1]: *** No rule to make target `missing-syscalls'. Stop.
make: *** [prepare0] Error 2
[root@uamplgosussd01 2.6.32-220.13.1.el6.x86_64]#

Please help us resolving this issue.

Smriti S.
Smriti S.

Smriti S.

Level
0
22 / 100
points

Answers

Nouredine A.
Nouredine A.

Nouredine A.

Level
4
5000 / 5000
points
Team

What happens when you try to compile the ipfw module by running that command:

make KERNELPATH=/lib/modules/`uname -r`/build from the ipfw-linux-src folder like described in the NeoLoad documentation

Smriti S.
Smriti S.

Smriti S.

Level
0
22 / 100
points

Hello Nouredine

This is the complete output for the following command.
[make KERNELPATH=/lib/modules/`uname -r`/build from the ipfw-linux-src folder like described in the NeoLoad documentation]

root@uamplgosussd01 ipfw-linux-src]# make KERNELPATH=/lib/modules/`uname -r`/build
echo target is all
target is all
(cd ipfw && make all )
make[1]: Entering directory `/images/neoload/tools/ipfw/linux/ipfw-linux-src/ipfw'
Makefile:16: Building userland ipfw for Linux
cc -O1 -Wall -include ../glue.h -I ./include_e -I ./include -D__BSD_VISIBLE -Werror -Wno-unused-but-set-variable -I/usr/include -DNO_ALTQ -c -o ipfw2.o ipfw2.c
cc -O1 -Wall -include ../glue.h -I ./include_e -I ./include -D__BSD_VISIBLE -Werror -Wno-unused-but-set-variable -I/usr/include -DNO_ALTQ -c -o dummynet.o dummynet.c
cc -O1 -Wall -include ../glue.h -I ./include_e -I ./include -D__BSD_VISIBLE -Werror -Wno-unused-but-set-variable -I/usr/include -DNO_ALTQ -c -o main.o main.c
cc -O1 -Wall -include ../glue.h -I ./include_e -I ./include -D__BSD_VISIBLE -Werror -Wno-unused-but-set-variable -I/usr/include -DNO_ALTQ -c -o ipv6.o ipv6.c
cc -O1 -Wall -include ../glue.h -I ./include_e -I ./include -D__BSD_VISIBLE -Werror -Wno-unused-but-set-variable -I/usr/include -DNO_ALTQ -c -o qsort_r.o qsort_r.c
cc -O1 -Wall -include ../glue.h -I ./include_e -I ./include -D__BSD_VISIBLE -Werror -Wno-unused-but-set-variable -I/usr/include -DNO_ALTQ -c -o expand_number.o expand_number.c
cc -O1 -Wall -include ../glue.h -I ./include_e -I ./include -D__BSD_VISIBLE -Werror -Wno-unused-but-set-variable -I/usr/include -DNO_ALTQ -c -o humanize_number.o humanize_number.c
cc -O1 -Wall -include ../glue.h -I ./include_e -I ./include -D__BSD_VISIBLE -Werror -Wno-unused-but-set-variable -I/usr/include -DNO_ALTQ -c -o glue.o glue.c
cc -L/usr/lib -o ipfw ipfw2.o dummynet.o main.o ipv6.o qsort_r.o expand_number.o humanize_number.o glue.o
echo "Done build for Linux VER "
Done build for Linux VER
make[1]: Leaving directory `/images/neoload/tools/ipfw/linux/ipfw-linux-src/ipfw'
(cd dummynet2 && make all )
make[1]: Entering directory `/images/neoload/tools/ipfw/linux/ipfw-linux-src/dummynet2'
Makefile:30: including dummynet/Makefile
Makefile:64: "---- Building dummynet kernel module for Version 2.6"
Makefile:259: "---- Building Version 2.6 2.6 in /lib/modules/2.6.32-220.13.1.el6.x86_64/build"
grep: /lib/modules/2.6.32-220.13.1.el6.x86_64/build/include/linux/version.h: No such file or directory
Makefile:280: "---- Perhaps you miss a (cd /lib/modules/2.6.32-220.13.1.el6.x86_64/build; make oldconfig; make prepare; make scripts)"
/bin/sh: line 0: [: : integer expression expected
make -C /lib/modules/2.6.32-220.13.1.el6.x86_64/build V=1 M=`pwd` modules
make: Entering an unknown directory
make: *** /lib/modules/2.6.32-220.13.1.el6.x86_64/build: No such file or directory. Stop.
make: Leaving an unknown directory
make[1]: *** [all] Error 2
make[1]: Leaving directory `/images/neoload/tools/ipfw/linux/ipfw-linux-src/dummynet2'
make: *** [all] Error 2

We had already installed these kernel rpms on our linux machine:-

[root@uamplgosussd01 2.6.32-220.13.1.el6.x86_64]# rpm -qa | grep kernel
kernel-devel-2.6.32-220.13.1.el6.x86_64
dracut-kernel-004-256.el6_2.1.noarch
kernel-debug-devel-2.6.32-220.13.1.el6.x86_64
kernel-2.6.32-220.13.1.el6.x86_64
kernel-doc-2.6.32-220.13.1.el6.noarch
kernel-headers-2.6.32-220.13.1.el6.x86_64
kernel-debug-2.6.32-220.13.1.el6.x86_64
kernel-firmware-2.6.32-220.13.1.el6.noarch
[root@uamplgosussd01 2.6.32-220.13.1.el6.x86_64]#

Nouredine A.
Nouredine A.

Nouredine A.

Level
4
5000 / 5000
points
Team

As you can see in the output the " /lib/modules/2.6.32-220.13.1.el6.x86_64/build/include/linux/version.h" file is missing.

Normally after installing the kernel headers that file should be there. Could you try the command below and run again the make command?

cp -v /usr/include/linux/version.h /lib/modules/2.6.32-220.13.1.el6.x86_64/build/include/linux