[EMAIL PROTECTED] wrote:

/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3-20050110/../../../../x86_64-pc-linux-gnu/bin/ld: ./.libs/libmono-static.a(domain.o): relocation R_X86_64_TPOFF32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC

the linker told you the problem: some code wasn't properly compiled
to be position independent. how a hardened gcc can do that i can't
imagine since its very purpose is to force everything to be PIC.
i guess you should file a bugreport in bugzilla and provide the
compile logs (the bits that relate to libmono-static.a/domain.o).
swithing to gcc-vanilla under gentoo-sources enabled me to compile mono.
futher testing revealed that compiling under hardened-sources (security *dis*abled) with gcc-vanilla also enables me to compile mono. As I have not yet turned on security features in the kernel, I cannot say as to whether it will run, nor how to configure it for that situation (yet!).

Under hardened-sources with gcc-vanilla I then emerged mod_mono and restarted apache. I'm struggling a little with that, but the issue of this thread has been "solved".

Many many thanks to Mike, Rumen and pageexec. I still don't know how I'm going to get this to run under hardened with security enabled, but if you can bare it I may post a few questions down the track. For now, however, mono is built and working without hardened.

Cheers,
Chris
--
[email protected] mailing list

Reply via email to