Compile issues on Linux (amd64)

Issue #7 resolved
Paul Turner
created an issue

Original SF tracker item 1182718.

I have been trying to compile CEGUI on Ubuntu for amd64 without much luck. Here is the error I get:

/usr/bin/ld: /usr/X11R6/lib/libGL.a(glapi.o): relocation R_X86_64_32 can not be used when making a shared object; recompile with -fPIC /usr/X11R6/lib/libGL.a: could not read symbols: Bad value collect2: ld returned 1 exit status make: * [libCEGUIOpenGLRenderer.la] Error 1

I filed a bug against Ubuntu but I have been told this is actually a bug with your code. My original bug along with the response to it can be found here: https://bugzilla.ubuntu.com/show_bug.cgi?id=9206

Reproducibility: always

Comments (4)

  1. Anonymous

    Original reporter: lindquist

    I think this is a bug in ubuntu. The X11 probably is'nt compiled with -fPIC. I have no issues with using CEGUI on amd64.

    The problem seems to be the GL library. I use nvidia's drivers (which provide a GL library) and they work just fine...

  2. Paul Turner reporter

    This is definitely an issue with the library being linked to and not CEGUI - I experienced the same issue linking with a static Irrlicht library today. The solution was to recompile the Irrlicht library and ensure the use of the -fPIC option.

    I do not see any sensible way to fix this kind of issue on our side unless we stop using dynamically linked objects all together ;)

  3. Paul Turner reporter

    After getting myself an install of the latest 6.10 Ubuntu for amd64 I can confirm that CEGUI and the OpenGL renderer build without any issues at all, so am closing this ticket.

  4. Log in to comment