View Issue Details

IDProjectCategoryView StatusLast Update
0001085DarkRadiantGeneralpublic13.03.2009 12:32
ReporterLinuxDonald Assigned Toorbweaver  
PrioritynormalSeverityblockReproducibilityhave not tried
Status closedResolutionfixed 
Summary0001085: Need -fPIC to compile with lastet trunk version
DescriptionIt don“t compile.
Here is the log:

*** Warning: Linking the shared library eventmgr.la against the
*** static library ../../libs/xmlutil/libxmlutil.a is not portable!
g++ -shared -nostdlib /usr/lib/gcc/x86_64-linux-gnu/4.2.3/../../../../lib/crti.o /usr/lib/gcc/x86_64-linux-gnu/4.2.3/crtbeginS.o .libs/Accelerator.o .libs/Command.o .libs/EventManager.o .libs/Modifiers.o .libs/MouseEvents.o .libs/Toggle.o .libs/WidgetToggle.o /usr/lib/libgtk-x11-2.0.so /usr/lib/libgdk-x11-2.0.so /usr/lib/libatk-1.0.so /usr/lib/libgdk_pixbuf-2.0.so /usr/lib/libpangocairo-1.0.so /usr/lib/libpango-1.0.so /usr/lib/libcairo.so /usr/lib/libgobject-2.0.so /usr/lib/libgmodule-2.0.so -ldl /usr/lib/libglib-2.0.so /usr/lib/libxml2.so ../../libs/xmlutil/libxmlutil.a -L/usr/lib/gcc/x86_64-linux-gnu/4.2.3 -L/usr/lib/gcc/x86_64-linux-gnu/4.2.3/../../../../lib -L/lib/../lib -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-linux-gnu/4.2.3/../../.. -lstdc++ -lm -lc -lgcc_s /usr/lib/gcc/x86_64-linux-gnu/4.2.3/crtendS.o /usr/lib/gcc/x86_64-linux-gnu/4.2.3/../../../../lib/crtn.o -Wl,-soname -Wl,eventmgr.so -o .libs/eventmgr.so
/usr/bin/ld: ../../libs/xmlutil/libxmlutil.a(Node.o): relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC
../../libs/xmlutil/libxmlutil.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
TagsNo tags attached.

Activities

greebo

greebo

09.09.2008 07:20

administrator   ~0001547

@OrbWeaver: you know more about the auto-make system. Would it be possible to have -fPIC switched on for x64 systems?
tels

tels

10.09.2008 18:00

reporter   ~0001559

For what it is worth, I get similiar errors on my 64bit Ubuntu.
orbweaver

orbweaver

18.10.2008 11:52

developer   ~0002088

I believe the appropriate solution is not to link static libraries into dynamic libraries, which is non-portable as the message says. Instead, these static libraries should be application-specific dynamic libraries of the form "/usr/lib/darkradiant/libxmlutil-0.9.7.so", for which support in Automake should be available.
orbweaver

orbweaver

18.10.2008 15:09

developer   ~0002097

As of revision 3809, the internal libraries are now dynamic. 64-bit users should attempt a fresh compile of this revision and report whether the problem still occurs.
LinuxDonald

LinuxDonald

19.10.2008 23:21

reporter   ~0002104

Thanks for fix it. It compiles now and run under 64Bit (Ubuntu 8.04.1 64Bit)

Issue History

Date Modified Username Field Change
06.09.2008 01:25 LinuxDonald New Issue
09.09.2008 07:20 greebo Note Added: 0001547
09.09.2008 07:20 greebo Assigned To => orbweaver
09.09.2008 07:20 greebo Status new => feedback
10.09.2008 18:00 tels Note Added: 0001559
18.10.2008 11:52 orbweaver Note Added: 0002088
18.10.2008 11:52 orbweaver Status feedback => confirmed
18.10.2008 15:09 orbweaver Note Added: 0002097
18.10.2008 15:09 orbweaver Status confirmed => feedback
19.10.2008 23:21 LinuxDonald Note Added: 0002104
19.10.2008 23:21 LinuxDonald Status feedback => resolved
19.10.2008 23:21 LinuxDonald Resolution open => fixed
13.03.2009 12:32 greebo Status resolved => closed