[olsr-dev] olsr for uclinux

Mohd Shakir bin Zakaria (spam-protected)
Fri Oct 6 12:09:06 CEST 2006


I followed your steps, and I still get the same error as what I encountered
before, as pasted below. Have you succeeded in your attempt anyway?

make[3]: Entering directory `/snapgear/user/olsrd/src/cfgparser'
ucfront-gcc arm-linux-gcc -mbig-endian -O1 -fno-common -fno-builtin -Wall
-Dlinux -D__linux__ -Dunix  -DEMBED -MD -Isrc -I./src  -Dlinux -MD -Isrc
-I../../src  -Dlinux -DMAKELIB   -c -o olsrd_conf.o olsrd_conf.c
bison -d -ooparse.c oparse.y
ucfront-gcc arm-linux-gcc -mbig-endian -O1 -fno-common -fno-builtin -Wall
-Dlinux -D__linux__ -Dunix  -DEMBED -MD -Isrc -I./src  -Dlinux -MD -Isrc
-I../../src  -Dlinux -DMAKELIB   -c -o oparse.o oparse.c
flex -ooscan.c oscan.lex
ucfront-gcc arm-linux-gcc -mbig-endian -O1 -fno-common -fno-builtin -Wall
-Dlinux -D__linux__ -Dunix  -DEMBED -MD -Isrc -I./src  -Dlinux -MD -Isrc
-I../../src  -Dlinux -DMAKELIB   -c -o oscan.o oscan.c
ucfront-gcc arm-linux-gcc -mbig-endian -O1 -fno-common -fno-builtin -Wall
-Dlinux -D__linux__ -Dunix  -DEMBED -MD -Isrc -I./src  -Dlinux -MD -Isrc
-I../../src  -Dlinux -DMAKELIB   -c -o cfgfile_gen.o cfgfile_gen.c
ucfront-gcc arm-linux-gcc -mbig-endian -g -fno-common -fno-builtin
-Wl,-export-dynamic  -Wl,-export-dynamic  -shared
-Wl,-soname,olsrd_cfgparser.so.0.1 -o olsrd_cfgparser.so.0.1 olsrd_conf.o
oparse.o oscan.o cfgfile_gen.o
oparse.o(.bss+0x8): In function `ifs_in_curr_cfg':
: multiple definition of `cnf'
olsrd_conf.o(.bss+0x4): first defined here
oparse.o(.bss+0x4): In function `ifs_in_curr_cfg':
: multiple definition of `current_line'
olsrd_conf.o(.bss+0x0): first defined here
oscan.o(.bss+0x40): In function `yy_last_accepting_cpos':
: multiple definition of `current_line'
olsrd_conf.o(.bss+0x0): first defined here
oscan.o(.bss+0x44): In function `yy_last_accepting_cpos':
: multiple definition of `cnf'
olsrd_conf.o(.bss+0x4): first defined here
cfgfile_gen.o(.bss+0x0): multiple definition of `current_line'
olsrd_conf.o(.bss+0x0): first defined here
cfgfile_gen.o(.bss+0x4): multiple definition of `cnf'
olsrd_conf.o(.bss+0x4): first defined here
collect2: ld returned 1 exit status
make[3]: *** [olsrd_cfgparser.so.0.1] Error 1
make[3]: Leaving directory `/snapgear/user/olsrd/src/cfgparser'
make[2]: *** [cfgparser] Error 2
make[2]: Leaving directory `/snapgear/user/olsrd'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/snapgear/user'
make: *** [subdirs] Error 1


On 10/6/06, Yoshihiko <(spam-protected)> wrote:
>
> I did it, too.
>
> I added $(LDLIBS) to the link command of Makefile,
> and added the part of romfs.
> Then, comment out is to do CC ?= gcc of Makefile.inc,
> and change OS detection to the OS = linux.
>
> Yoshihiko
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.olsr.org/pipermail/olsr-dev/attachments/20061006/c268c187/attachment.html>


More information about the Olsr-dev mailing list