I'm getting an undefined reference to ceilf in gpm compiling on ppc. Haven't had a chance yet to find out why -lm isn't being pulled in, but I'll get to it soon. Has anyone else seen this error?
That's normal. You have to pass -lm on ppc explicitly (but I can't say this for 100% sure, I don't have that hardware).
On i386, gcc optimizes the ceilf() call into some FPU instructions, so the libm library actually containing this function is not needed (because the function is not actually called at all). I assume that such optimization is not possible on ppc, that's why gcc emits this function call abd the libm library becomes needed then. And you need to link it explicitly because only you know that the ceilf() function should be searched there.
-- Alexander E. Patrakov -- http://linuxfromscratch.org/mailman/listinfo/blfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page
