<div dir="ltr">The only file that I found with grep that have this file name is the Makefile at the root of httpinfo directory.<br><br>OBJS += $(TOPDIR)/src/cfgparser/cfgfile_gen.o<br><br>Since I'm not a dev, I don't really know what to do with this information.</div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature"><div dir="ltr">---<br>Cordialement,<br><br>Michel Blais<br>Administrateur réseau<br>Targo communications<br></div></div></div>
<br><div class="gmail_quote">2015-11-09 14:50 GMT-05:00 Henning Rogge <span dir="ltr"><<a href="mailto:hrogge@gmail.com" target="_blank">hrogge@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Can you look for the line that creates "cfgfile_gen.o" ?<br>
<span class="HOEnZb"><font color="#888888"><br>
Henning<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
On Mon, Nov 9, 2015 at 8:43 PM, Michel Blais <<a href="mailto:michel@targointernet.com">michel@targointernet.com</a>> wrote:<br>
> Yes, I see it. I also saw that I forgotted the OS=fbsd flag but added it but<br>
> still the same error<br>
><br>
> $ gmake VERBOSE=1 OS=fbsd CC=gcc48 CXX=g++48 CPP="gcc48 -E"<br>
> EXTRA_CFLAGS=-fPIC<br>
> gcc48 -shared -Wl,-soname,olsrd_httpinfo<br>
> -Wl,--version-script=version-script.txt -Wl,--warn-common -fPIC -o<br>
> olsrd_httpinfo.so.0.1 src/admin_interface.o src/olsrd_httpinfo.o<br>
> src/olsrd_plugin.o ../../src/cfgparser/cfgfile_gen.o<br>
> /usr/local/bin/ld: ../../src/cfgparser/cfgfile_gen.o: relocation R_X86_64_32<br>
> against `.rodata' can not be used when making a shared object; recompile<br>
> with -fPIC<br>
> ../../src/cfgparser/cfgfile_gen.o: error adding symbols: Bad value<br>
> collect2: error: ld returned 1 exit status<br>
> Makefile:61: recipe for target 'olsrd_httpinfo.so.0.1' failed<br>
> gmake: *** [olsrd_httpinfo.so.0.1] Error 1<br>
><br>
> ---<br>
> Cordialement,<br>
><br>
> Michel Blais<br>
> Administrateur réseau<br>
> Targo communications<br>
><br>
> 2015-11-09 14:28 GMT-05:00 Henning Rogge <<a href="mailto:hrogge@gmail.com">hrogge@gmail.com</a>>:<br>
>><br>
>> Okay,<br>
>><br>
>> that is strange...<br>
>><br>
>> when you run with<br>
>><br>
>> VERBOSE=1 make ... EXTRA_CFLAGS=...<br>
>><br>
>> do you see extra flag in the call to the compiler?<br>
>><br>
>> Henning<br>
>><br>
>> On Mon, Nov 9, 2015 at 8:25 PM, Michel Blais <<a href="mailto:michel@targointernet.com">michel@targointernet.com</a>><br>
>> wrote:<br>
>> > Thanks Henning for answering back. Sadly it don't seem to work and<br>
>> > strangly,<br>
>> > it return the same -fPIC error.<br>
>> ><br>
>> > $ gmake CC=gcc48 CXX=g++48 CPP="gcc48 -E" EXTRA_CFLAGS=-fPIC<br>
>> > [LD] olsrd_httpinfo.so.0.1<br>
>> > /usr/local/bin/ld: ../../src/cfgparser/cfgfile_gen.o: relocation<br>
>> > R_X86_64_32<br>
>> > against `.rodata' can not be used when making a shared object; recompile<br>
>> > with -fPIC<br>
>> > ../../src/cfgparser/cfgfile_gen.o: error adding symbols: Bad value<br>
>> > collect2: error: ld returned 1 exit status<br>
>> > Makefile:59: recipe for target 'olsrd_httpinfo.so.0.1' failed<br>
>> > gmake: *** [olsrd_httpinfo.so.0.1] Error 1<br>
>> ><br>
>> > Even if I enter anything else as extra flag, like EXTRA_CFLAGS=test, it<br>
>> > return the same error.<br>
>> ><br>
>> ><br>
>> ><br>
>> > ---<br>
>> > Cordialement,<br>
>> ><br>
>> > Michel Blais<br>
>> > Administrateur réseau<br>
>> > Targo communications<br>
>> ><br>
>> > 2015-11-09 14:05 GMT-05:00 Henning Rogge <<a href="mailto:hrogge@gmail.com">hrogge@gmail.com</a>>:<br>
>> >><br>
>> >> Hi,<br>
>> >><br>
>> >> that is funny, we had another "-fPIC" related discussion today...<br>
>> >><br>
>> >> quick fix:<br>
>> >> make CC=gcc48 CXX=g++48 CPP="gcc48 -E" EXTRA_CFLAGS=-fPIC<br>
>> >><br>
>> >> Still, I wonder why all these fPIC issues are coming up at the<br>
>> >> moment...<br>
>> >><br>
>> >> and why your BSD fails at linking something that is NOT part of the<br>
>> >> httpinfo but can compile other plugins.<br>
>> >><br>
>> >> Henning<br>
>> >><br>
>> >> On Mon, Nov 9, 2015 at 7:50 PM, Michel Blais <<a href="mailto:michel@targointernet.com">michel@targointernet.com</a>><br>
>> >> wrote:<br>
>> >> > FreeBSD 10.2 with OLSRd 0.9.0.3<br>
>> >> > I've also saw this problem with older version of FreeBSD 10.<br>
>> >> > I normally work around this by downloading olsrd paquage and<br>
>> >> > extracting<br>
>> >> > httpinfo from it but since it writted in the httpinfo README file<br>
>> >> > that<br>
>> >> > this<br>
>> >> > plugin is really version sensitive, I would like to know how to work<br>
>> >> > around<br>
>> >> > this error.<br>
>> >> ><br>
>> >> > FreeBSD 10.2 repo version<br>
>> >> > olsrd-0.6.6.2_1 OLSR routing daemon<br>
>> >> ><br>
>> >> > The error I encounter while trying to build httpinfo<br>
>> >> ><br>
>> >> > $ gmake CC=gcc48 CXX=g++48 CPP="gcc48 -E"<br>
>> >> ><br>
>> >> > [LD] olsrd_httpinfo.so.0.1<br>
>> >> > /usr/local/bin/ld: ../../src/cfgparser/cfgfile_gen.o: relocation<br>
>> >> > R_X86_64_32<br>
>> >> > against `.rodata' can not be used when making a shared object;<br>
>> >> > recompile<br>
>> >> > with -fPIC<br>
>> >> > ../../src/cfgparser/cfgfile_gen.o: error adding symbols: Bad value<br>
>> >> > collect2: error: ld returned 1 exit status<br>
>> >> > Makefile:59: recipe for target 'olsrd_httpinfo.so.0.1' failed<br>
>> >> > gmake: *** [olsrd_httpinfo.so.0.1] Error 1<br>
>> >> ><br>
>> >> > I can build olsrd, txtinfo and secure without error with the same<br>
>> >> > command.<br>
>> >> ><br>
>> >> > Any way to work around this error ?<br>
>> >> ><br>
>> >> > Thanks<br>
>> >> ><br>
>> >> > --<br>
>> >> > Olsr-users mailing list<br>
>> >> > <a href="mailto:Olsr-users@lists.olsr.org">Olsr-users@lists.olsr.org</a><br>
>> >> > <a href="https://lists.olsr.org/mailman/listinfo/olsr-users" rel="noreferrer" target="_blank">https://lists.olsr.org/mailman/listinfo/olsr-users</a><br>
>> ><br>
>> ><br>
><br>
><br>
</div></div></blockquote></div><br></div>