[ptx] problems compiling current cvs

spec spec at webtech.pl
Thu Dec 16 16:01:42 GMT 2004


Stefan M. Brandl wrote:

>On Thu, Dec 16, 2004 at 10:05:00AM -0500, spec wrote:
>  
>
>>Stefan M. Brandl wrote:
>>    
>>
>>>As stated above, I have libpng-1.2.5
>>>smb at urfass:~$ strings /usr/lib/libpng.so | grep png_get_io_ptr
>>>png_get_io_ptr
>>>smb at urfass:~$ 
>>>
>>>As you see, grep finds the string.
>>>
>>>
>>>      
>>>
>>how about in libpng.a?
>>
>>    
>>
>
>grep also finds it:
>
>smb at urfass:~$ strings /usr/lib/libpng.a | grep png_get_io_ptr
>png_get_io_ptr
>png_get_io_ptr
>smb at urfass:~$ 
>  
>
I'm getting the same error here - it seems like test program missed a 
reference to "pow" (needs -lm).

what I did was in m4/ax_check_graphics.m4
where it says:
  AC_CHECK_LIB([png],[png_get_io_ptr],passed=`expr $passed + 
1`,failed=`expr $failed + 1`,[-lz])
I changed it to:
  AC_CHECK_LIB(png,png_get_io_ptr,passed=`expr $passed + 1`,failed=`expr 
$failed + 1`,[-lz -lm])
I removed the square brackets because I think there not needed here.

and it works here. does it solve it for you?

please report it to bug tracker (with solution)

-- 
Pozdrawiam,
Best regards,
Marek

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 254 bytes
Desc: OpenPGP digital signature
Url : http://www.email-lists.org/pipermail/ptx/attachments/20041216/e657b23a/signature.bin


More information about the ptX mailing list