[Reproducible-builds] Bug#811001: pngtools: FTBFS: pnginfo.c:211: undefined reference to `png_get_pHYs_dpi'

Chris Lamb lamby at debian.org
Thu Jan 14 18:03:52 UTC 2016


Source: pngtools
Version: 0.4-1.1
Severity: serious
Justification: fails to build from source
User: reproducible-builds at lists.alioth.debian.org
Usertags: ftbfs
X-Debbugs-Cc: reproducible-builds at lists.alioth.debian.org

Dear Maintainer,

pngtools fails to build from source in unstable/amd64:

  [..]

  make[1]: Entering directory '/home/lamby/temp/cdt.20160114190300.kFFE8tvKEO/pngtools-0.4'
  gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"pngtools\" -DVERSION=\"0.2\" -DHAVE_LIBM=1 -DHAVE_LIBPNG=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STDIO_H=1 -DHAVE_PNG_H=1 -DHAVE_VPRINTF=1 -I.   -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wall -c pnginfo.c
  pnginfo.c: In function 'pnginfo_displayfile':
  pnginfo.c:191:11: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long unsigned int' [-Wformat=]
     printf ("  Image Width: %d Image Length: %d\n", width, height);
             ^
  pnginfo.c:191:11: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long unsigned int' [-Wformat=]
  pnginfo.c:211:3: warning: implicit declaration of function 'png_get_pHYs_dpi' [-Wimplicit-function-declaration]
     png_get_pHYs_dpi(png, info, &res_x, &res_y, &unit_type);
     ^
  pnginfo.c:295:11: warning: format '%d' expects argument of type 'int', but argument 2 has type 'png_uint_32 {aka long unsigned int}' [-Wformat=]
     printf ("  Resolution: %d, %d ",res_x, res_y);
             ^
  pnginfo.c:295:11: warning: format '%d' expects argument of type 'int', but argument 3 has type 'png_uint_32 {aka long unsigned int}' [-Wformat=]
  pnginfo.c:384:14: warning: pointer targets in assignment differ in signedness [-Wpointer-sign]
         bitmap = (unsigned char *) pnginfo_xmalloc ((rowbytes * height) + 1);
                ^
  pnginfo.c:389:18: warning: pointer targets in assignment differ in signedness [-Wpointer-sign]
    row_pointers[i] = bitmap + (i * rowbytes);
                    ^
  pnginfo.c:422:15: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long unsigned int' [-Wformat=]
         printf ("* %d ", runlen);
                 ^
  pnginfo.c:137:17: warning: unused variable 'signature' [-Wunused-variable]
     unsigned char signature;
                   ^
  pnginfo.c:136:17: warning: unused variable 'imageBufSize' [-Wunused-variable]
     unsigned long imageBufSize, width, height, runlen;
                   ^
  pnginfo.c:158:3: warning: ignoring return value of 'fread', declared with attribute warn_unused_result [-Wunused-result]
     fread (sig, 1, 8, image);
     ^
  gcc  -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wall  -Wl,-z,relro -o pnginfo -lpng pnginfo.o  -lpng -lm 
  pnginfo.o: In function `pnginfo_displayfile':
  /home/lamby/temp/cdt.20160114190300.kFFE8tvKEO/pngtools-0.4/pnginfo.c:211: undefined reference to `png_get_pHYs_dpi'
  collect2: error: ld returned 1 exit status
  Makefile:247: recipe for target 'pnginfo' failed
  make[1]: *** [pnginfo] Error 1
  make[1]: Leaving directory '/home/lamby/temp/cdt.20160114190300.kFFE8tvKEO/pngtools-0.4'
  /usr/share/cdbs/1/class/makefile.mk:47: recipe for target 'debian/stamp-makefile-build' failed
  make: *** [debian/stamp-makefile-build] Error 2

  [..]

The full build log is attached.


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      lamby at debian.org / chris-lamb.co.uk
       `-
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pngtools.0.4-1.1.unstable.amd64.log.txt.gz
Type: application/octet-stream
Size: 2303 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/reproducible-builds/attachments/20160114/1535d93d/attachment.obj>


More information about the Reproducible-builds mailing list