On Thu, Nov 30, 2006 at 07:47:09PM -0500, Glenn Randers-Pehrson wrote: >At 09:37 AM 12/1/2006 +1100, Aníbal Monsalve Salazar wrote: >>On Fri, Dec 01, 2006 at 09:28:23AM +1100, Anibal Monsalve Salazar wrote: >>>On Thu, Nov 30, 2006 at 03:32:16PM +0100, Daniel Kobras wrote: >>>>Package: libpng12-dev >>>>Version: 1.2.13-4 >>>>Severity: grave >>>>Justification: breaks build-depending packages >>>> >>>>Functions png_get_asm_flags(), png_set_asm_flags(), and possible some >>>>more are part of libpng's API, but are missing from libpng's list of >>>>exported symbols on amd64. I've checked that it's present on i386 and ia64. >>>>This problem surfaced because libpng recently switched to using >>>>MMX-optimized routines on amd64 (or at least started telling to do so), >>>>and the two mentioned functions are required to ensure thread-safety in >>>>asm-optimized code (cf. libpng(3)). >>>> >>>>At least imagemagick and graphicsmagick fail to link on amd64 due to >>>>this problem, but as the affected code was taken from libpng's man >>>>page, there might be more FTBFS errors lurking. If you disagree on >>>>the RC-ness of this issue, please let me know. I can hack around it in >>>>my packages for Debian's purposes, but not in a generic way. >>>> >>>>Regards, >>>> >>>>Daniel. >>> >>>Thank you for the bug report. I compared the amd64 and i386 pbuilder >>>logs: >>> >>>>--- /tmp/libpng_1.2.13-4_amd64.log 2006-12-01 09:08:36.000000000 +1100 >>>>+++ /tmp/libpng_1.2.13-4_i386.log 2006-12-01 09:08:13.000000000 +1100 >>>>@@ -1,12 +1,12 @@ >>>>-Wed, 22 Nov 2006 14:55:22 +1100 >>>>-d5 amd64 linda 0.3.24 lintian 1.23.25 pbuilder 0.160 piuparts 0.20-3 >>>>+Tue, 21 Nov 2006 20:36:05 +1100 >>>>+elida i386 linda 0.3.24 lintian 1.23.25 pbuilder 0.160 piuparts 0.20-3 >>>> >>>> I: using fakeroot in build. >>>>-pbuilder-buildpackage/amd64 $Id: pbuilder-buildpackage-funcs,v 1.31 >>>>2006/05/30 23:45:45 dancer Exp $ >>>>+pbuilder-buildpackage/i386 $Id: pbuilder-buildpackage-funcs,v 1.31 >>>>2006/05/30 23:45:45 dancer Exp $ >>>> $Id: pbuilder-buildpackage,v 1.127 2006/08/15 13:14:25 dancer Exp $ >>>>[...] >>>> checking for pow... no >>>> checking for pow in -lm... yes >>>> checking for zlibVersion in -lz... yes >>>>-checking if assembler code in pnggccrd.c can be compiled... no >>>>+checking if assembler code in pnggccrd.c can be compiled... yes >>> >>>The configure script cannot compile assembler code in pnggccrd.c on >>>amd64, whereas on i386 it can. > >It looks as though the configure script is working as designed on the >amd64. It does a trial compilation of pnggccrd.c and finds out it >cannot, and therefore does not compile and export the asm functions. > >When you build applications, they must be built with -DPNG_NO_MMX_CODE. >Doesn't libpng12.pc or libpng12-config tell you that?
This is what I have on my amd64: d5:~# cat /usr/lib/pkgconfig/libpng12.pc prefix=/usr exec_prefix=${prefix} libdir=${exec_prefix}/lib includedir=${prefix}/include/libpng12 Name: libpng Description: Loads and saves PNG files Version: 1.2.13 Libs: -L${libdir} -lpng12 Cflags: -I${includedir} And /usr/bin/libpng12-config has this: version="1.2.13" prefix="/usr" exec_prefix="${prefix}" libdir="${exec_prefix}/lib" includedir="${prefix}/include/libpng12" libs="-lpng12" all_libs="-lpng12 -lz -lm" I_opts="-I${includedir}" L_opts="-L${libdir}" R_opts="" cppflags="" ccopts="" ldopts="" >GLenn > >>Glen, >> >>Do you have a patch for this bug in the configure script? >> >>Best Regards, >> >>Aníbal Monsalve Salazar >>-- >>http://v7w.com/anibal Best Regards, Aníbal Monsalve Salazar -- http://v7w.com/anibal
signature.asc
Description: Digital signature