Opened 8 years ago

Closed 8 years ago

#35945 closed defect (fixed)

pgplot @5.2.2 build failure with libpng 1.5

Reported by: jdswinbank (John Swinbank) Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.1.2
Keywords: haspatch Cc: MarcusCalhoun-Lopez (Marcus Calhoun-Lopez), ryandesign (Ryan Schmidt)
Port: pgplot

Description

The relevant part of the log is:

/usr/bin/clang -c -I/opt/local/include -DPG_PPU -I/opt/local/include -O2 -I. -I/opt/local/include -DPG_PPU -I/opt/local/include -F/opt/local/Library/Frameworks /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_pgplot/pgplot/work/pgplot/drivers/pndriv.c
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_pgplot/pgplot/work/pgplot/drivers/pndriv.c:225:21: error: incomplete definition of type 'struct png_struct_def'
  if (setjmp(png_ptr->jmpbuf)) { /* not really sure what I'm doing here... */
             ~~~~~~~^
/opt/local/include/png.h:854:16: note: forward declaration of 'struct png_struct_def'
typedef struct png_struct_def png_struct;
               ^
1 error generated.
make: *** [pndriv.o] Error 1
make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_pgplot/pgplot/work/build'
Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_pgplot/pgplot/work/build" && /usr/bin/make -w all cpg pgplot.html pgplot-routines.tex 
Exit code: 2
Error: org.macports.build for port pgplot returned: command execution failed

Full log attached.

This seems to be due to the recent upgrade of libpng to version 1.5. There's a patch at http://www.pkgbuild.com/~ioni/libpng-1.5/pgplot-libpng15.patch which should do the trick. I'm not sure what the correct attribution for that patch is, though -- it looks like http://www.pkgbuild.com/ is associated with Arch Linux, but nobody is directly claiming credit.

Attachments (1)

main.log (74.7 KB) - added by jdswinbank (John Swinbank) 8 years ago.

Download all attachments as: .zip

Change History (2)

Changed 8 years ago by jdswinbank (John Swinbank)

Attachment: main.log added

comment:1 Changed 8 years ago by ryandesign (Ryan Schmidt)

Cc: ryandesign@… added
Resolution: fixed
Status: newclosed
Summary: pgplot @5.2.2 build failurepgplot @5.2.2 build failure with libpng 1.5

Thanks; r97341.

Note: See TracTickets for help on using tickets.