[Olsr-dev] cannot compile on ARM Arch Linux
Ferry Huberts
(spam-protected)
Thu Jul 25 15:43:25 CEST 2013
try adding -fPIC to line 66 of src/cfgparser and see if that works.
if so, pls tell me and I'll try it on all our builds
On 25/07/13 15:36, Saverio Proto wrote:
> Hello,
>
> I wanted to compile olsrd for my cubieboard. I am compiling directly
> on the ARM board. Compiling the core is fine. When I go for make libs
> I get the following problem:
>
> ake[1]: Entering directory `/usr/src/olsrd/lib/httpinfo'
> make[1]: Leaving directory `/usr/src/olsrd/lib/httpinfo'
> make[1]: Entering directory `/usr/src/olsrd/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_MOVW_ABS_NC against `a local symbol' can not be used when making
> a shared object; recompile with -fPIC
> ../../src/cfgparser/cfgfile_gen.o: could not read symbols: Bad value
> collect2: error: ld returned 1 exit status
> make[1]: *** [olsrd_httpinfo.so.0.1] Error 1
> make[1]: Leaving directory `/usr/src/olsrd/lib/httpinfo'
> make: *** [libs] Error 2
>
> any hint how to fix the Makefile ?
>
> Saverio
>
--
Ferry Huberts
More information about the Olsr-dev
mailing list