View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0001085 | DarkRadiant | General | public | 06.09.2008 01:25 | 13.03.2009 12:32 |
| Reporter | LinuxDonald | Assigned To | orbweaver | ||
| Priority | normal | Severity | block | Reproducibility | have not tried |
| Status | closed | Resolution | fixed | ||
| Summary | 0001085: Need -fPIC to compile with lastet trunk version | ||||
| Description | It 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 | ||||
| Tags | No tags attached. | ||||
| @OrbWeaver: you know more about the auto-make system. Would it be possible to have -fPIC switched on for x64 systems? | |
| For what it is worth, I get similiar errors on my 64bit Ubuntu. | |
| 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. | |
| 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. | |
| Thanks for fix it. It compiles now and run under 64Bit (Ubuntu 8.04.1 64Bit) | |
| 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 |