On Mon, May 3, 2010 at 12:52 PM,  <yaiba.kurog...@interia.pl> wrote:
> Hey. I get following error when try to compile mesa-git with
> --enable-gallium-llvm.
>
> g++ -Wl,--hash-style=gnu -Wl,--as-needed -L/usr/lib/llvm  -lpthread -lffi
> -ldl -lm  lp_test_format.o lp_test_main.o -o lp_test_format
> -Wl,--start-group   -lXext -lXxf86vm -lXdamage -lXfixes -lX11-xcb -lX11
> -lxcb-glx -lxcb   -ldrm   -lm -lpthread -ldl -L../../auxiliary/ -lgallium
> libllvmpipe.a -lLLVMBitWriter -lLLVMX86CodeGen -lLLVMX86Info
> -lLLVMSelectionDAG -lLLVMAsmPrinter -lLLVMInterpreter -lLLVMJIT
> -lLLVMExecutionEngine -lLLVMCodeGen -lLLVMScalarOpts -lLLVMInstCombine
> -lLLVMTransformUtils -lLLVMipa -lLLVMAnalysis -lLLVMTarget -lLLVMMC
> -lLLVMCore -lLLVMSupport -lLLVMSystem -lstdc++ -Wl,--end-group

[...]

> ../../auxiliary//libgallium.a(u_dl.o): In function `util_dl_open':
> u_dl.c:(.text+0x21): undefined reference to `dlopen'
[...]

Strange that you should have this error since you link against -ldl,
where these (dl*()) functions are defined!

Another strange thing is that -ldl appears _twice_ here, and once only
after -L../../auxiliary, maybe that is the problem (I don't know the
linker that well)?

-- 
Francis Galiegue, fgalie...@gmail.com
"It seems obvious [...] that at least some 'business intelligence'
tools invest so much intelligence on the business side that they have
nothing left for generating SQL queries" (Stéphane Faroult, in "The
Art of SQL", ISBN 0-596-00894-5)
_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to