[Mono-bugs] [Bug 74851][Nor] New - Foo fails to build.

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Fri, 6 May 2005 15:24:49 -0400 (EDT)


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by robert@grinning-cat.com.

http://bugzilla.ximian.com/show_bug.cgi?id=74851

--- shadow/74851	2005-05-06 15:24:49.000000000 -0400
+++ shadow/74851.tmp.7544	2005-05-06 15:24:49.000000000 -0400
@@ -0,0 +1,57 @@
+Bug#: 74851
+Product: Mono: Debugger
+Version: 1.1
+OS: 
+OS Details: Ubuntu 5.04 on AMD64
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: backend
+AssignedTo: toshok@ximian.com                            
+ReportedBy: robert@grinning-cat.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Foo fails to build.
+
+Please fill in this template when reporting a bug, unless you know what you
+are doing.
+Description of Problem:
+When compiling debugger from svn ld chokes.
+
+Steps to reproduce the problem:
+1. configure
+2. make
+3. 
+
+Actual Results:
+make[1]: Entering directory `/home/rpostill/mono/debugger/test'
+/bin/sh ../libtool --tag=CC --mode=link gcc  -g -Wall -Wunused
+-Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes 
+-Wmissing-prototypes -Wnested-externs  -Wshadow -Wpointer-arith
+-Wno-cast-qual -Wcast-align -Wwrite-strings   -o libfoo.so -shared foo.o
+gcc -g -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations
+-Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wshadow
+-Wpointer-arith -Wno-cast-qual -Wcast-align -Wwrite-strings -o libfoo.so
+-shared foo.o
+/usr/bin/ld: foo.o: relocation R_X86_64_32 can not be used when making a
+shared object; recompile with -fPIC
+foo.o: could not read symbols: Bad value
+collect2: ld returned 1 exit status
+make[1]: *** [libfoo.so] Error 1
+make[1]: Leaving directory `/home/rpostill/mono/debugger/test'
+make: *** [all-recursive] Error 1
+
+
+
+Expected Results:
+Successful compilation.
+
+How often does this happen? 
+Consistently.
+
+Additional Information:
+I tried to pop the suggested flag in CFLAGS inside the Makefile but that
+didn't help.  Sorry I haven't enough knowledge to take this any further.