Modify

Opened 8 years ago

Closed 8 years ago

Last modified 4 years ago

#6585 closed defect (wontfix)

cross compil 2.6.24-7

Reported by: majax6666@… Owned by: developers
Priority: normal Milestone: Barrier Breaker 14.07
Component: packages Version: Kamikaze 8.09
Keywords: 2.6.24-7 Cc:

Description (last modified by hauke)

Hello,

I don't know if this is the right place to post my question. So, just tell me if I'm wrong.

My issue: I'm trying to cross compile a routing protocol for an IXP42X ARM device with the buildroot but I get a lot errors.

The first one is the variable "LINUX_ARM_ARCH" which seems to be not defined, even if I compile Linux Kernel (openwrt-r11777 => 2.6.24-7) with different options...

Second error consists in the number of arguments of some functions.
I think the kernel API has changed, that's why it shows these messages but I'm totally sure.

Please, can you help me out?

Here is the log

namur@omf-console:~/aodv-uu-0.9.5$ make
cc -Wall -O3 -g -DDEBUG -DCONFIG_GATEWAY  -DDEBUG -c -o main.o main.c
cc -Wall -O3 -g -DDEBUG -DCONFIG_GATEWAY  -DDEBUG -c -o list.o list.c
cc -Wall -O3 -g -DDEBUG -DCONFIG_GATEWAY  -DDEBUG -c -o debug.o debug.c
cc -Wall -O3 -g -DDEBUG -DCONFIG_GATEWAY  -DDEBUG -c -o timer_queue.o timer_queue.c
cc -Wall -O3 -g -DDEBUG -DCONFIG_GATEWAY  -DDEBUG -c -o aodv_socket.o aodv_socket.c
cc -Wall -O3 -g -DDEBUG -DCONFIG_GATEWAY  -DDEBUG -c -o aodv_hello.o aodv_hello.c
cc -Wall -O3 -g -DDEBUG -DCONFIG_GATEWAY  -DDEBUG -c -o aodv_neighbor.o aodv_neighbor.c
cc -Wall -O3 -g -DDEBUG -DCONFIG_GATEWAY  -DDEBUG -c -o aodv_timeout.o aodv_timeout.c
cc -Wall -O3 -g -DDEBUG -DCONFIG_GATEWAY  -DDEBUG -c -o routing_table.o routing_table.c
cc -Wall -O3 -g -DDEBUG -DCONFIG_GATEWAY  -DDEBUG -c -o seek_list.o seek_list.c
cc -Wall -O3 -g -DDEBUG -DCONFIG_GATEWAY  -DDEBUG -c -o aodv_rreq.o aodv_rreq.c
cc -Wall -O3 -g -DDEBUG -DCONFIG_GATEWAY  -DDEBUG -c -o aodv_rrep.o aodv_rrep.c
cc -Wall -O3 -g -DDEBUG -DCONFIG_GATEWAY  -DDEBUG -c -o aodv_rerr.o aodv_rerr.c
cc -Wall -O3 -g -DDEBUG -DCONFIG_GATEWAY  -DDEBUG -c -o nl.o nl.c
cc -Wall -O3 -g -DDEBUG -DCONFIG_GATEWAY  -DDEBUG -c -o locality.o locality.c
cc -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/namur/aodv-uu-0.9.5/lnx KERNEL_DIR=/home/namur/openwrt-r11777/build_dir/linux-ixp4xx_generic/linux-2.6.24.7 KCC=cc XDEFS=-DDEBUG
make[1]: Entering directory `/home/namur/aodv-uu-0.9.5/lnx'
make -C /home/namur/openwrt-r11777/build_dir/linux-ixp4xx_generic/linux-2.6.24.7 SUBDIRS=/home/namur/aodv-uu-0.9.5/lnx modules
make[2]: Entering directory `/home/namur/openwrt-r11777/build_dir/linux-ixp4xx_generic/linux-2.6.24.7'
  CC [M]  /home/namur/aodv-uu-0.9.5/lnx/kaodv-mod.o
In file included from include/linux/irqflags.h:46,
                 from include/asm/system.h:79,
                 from include/asm/bitops.h:27,
                 from include/linux/bitops.h:17,
                 from include/linux/kernel.h:15,
                 from include/linux/moduleparam.h:6,
                 from /home/namur/aodv-uu-0.9.5/lnx/kaodv-mod.c:27:
include/asm/irqflags.h:11:5: warning: "__LINUX_ARM_ARCH__" is not defined
In file included from include/asm/bitops.h:27,
                 from include/linux/bitops.h:17,
                 from include/linux/kernel.h:15,
                 from include/linux/moduleparam.h:6,
                 from /home/namur/aodv-uu-0.9.5/lnx/kaodv-mod.c:27:
