[LiSA-Users] Cross compiling

Kerry Brown pn_dev at digis.net
Thu Jan 11 11:54:34 EET 2007


I actually just had to play with the Make file to get it to compile For 
Big endian Arm....


Here is the error I get when i try to link swctl

arm-linux-ld -EB -o swctl swctl.o ../lib/misc.o
arm-linux-ld: warning: cannot find entry symbol _start; defaulting to 
00008074
swctl.o(.text+0x1c): In function `parse_hw_addr':
: undefined reference to `calloc'
swctl.o(.text+0x70): In function `parse_hw_addr':
: undefined reference to `sscanf'
swctl.o(.text+0x84): In function `parse_hw_addr':
: undefined reference to `printf'
swctl.o(.text+0xa8): In function `parse_hw_addr':
: undefined reference to `sscanf'
swctl.o(.text+0xbc): In function `parse_hw_addr':
: undefined reference to `printf'
swctl.o(.text+0x150): In function `parse_hw_addr':
: undefined reference to `printf'
swctl.o(.text+0x158): In function `parse_hw_addr':
: undefined reference to `exit'
swctl.o(.text+0x18c): In function `parse_hw_addr':
: undefined reference to `printf'
swctl.o(.text+0x1a4): In function `parse_hw_addr':
: undefined reference to `printf'
swctl.o(.text+0x1e0): In function `usage':
: undefined reference to `printf'
swctl.o(.text+0x22c): In function `main':
: undefined reference to `socket'
swctl.o(.text+0x248): In function `main':
: undefined reference to `perror'
swctl.o(.text+0x26c): In function `main':
: undefined reference to `strcmp'
swctl.o(.text+0x2c8): In function `main':
: undefined reference to `ioctl'
swctl.o(.text+0x2e4): In function `main':
: undefined reference to `perror'
swctl.o(.text+0x308): In function `main':
: undefined reference to `strcmp'
swctl.o(.text+0x364): In function `main':
: undefined reference to `ioctl'
swctl.o(.text+0x380): In function `main':
: undefined reference to `perror'
swctl.o(.text+0x3a4): In function `main':
: undefined reference to `strcmp'
swctl.o(.text+0x3e8): In function `main':
: undefined reference to `atoi'
swctl.o(.text+0x41c): In function `main':
: undefined reference to `ioctl'
swctl.o(.text+0x438): In function `main':
: undefined reference to `perror'
swctl.o(.text+0x45c): In function `main':
: undefined reference to `strcmp'
swctl.o(.text+0x4a0): In function `main':
: undefined reference to `atoi'
swctl.o(.text+0x4c8): In function `main':
: undefined reference to `ioctl'
swctl.o(.text+0x4e4): In function `main':
: undefined reference to `perror'
swctl.o(.text+0x508): In function `main':
: undefined reference to `strcmp'
swctl.o(.text+0x54c): In function `main':
: undefined reference to `atoi'
swctl.o(.text+0x580): In function `main':
: undefined reference to `ioctl'
swctl.o(.text+0x59c): In function `main':
: undefined reference to `perror'
swctl.o(.text+0x5c0): In function `main':
: undefined reference to `strcmp'
swctl.o(.text+0x618): In function `main':
: undefined reference to `atoi'
swctl.o(.text+0x638): In function `main':
: undefined reference to `ioctl'
swctl.o(.text+0x654): In function `main':
: undefined reference to `perror'
swctl.o(.text+0x678): In function `main':
: undefined reference to `strcmp'
swctl.o(.text+0x6d0): In function `main':
: undefined reference to `atoi'
swctl.o(.text+0x6f0): In function `main':
: undefined reference to `ioctl'
swctl.o(.text+0x70c): In function `main':
: undefined reference to `perror'
swctl.o(.text+0x730): In function `main':
: undefined reference to `strcmp'
swctl.o(.text+0x788): In function `main':
: undefined reference to `atoi'
swctl.o(.text+0x7a8): In function `main':
: undefined reference to `ioctl'
swctl.o(.text+0x7c4): In function `main':
: undefined reference to `perror'
swctl.o(.text+0x7e8): In function `main':
: undefined reference to `strcmp'
swctl.o(.text+0x840): In function `main':
: undefined reference to `atoi'
swctl.o(.text+0x860): In function `main':
: undefined reference to `ioctl'
swctl.o(.text+0x87c): In function `main':
: undefined reference to `perror'
swctl.o(.text+0x8a0): In function `main':
: undefined reference to `strcmp'
swctl.o(.text+0x8fc): In function `main':
: undefined reference to `ioctl'
swctl.o(.text+0x918): In function `main':
: undefined reference to `perror'
swctl.o(.text+0x93c): In function `main':
: undefined reference to `strcmp'
swctl.o(.text+0x980): In function `main':
: undefined reference to `atoi'
swctl.o(.text+0x9a0): In function `main':
: undefined reference to `ioctl'
swctl.o(.text+0x9bc): In function `main':
: undefined reference to `perror'
swctl.o(.text+0x9e0): In function `main':
: undefined reference to `strcmp'
swctl.o(.text+0xa38): In function `main':
: undefined reference to `atoi'
swctl.o(.text+0xa70): In function `main':
: undefined reference to `ioctl'
swctl.o(.text+0xa8c): In function `main':
: undefined reference to `perror'
swctl.o(.text+0xab0): In function `main':
: undefined reference to `strcmp'
swctl.o(.text+0xaf4): In function `main':
: undefined reference to `atoi'
swctl.o(.text+0xb14): In function `main':
: undefined reference to `ioctl'
swctl.o(.text+0xb30): In function `main':
: undefined reference to `perror'
swctl.o(.text+0xb54): In function `main':
: undefined reference to `strcmp'
swctl.o(.text+0xb98): In function `main':
: undefined reference to `atoi'
swctl.o(.text+0xbb8): In function `main':
: undefined reference to `ioctl'
swctl.o(.text+0xbd4): In function `main':
: undefined reference to `perror'
swctl.o(.text+0xbf8): In function `main':
: undefined reference to `strcmp'
swctl.o(.text+0xc0c): In function `main':
: undefined reference to `malloc'
swctl.o(.text+0xc40): In function `main':
: undefined reference to `__assert_fail'
swctl.o(.text+0xc68): In function `main':
: undefined reference to `memset'
swctl.o(.text+0xca0): In function `main':
: undefined reference to `ioctl'
swctl.o(.text+0xcb4): In function `main':
: undefined reference to `printf'
swctl.o(.text+0xcc4): In function `main':
: undefined reference to `__errno_location'
swctl.o(.text+0xcdc): In function `main':
: undefined reference to `printf'
swctl.o(.text+0xcf0): In function `main':
: undefined reference to `realloc'
swctl.o(.text+0xd1c): In function `main':
: undefined reference to `__assert_fail'
swctl.o(.text+0xd34): In function `main':
: undefined reference to `perror'
swctl.o(.text+0xe1c): In function `main':
: undefined reference to `stdout'
../lib/misc.o(.text+0x48): In function `cmd_showmac':
: undefined reference to `fprintf'
../lib/misc.o(.text+0x10c): In function `cmd_showmac':
: undefined reference to `fprintf'
make[1]: *** [swctl] Error 1
make[1]: Leaving directory 
`/home/user/Desktop/Downloads/lisa/userspace/swctl'
make: *** [all] Error 2



Radu Rendec wrote:
> On Wed, 2007-01-10 at 19:25 -0700, Support wrote:
>   
>> I wanted to try this software out first before I started to backport the 
>> current version of lisa to the 2.6.15 kernel im running on an embeded 
>> Intel arm ixp system,
>>
>> So the Kernel patching went well, and i was able to compile the kernel 
>> and the module..and after a bit of work i was able to compile the swctl 
>> userland application.....However I cannot get it to link to the misc.o 
>> file...
>> So I have no way of setting things up from userland....
>>     
>
> We developed lisa on x86 platforms and never tested on any other
> platform.
>
> What changes have you made to swctl.c to get it to compile on your
> platform?
>
> Exactly what happens when you try to link swctl.o and misc.o together?
>
>
> _______________________________________________
> LiSA-Users mailing list
> LiSA-Users at lisa.ines.ro
> http://lisa.ines.ro/mailman/listinfo/lisa-users
>   



More information about the LiSA-Users mailing list