[Olsr-users] HTTPinfo fail to build under FreeBSD

Michel Blais (spam-protected)
Mon Nov 9 20:25:11 CET 2015


Thanks Henning for answering back. Sadly it don't seem to work and
strangly, it return the same -fPIC error.

$ gmake CC=gcc48 CXX=g++48 CPP="gcc48 -E" EXTRA_CFLAGS=-fPIC
[LD] olsrd_httpinfo.so.0.1
/usr/local/bin/ld: ../../src/cfgparser/cfgfile_gen.o: relocation
R_X86_64_32 against `.rodata' 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
gmake: *** [olsrd_httpinfo.so.0.1] Error 1

Even if I enter anything else as extra flag, like EXTRA_CFLAGS=test, it
return the same error.



---
Cordialement,

Michel Blais
Administrateur réseau
Targo communications

2015-11-09 14:05 GMT-05:00 Henning Rogge <(spam-protected)>:

> Hi,
>
> that is funny, we had another "-fPIC" related discussion today...
>
> quick fix:
> make CC=gcc48 CXX=g++48 CPP="gcc48 -E" EXTRA_CFLAGS=-fPIC
>
> Still, I wonder why all these fPIC issues are coming up at the moment...
>
> and why your BSD fails at linking something that is NOT part of the
> httpinfo but can compile other plugins.
>
> Henning
>
> On Mon, Nov 9, 2015 at 7:50 PM, Michel Blais <(spam-protected)>
> wrote:
> > FreeBSD 10.2 with OLSRd 0.9.0.3
> > I've also saw this problem with older version of FreeBSD  10.
> > I normally work around this by downloading olsrd paquage and extracting
> > httpinfo from it but since it writted in the httpinfo README file that
> this
> > plugin is really version sensitive, I would like to know how to work
> around
> > this error.
> >
> > FreeBSD 10.2 repo version
> > olsrd-0.6.6.2_1                OLSR routing daemon
> >
> > The error I encounter while trying to build httpinfo
> >
> > $ gmake CC=gcc48 CXX=g++48 CPP="gcc48 -E"
> >
> > [LD] olsrd_httpinfo.so.0.1
> > /usr/local/bin/ld: ../../src/cfgparser/cfgfile_gen.o: relocation
> R_X86_64_32
> > against `.rodata' 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
> > gmake: *** [olsrd_httpinfo.so.0.1] Error 1
> >
> > I can build olsrd, txtinfo and secure without error with the same
> command.
> >
> > Any way to work around this error ?
> >
> > Thanks
> >
> > --
> > Olsr-users mailing list
> > (spam-protected)
> > https://lists.olsr.org/mailman/listinfo/olsr-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.olsr.org/pipermail/olsr-users/attachments/20151109/8dceca1e/attachment.html>


More information about the Olsr-users mailing list