Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #1

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Fixes #1

wants to merge 2 commits into from

Conversation

mwarning
Copy link

@mwarning mwarning commented Jun 2, 2020

Fixes the compilation and some warnings of the user space code.

@mwarning
Copy link
Author

mwarning commented Jun 2, 2020

The kernel part still does not compile for me though:

[aodv-uu-for-kernel-version-3.19]$ make
gcc -Wall -O3 -g -DDEBUG -DCONFIG_GATEWAY  -DDEBUG -c -o main.o main.c
gcc -Wall -O3 -g -DDEBUG -DCONFIG_GATEWAY  -DDEBUG -c -o list.o list.c
gcc -Wall -O3 -g -DDEBUG -DCONFIG_GATEWAY  -DDEBUG -c -o debug.o debug.c
gcc -Wall -O3 -g -DDEBUG -DCONFIG_GATEWAY  -DDEBUG -c -o timer_queue.o timer_queue.c
gcc -Wall -O3 -g -DDEBUG -DCONFIG_GATEWAY  -DDEBUG -c -o aodv_socket.o aodv_socket.c
gcc -Wall -O3 -g -DDEBUG -DCONFIG_GATEWAY  -DDEBUG -c -o aodv_hello.o aodv_hello.c
gcc -Wall -O3 -g -DDEBUG -DCONFIG_GATEWAY  -DDEBUG -c -o aodv_neighbor.o aodv_neighbor.c
gcc -Wall -O3 -g -DDEBUG -DCONFIG_GATEWAY  -DDEBUG -c -o aodv_timeout.o aodv_timeout.c
gcc -Wall -O3 -g -DDEBUG -DCONFIG_GATEWAY  -DDEBUG -c -o routing_table.o routing_table.c
gcc -Wall -O3 -g -DDEBUG -DCONFIG_GATEWAY  -DDEBUG -c -o seek_list.o seek_list.c
gcc -Wall -O3 -g -DDEBUG -DCONFIG_GATEWAY  -DDEBUG -c -o aodv_rreq.o aodv_rreq.c
gcc -Wall -O3 -g -DDEBUG -DCONFIG_GATEWAY  -DDEBUG -c -o aodv_rrep.o aodv_rrep.c
gcc -Wall -O3 -g -DDEBUG -DCONFIG_GATEWAY  -DDEBUG -c -o aodv_rerr.o aodv_rerr.c
gcc -Wall -O3 -g -DDEBUG -DCONFIG_GATEWAY  -DDEBUG -c -o nl.o nl.c
gcc -Wall -O3 -g -DDEBUG -DCONFIG_GATEWAY  -DDEBUG -c -o locality.o locality.c
gcc -Wall -O3 -g -DDEBUG -DCONFIG_GATEWAY  -DDEBUG -o aodvd main.o list.o debug.o timer_queue.o aodv_socket.o aodv_hello.o aodv_neighbor.o aodv_timeout.o routing_table.o seek_list.o aodv_rreq.o aodv_rrep.o aodv_rerr.o nl.o locality.o 
make -C /home/mwarning/tmp/aodv-uu-for-kernel-version-3.19/lnx KERNEL_DIR=/lib/modules/5.4.38_1/build KCC=gcc XDEFS=-DDEBUG
make[1]: Entering directory '/home/mwarning/tmp/aodv-uu-for-kernel-version-3.19/lnx'
make -C /lib/modules/5.4.38_1/build SUBDIRS=/home/mwarning/tmp/aodv-uu-for-kernel-version-3.19/lnx modules
make[2]: Entering directory '/usr/src/kernel-headers-5.4.38_1'
  HOSTCC  scripts/basic/fixdep
scripts/basic/fixdep.c:410:1: fatal error: opening dependency file scripts/basic/.fixdep.d: Permission denied
  410 | }
      | ^
compilation terminated.
make[4]: *** [scripts/Makefile.host:107: scripts/basic/fixdep] Error 1
make[3]: *** [Makefile:500: scripts_basic] Error 2
make[2]: *** [Makefile:677: include/config/auto.conf.cmd] Error 2
make[2]: *** [include/config/auto.conf.cmd] Deleting file 'include/config/tristate.conf'
make[2]: unlink: include/config/tristate.conf: Permission denied
make[2]: Leaving directory '/usr/src/kernel-headers-5.4.38_1'
make[1]: *** [Makefile:69: kaodv.ko] Error 2
make[1]: Leaving directory '/home/mwarning/tmp/aodv-uu-for-kernel-version-3.19/lnx'
make: *** [Makefile:125: kaodv] Error 2

@mwarning
Copy link
Author

mwarning commented Jun 2, 2020

The inline declarations were causing many undefined references errors

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant