Bugzilla – Bug 58910
Glamor from git does not build with xorg server 1.13.1 and mesa 9.0.1
Last modified: 2013-03-30 11:01:15 UTC
Created attachment 72353 [details]
Log of a failed build
I'm trying to experimentally build glamor from git master against xserver 1.13.1 and Mesa 9.0.1 (the versions provided by my Rosa Fresh 2012.1 for x86_64, but the build fails at the linking phase while making libglamor.la with tons of "undefined reference" errors (see the attached build log for the gory details).
To have a successful build I have to force ld to accept undefined reference, but that is risky because it could lead to run-time errors later.
Junyan has been working on this issue.
Giovanni or Junyan,
Could you check and confirm that this bug is already fixed in glamor git version?
Created attachment 76804 [details]
Another failed build (now with xserver 1.14.0 and mesa 9.1.0)
Sorry, I still have the same things, now with xserver 1.14.0 and mesa 9.1.0.
Don't use -Wl,--no-undefined in LDFLAGS. Most functions are part of the Xorg Server and no library exports them ... Since library is intended to use with Xorg Server only, it should be safe. I'll send a patch to fix undefined references for libm libdl pixman libEGL and such.
(In reply to comment #4)
> Don't use -Wl,--no-undefined in LDFLAGS. Most functions are part of the Xorg
> Server and no library exports them ... Since library is intended to use with
> Xorg Server only, it should be safe. I'll send a patch to fix undefined
> references for libm libdl pixman libEGL and such.
Good to know...
The use of --no-undefined is a default build setting on my Mandriva/OpenMandriva/Rosa/whatever distro and before adding a permanent exception for the glamor package I was rather needing to know for sure it was needed or at least safe.
Perhaps, as per the precision in comment #4 we could consider this bug closed even if not exactly "fixed".