On Mon, 2010-03-15 at 00:09 +0100, Xavier Chantry wrote:
14:47 lb1 the fact is that if you remove a function from mesa .c file,
everything will succeed, but the resulting driver will fail to
load
14:47 lb1 because it cannot resolve that symbol
14:48 lb1 not sure why
14:48
2010/3/15 Michel Dänzer mic...@daenzer.net:
One problem is that drivers can be loaded from several paths; if the HW
driver fails to load from the first path but succeeds from the next one,
any error messages from the first attempt would be confusing.
If it fails to load because it does not
Adding both -Wl,--no-undefined and -lGL (in
src/gallium/winsys/drm/Makefile.template) seems to work for me.
The driver loader is already loading libGL.so.1 with RTLD_NOW |
RTLD_GLOBAL, so I think that the DRI driver depending on libGL.so.1
shouldn't introduce any issue.
On Mon, 2010-03-15 at 14:30 +0100, Luca Barbieri wrote:
Adding both -Wl,--no-undefined and -lGL (in
src/gallium/winsys/drm/Makefile.template) seems to work for me.
The driver loader is already loading libGL.so.1 with RTLD_NOW |
RTLD_GLOBAL, so I think that the DRI driver depending on
14:47 lb1 the fact is that if you remove a function from mesa .c file,
everything will succeed, but the resulting driver will fail to load
14:47 lb1 because it cannot resolve that symbol
14:48 lb1 not sure why
14:48 lb1 I suppose even for shared libraries gcc/ld should fail on
Xavier Chantry chantry.xav...@gmail.com writes:
14:47 lb1 the fact is that if you remove a function from mesa .c file,
everything will succeed, but the resulting driver will fail to l
oad
14:47 lb1 because it cannot resolve that symbol
14:48 lb1 not sure why
14:48 lb1 I
On Mon, Mar 15, 2010 at 12:41 AM, tom fogal tfo...@alumni.unh.edu wrote:
That's just the default compiler/linker setup on Linux. This is in
contrast to, say, OS X, where undefined symbols cause link errors.
You can emulate the above by building with -Wl,--no-undefined (or maybe
Xavier Chantry chantry.xav...@gmail.com writes:
On Mon, Mar 15, 2010 at 12:41 AM, tom fogal tfo...@alumni.unh.edu wrote:
You can emulate the [undefined link errors] by building with
-Wl,--no-undefined (or maybe -no-undefined, something like that,
see ld(1)).
With -Wl,--no-undefined, I
On Mon, Mar 15, 2010 at 1:18 AM, tom fogal tfo...@alumni.unh.edu wrote:
Xavier Chantry chantry.xav...@gmail.com writes:
/bin/sh ../../../../../bin/mklib -o swrast_dri.so -noprefix -linker
'gcc' -ldflags '-Wl,--no-allow-shlib-undefined' \
../../common/driverfuncs.o