[Mesa-dev] [Bug 36139] New: static build with -fPIC misses some symbols

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Mon Apr 11 13:21:44 PDT 2011


https://bugs.freedesktop.org/show_bug.cgi?id=36139

           Summary: static build with -fPIC misses some symbols
           Product: Mesa
           Version: 7.10
          Platform: x86-64 (AMD64)
        OS/Version: Linux (All)
            Status: NEW
          Severity: normal
          Priority: medium
         Component: Other
        AssignedTo: mesa-dev at lists.freedesktop.org
        ReportedBy: bloring at lbl.gov


When building osmesa with GNU compilers as a static lib I used -fPIC (see
below) but I got this error when compiling my application as shared library:

/lib/libOSMesa32.a(ir_to_mesa.o): relocation R_X86_64_32 against `a local
symbol' can not be used when making a shared object; recompile with -fPIC       
/usr/common/graphics/ParaView/Mesa-7.10.1/lib/libOSMesa32.a: could not read
symbols: Bad value

from config.log

./configure CC=cc CXX=CC CFLAGS=-fPIC LDFLAGS=-fPIC
--prefix=/usr/common/graphics/ParaView/Mesa-7.10.1 --disable-shared
--enable-static --disable-egl --disable-glw --disable-gallium
--with-osmesa-bits=32 --with-driver=osmesa --enable-64-bit --disable-32-bit

Apprently -fPIC isn't passed to compiler for all targets ?

same thing occurs when using the traditional configs, eg linux-osmesa-static

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the mesa-dev mailing list