Ron Bielaski wrote:
>
> I've seen this problem on Mesa 3.0 and MesaLib 3.1beta3 on
> Solaris applications using the Mesa shared library (-sl) target.
>
> At runtime:
>
> % myprog
> ld.so.1: origami: fatal: relocation error: file
>/usr/local/MesaLib-3.1beta3/lib/libGL.so.1: symbol pow: referenced symbol not found
> Killed
>
> Please add -lm to the sunos5 shared library targets.
>
> This worked for me but I'm not sure if it's the right place in Mesa.
>
> % cd bin; diff mklib.sunos5{-orig,}
> 36c36
> < ld -G -o $LIBRARY $OBJECTS
> ---
> > ld -G -o $LIBRARY $OBJECTS -lm
>
> Adding -lm to myprog didn't seem to help.
> Adding -lm to the Make-config sunos5*-sl XLIBS macros didn't
> seem to help either.
Actually, Mesa's libGL.so should probably implicitly link with -lm, but
it doesn't do that now. I'll fix that.
I'm surprised that adding -lm to XLIBS didn't work for you. Could you
retest that?
-Brian
_______________________________________________
Mesa-bug maillist - [EMAIL PROTECTED]
http://lists.mesa3d.org/mailman/listinfo/mesa-bug
_______________________________________________
Mesa-dev maillist - [EMAIL PROTECTED]
http://lists.mesa3d.org/mailman/listinfo/mesa-dev