<table cellspacing="0" cellpadding="0" border="0"><tr><td valign="top">Hi Sérgio, I don't have this problem in debian unstable...<div id="yMail_cursorElementTracker_0.9137475173920393"><br></div><div id="yMail_cursorElementTracker_0.9137475173920393">but I remember some error like that before, could you look at the Debian packaging and tell me if it fixes your issue?</div><div id="yMail_cursorElementTracker_0.9137475173920393"><br></div><div id="yMail_cursorElementTracker_0.9137475173920393">(it might be in rules or LocalConfig.mk files, I'm on mobile sorry if I can't help)</div><div id="yMail_cursorElementTracker_0.9137475173920393"><br></div><div id="yMail_cursorElementTracker_0.9137475173920393">cheers,</div><div id="yMail_cursorElementTracker_0.9137475173920393"><br></div><div id="yMail_cursorElementTracker_0.9137475173920393">G.<br><br><p><a href="https://overview.mail.yahoo.com/mobile/?.src=Android"
 id="yMail_cursorElementTracker_0.5054038485977799">Sent from Yahoo Mail on Android</a></p> <hr><table cellspacing="0" cellpadding="0" border="0"> <tbody> <tr> <td valign="top"> <div style="font-family:Roboto, sans-serif;color:#7e7d80;"><b>From</b>:"Sérgio Basto" <sergio@serjux.com><br><b>Date</b>:Wed, 23 Sep, 2015 at 19:22<br><b>Subject</b>:[vbox-dev] error: code model kernel does not support PIC mode<br><br></div> <div id="msgSandbox_ACIJDNkAABaAVgLf0QgtwJuH130_TEXT" class="msgSandbox" style="padding: 1.5em 0.5em 0.5em 1.2em; word-wrap: break-word;">Hi, <br>I'm trying build VirtualBox-5.0.4 in Fedora 23 (Beta) , and I got this<br>kind of errors :<br><br>error: code model kernel does not support PIC mode <br><br>I think F23 force hardened builds , so I added -fno-pic and this error<br>passed but now I got a new error:<br><br>g++ -shared -fPIC '-Wl,-rpath,/usr/lib64/virtualbox'<br>-Wl,-z,noexecstack,-z,relro -Wl,--as-needed -m64<br>-o
 /builddir/build/BUILD/VirtualBox-5.0.4/obj/obj/VBoxSVCM/VBoxSVCM.so<br>-Wl,-soname=VBoxSVCM.so <br>/builddir/build/BUILD/VirtualBox-5.0.4/obj/obj/VBoxSVCM/src-server/xpcom/server_module.o     -lpthread   -lm   -lrt   /builddir/build/BUILD/VirtualBox-5.0.4/obj/bin/VBoxRT.so   -ldl   /builddir/build/BUILD/VirtualBox-5.0.4/obj/lib/VBoxCOM.a   <br>/builddir/build/BUILD/VirtualBox-5.0.4/obj/bin/VBoxXPCOM.so <br><br>/usr/bin/ld: /builddir/build/BUILD/VirtualBox-5.0.4/obj/obj/VBoxCAPI/VBoxCAPI.o: relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a shared object; recompile with -fPIC<br>/builddir/build/BUILD/VirtualBox-5.0.4/obj/obj/VBoxCAPI/VBoxCAPI.o:<br>error adding symbols: Bad value<br>/usr/bin/ld: /builddir/build/BUILD/VirtualBox-5.0.4/obj/obj/VBoxSVCM/src-server/xpcom/server_module.o: relocation R_X86_64_32 against `_ZZN11IVirtualBox6GetIIDEvE3iid' can not be used when making a shared
 object; recompile with -fPIC<br>/builddir/build/BUILD/VirtualBox-5.0.4/obj/obj/VBoxSVCM/src-server/xpcom/server_module.o: error adding symbols: Bad value<br><br><br>Can someone help me find out what is happening ?<br><br>Thanks<br>-- <br>Sérgio M. B.<br><br><br>_______________________________________________<br>vbox-dev mailing list<br><a ymailto="mailto:vbox-dev@virtualbox.org" href="javascript:return">vbox-dev@virtualbox.org</a><br><a href="https://www.virtualbox.org/mailman/listinfo/vbox-dev" target="_blank">https://www.virtualbox.org/mailman/listinfo/vbox-dev</a></div></td>  </tr>   </tbody>   </table></div></td></tr></table>