[Olsr-dev] compile error on native ARMv7 / Ubuntu15.04

Bastian Bittorf (spam-protected)
Sun Nov 8 21:39:14 CET 2015


while compiling http://www.olsr.org/releases/0.6/latest.tar.bz2
with 'make build_all' it gives this warning
on a 4-core/2GB RAM native board:

[...]
[LD] olsrd_bmf.so.1.7.0
make[1]: Leaving directory '/root/olsrd-0.6.8/lib/bmf'
make[1]: Entering directory '/root/olsrd-0.6.8/lib/dot_draw'
[CC] src/olsrd_plugin.c
[CC] src/olsrd_dot_draw.c
[LD] olsrd_dot_draw.so.0.3
make[1]: Leaving directory '/root/olsrd-0.6.8/lib/dot_draw'
make[1]: Entering directory '/root/olsrd-0.6.8/lib/dyn_gw'
[CC] src/olsrd_plugin.c
[CC] src/olsrd_dyn_gw.c
[LD] olsrd_dyn_gw.so.0.5
make[1]: Leaving directory '/root/olsrd-0.6.8/lib/dyn_gw'
make[1]: Entering directory '/root/olsrd-0.6.8/lib/dyn_gw_plain'
[CC] src/olsrd_dyn_gw_plain.c
[LD] olsrd_dyn_gw_plain.so.0.4
make[1]: Leaving directory '/root/olsrd-0.6.8/lib/dyn_gw_plain'
make[1]: Entering directory '/root/olsrd-0.6.8/lib/httpinfo'
[CC] src/olsrd_plugin.c
[CC] src/olsrd_httpinfo.c
[CC] src/admin_interface.c
[LD] olsrd_httpinfo.so.0.1
/usr/bin/ld: ../../src/cfgparser/cfgfile_gen.o: relocation
R_ARM_THM_MOVW_ABS_NC against `__stack_chk_guard' can not be used when
making a shared object; recompile with -fPIC
../../src/cfgparser/cfgfile_gen.o: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
Makefile:59: recipe for target 'olsrd_httpinfo.so.0.1' failed
make[1]: *** [olsrd_httpinfo.so.0.1] Error 1
make[1]: Leaving directory '/root/olsrd-0.6.8/lib/httpinfo'
Makefile:236: recipe for target 'libs' failed
make: *** [libs] Error 2

After adding this line to the Makefile it works fine:
CFLAGS += -fPIC

just in case somebody has the same problem.
bye, bastian



More information about the Olsr-dev mailing list