Bug 47124 - libEGL.la fails during linking
Summary: libEGL.la fails during linking
Status: RESOLVED FIXED
Alias: None
Product: Mesa
Classification: Unclassified
Component: Mesa core (show other bugs)
Version: git
Hardware: x86 (IA32) Linux (All)
: medium normal
Assignee: mesa-dev
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-08 20:34 UTC by Mike Lothian
Modified: 2012-06-30 04:26 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
Build log from portage (648.18 KB, text/x-log)
2012-03-08 20:34 UTC, Mike Lothian
Details

Description Mike Lothian 2012-03-08 20:34:18 UTC
Created attachment 58216 [details]
Build log from portage

libEGL.la fails during linking when a 64bit libglapi.so is available in /usr/lib64 but a 32bit version isn't in /usr/lib32

It's not finding the freshly built copy
Comment 1 Alexandre Demers 2012-03-09 17:09:49 UTC
Same thing around here. When relinking, it tries to find the libxcb and other 32bit dev libs. However, they can't be installed using packages, at least under Ubuntu 11.10.

Here how it ends:

  CCLD   libGL.la

*** Warning: Linking the shared library libGL.la against the
*** static library ../mapi/glapi/libglapi.a is not portable!
/usr/bin/ld.bfd.real: cannot find -lX11-xcb
/usr/bin/ld.bfd.real: cannot find -lX11
/usr/bin/ld.bfd.real: cannot find -lxcb-glx
/usr/bin/ld.bfd.real: cannot find -lxcb
/usr/lib/x86_64-linux-gnu/libdrm.so: could not read symbols: File in wrong format
collect2: ld returned 1 exit status
make[2]: *** [libGL.la] Error 1

Would compiling 32bit libX11 and libxcb be a solution?
Comment 2 Mike Lothian 2012-03-10 03:46:03 UTC
They are external dependencies, you will need to provide them to build a 32bit mesa and isn't related to this bug
Comment 3 Mandeep Singh Baines 2012-04-02 13:16:26 UTC
I suspect this is fixed by:

http://cgit.freedesktop.org/mesa/mesa/commit/configure.ac?id=ca760181b4420696c7e86aa2951d7203522ad1e8

commit ca760181b4420696c7e86aa2951d7203522ad1e8
Author: Kristian Høgsberg <krh@bitplanet.net>
Date:   Fri Mar 16 12:55:40 2012 -0400

    shared-glapi: Convert to automake

    This fixes a build problem where EGL links to libgbm.la, which encodes
    a relative path to it's libglapi.so dependency.  The relative path
    breaks when the linker tries to resolve it from src/egl/main instead
    of src/gbm.  Typically we silently fall back to the system
    libglapi.so, which is wrong and breaks when there isn't one.

    Morale of the story: don't mix mklib and libtool.
Comment 4 Mike Lothian 2012-04-04 00:15:21 UTC
Yes this seems to have fixed it for me


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.