[Mono-list] Problem building Mono on Ubuntu 6.10 x86-64

Martin Trejo chilli.coder at gmail.com
Tue Jan 30 18:18:18 EST 2007


I'm trying to build Mono from sources but I'm getting a linker error.

I've run configure with these options:
--prefix=$MONO_PREFIX \
--with-gnu-ld

and results on
/usr/bin/ld: .libs/driver.o: relocation R_X86_64_PC32 against
`mini_wapi_hps' can not be used when making a shared object; recompile with
-fPIC
/usr/bin/ld: final link failed: Bad value
collect2: ld returned 1 exit status
make[4]: *** [libmono.la] Error 1
make[4]: se sale del directorio `/home/martin/src/mono/mono/mini'
make[3]: *** [all] Error 2
make[3]: se sale del directorio `/home/martin/src/mono/mono/mini'
make[2]: *** [all-recursive] Error 1
make[2]: se sale del directorio `/home/martin/src/mono/mono'
make[1]: *** [all-recursive] Error 1
make[1]: se sale del directorio `/home/martin/src/mono'
make: *** [all] Error 2


Then I tried these options:
--prefix=$MONO_PREFIX \
--with-gnu-ld \
--with-pic

and got the same linker error.

Finally changed the CFLAGS var in Makefile in mono/mini
CFLAGS = -g -O2 -fno-strict-aliasing -Wdeclaration-after-statement -g -Wall
-Wunused -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes
-Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wno-cast-qual
-Wcast-align -Wwrite-strings -mno-tls-direct-seg-refs -fPIC

The same linker error.

Any ideas out there? Am I missing something?


My system is an P4 HT, running Ubuntu 6.10 x86_64.


-- 
Saludos,

Martín Trejo Chávez
http://chilli-coder.blogspot.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-list/attachments/20070130/72870dc3/attachment.html 


More information about the Mono-list mailing list