include/asm/system.h:166:5: warning: "__LINUX_ARM_ARCH__" is not defined
include/asm/system.h:172:5: warning: "__LINUX_ARM_ARCH__" is not defined
include/asm/system.h:176:35: warning: "__LINUX_ARM_ARCH__" is not defined
include/asm/system.h:296:5: warning: "__LINUX_ARM_ARCH__" is not defined
include/asm/system.h:301:5: warning: "__LINUX_ARM_ARCH__" is not defined
In file included from include/linux/bitops.h:17,
                 from include/linux/kernel.h:15,
                 from include/linux/moduleparam.h:6,
                 from /home/namur/aodv-uu-0.9.5/lnx/kaodv-mod.c:27:
include/asm/bitops.h:237:5: warning: "__LINUX_ARM_ARCH__" is not defined
In file included from include/linux/moduleparam.h:6,
                 from /home/namur/aodv-uu-0.9.5/lnx/kaodv-mod.c:27:
include/linux/kernel.h:149: warning: conflicting types for built-in function 'snprintf'
include/linux/kernel.h:151: warning: conflicting types for built-in function 'vsnprintf'
In file included from include/linux/prefetch.h:14,
                 from include/linux/list.h:8,
                 from include/linux/module.h:9,
                 from /home/namur/aodv-uu-0.9.5/lnx/kaodv-mod.c:29:
include/asm/processor.h:103:5: warning: "__LINUX_ARM_ARCH__" is not defined
In file included from include/asm/thread_info.h:16,
                 from include/linux/thread_info.h:34,
                 from include/linux/preempt.h:9,
                 from include/linux/spinlock.h:49,
                 from include/linux/seqlock.h:29,
                 from include/linux/time.h:12,
                 from include/linux/stat.h:60,
                 from include/linux/module.h:10,
                 from /home/namur/aodv-uu-0.9.5/lnx/kaodv-mod.c:29:
include/asm/fpstate.h:28:5: warning: "__LINUX_ARM_ARCH__" is not defined
In file included from include/linux/spinlock.h:333,
                 from include/linux/seqlock.h:29,
                 from include/linux/time.h:12,
                 from include/linux/stat.h:60,
                 from include/linux/module.h:10,
                 from /home/namur/aodv-uu-0.9.5/lnx/kaodv-mod.c:29:
include/asm/atomic.h:25:5: warning: "__LINUX_ARM_ARCH__" is not defined
In file included from include/linux/string.h:19,
                 from include/linux/bitmap.h:8,
                 from include/linux/nodemask.h:85,
                 from include/linux/mmzone.h:16,
                 from include/linux/gfp.h:4,
                 from include/linux/slab.h:14,
                 from include/linux/percpu.h:5,
                 from include/asm-generic/local.h:4,
                 from include/asm/local.h:1,
                 from include/linux/module.h:19,
                 from /home/namur/aodv-uu-0.9.5/lnx/kaodv-mod.c:29:
include/asm/string.h:16: warning: conflicting types for built-in function 'memcpy'
include/asm/string.h:19: warning: conflicting types for built-in function 'memmove'
include/asm/string.h:26: warning: conflicting types for built-in function 'memset'
In file included from include/linux/bitmap.h:8,
                 from include/linux/nodemask.h:85,
                 from include/linux/mmzone.h:16,
                 from include/linux/gfp.h:4,
                 from include/linux/slab.h:14,
                 from include/linux/percpu.h:5,
                 from include/asm-generic/local.h:4,
                 from include/asm/local.h:1,
                 from include/linux/module.h:19,
                 from /home/namur/aodv-uu-0.9.5/lnx/kaodv-mod.c:29:
include/linux/string.h:25: warning: conflicting types for built-in function 'strncpy'
include/linux/string.h:34: warning: conflicting types for built-in function 'strncat'
include/linux/string.h:43: warning: conflicting types for built-in function 'strncmp'
include/linux/string.h:52: warning: conflicting types for built-in function 'strncasecmp'
include/linux/string.h:68: warning: conflicting types for built-in function 'strlen'
include/linux/string.h:80: warning: conflicting types for built-in function 'strspn'
include/linux/string.h:83: warning: conflicting types for built-in function 'strcspn'
include/linux/string.h:99: warning: conflicting types for built-in function 'memcmp'
In file included from include/asm/semaphore.h:13,
                 from include/linux/fs.h:290,
                 from include/linux/proc_fs.h:5,
                 from /home/namur/aodv-uu-0.9.5/lnx/kaodv-mod.c:32:
include/asm/locks.h:15:5: warning: "__LINUX_ARM_ARCH__" is not defined
In file included from include/linux/jiffies.h:4,
                 from include/linux/sched.h:54,
                 from include/asm/uaccess.h:14,
                 from include/net/checksum.h:25,
                 from include/linux/skbuff.h:27,
                 from /home/namur/aodv-uu-0.9.5/lnx/kaodv-mod.c:34:
include/linux/calc64.h: In function 'do_div_llr':
include/linux/calc64.h:25: error: '__LINUX_ARM_ARCH__' undeclared (first use in this function)
include/linux/calc64.h:25: error: (Each undeclared identifier is reported only once
include/linux/calc64.h:25: error: for each function it appears in.)
In file included from include/asm/io.h:85,
                 from include/linux/scatterlist.h:8,
                 from include/asm/dma-mapping.h:8,
                 from include/linux/dma-mapping.h:52,
                 from include/linux/dmaengine.h:29,
                 from include/linux/skbuff.h:29,
                 from /home/namur/aodv-uu-0.9.5/lnx/kaodv-mod.c:34:
include/asm/arch/io.h: In function '__ixp4xx_ioread16':
include/asm/arch/io.h:415: warning: cast to pointer from integer of different size
include/asm/arch/io.h: In function '__ixp4xx_ioread32':
include/asm/arch/io.h:443: warning: cast to pointer from integer of different size
/home/namur/aodv-uu-0.9.5/lnx/kaodv-mod.c: In function 'kaodv_hook':
/home/namur/aodv-uu-0.9.5/lnx/kaodv-mod.c:273: warning: passing argument 1 of 'ip_route_me_harder' from incompatible pointer type
/home/namur/aodv-uu-0.9.5/lnx/kaodv-mod.c: At top level:
/home/namur/aodv-uu-0.9.5/lnx/kaodv-mod.c:321: warning: initialization from incompatible pointer type
/home/namur/aodv-uu-0.9.5/lnx/kaodv-mod.c:330: warning: initialization from incompatible pointer type
/home/namur/aodv-uu-0.9.5/lnx/kaodv-mod.c:339: warning: initialization from incompatible pointer type
/home/namur/aodv-uu-0.9.5/lnx/kaodv-mod.c: In function 'kaodv_init':
/home/namur/aodv-uu-0.9.5/lnx/kaodv-mod.c:391: warning: passing argument 1 of 'dev_get_by_name' from incompatible pointer type
/home/namur/aodv-uu-0.9.5/lnx/kaodv-mod.c:391: error: too few arguments to function 'dev_get_by_name'
/home/namur/aodv-uu-0.9.5/lnx/kaodv-mod.c:402: error: implicit declaration of function 'proc_net_create'
/home/namur/aodv-uu-0.9.5/lnx/kaodv-mod.c: In function 'kaodv_exit':
/home/namur/aodv-uu-0.9.5/lnx/kaodv-mod.c:432: warning: passing argument 1 of 'proc_net_remove' from incompatible pointer type
/home/namur/aodv-uu-0.9.5/lnx/kaodv-mod.c:432: error: too few arguments to function 'proc_net_remove'
/home/namur/aodv-uu-0.9.5/lnx/kaodv-mod.c: At top level:
/home/namur/aodv-uu-0.9.5/lnx/kaodv-mod.c:440: fatal error: opening dependency file /home/namur/aodv-uu-0.9.5/lnx/.kaodv-mod.o.d: Permission denied
compilation terminated.
make[3]: *** [/home/namur/aodv-uu-0.9.5/lnx/kaodv-mod.o] Error 1
make[2]: *** [_module_/home/namur/aodv-uu-0.9.5/lnx] Error 2
make[2]: Leaving directory `/home/namur/openwrt-r11777/build_dir/linux-ixp4xx_generic/linux-2.6.24.7'
make[1]: *** [kaodv.ko] Error 2
make[1]: Leaving directory `/home/namur/aodv-uu-0.9.5/lnx'
make: *** [kaodv] Error 2

Attachments (1)

new file (3.9 KB) - added by altaf-khan@… 8 years ago.
this is aodv-uu 0.9.5 compile error any person if he know plz tell me

Download all attachments as: .zip

Change History (5)

comment:1 Changed 8 years ago by hauke

  • Description modified (diff)

comment:2 Changed 8 years ago by florian

  • Resolution set to wontfix
  • Status changed from new to closed

This issue should be resolved by the aodv-uu upstream authors.

Changed 8 years ago by altaf-khan@…

this is aodv-uu 0.9.5 compile error any person if he know plz tell me

comment:3 Changed 8 years ago by thagaz@…

There are some major changes in Linux kernel. As I was trying to compile it on 2.6.30 I found those differences:
1)€˜NF_IP_PRE_ROUTING (and all alike constants) are changed to €˜NF_INET_PRE_ROUTING
2)dev_get_by_name, proc_net_create, €˜proc_net_remove have been changed, and needs more arguments.

I have compiled it with 2.6.30 kernel, but not everything is working as it should (I am lacking of experience and time for it). Contact me if you want to get sources.

comment:4 Changed 4 years ago by jow

  • Milestone changed from Attitude Adjustment 12.09 to Barrier Breaker 14.07

Milestone Attitude Adjustment 12.09 deleted

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.