[MacPorts] #35945: pgplot @5.2.2 build failure

MacPorts noreply at macports.org
Mon Sep 3 04:13:53 PDT 2012


#35945: pgplot @5.2.2 build failure
---------------------------------------+------------------------------------
 Reporter:  swinbank@…                 |       Owner:  macports-tickets@…                   
     Type:  defect                     |      Status:  new                                  
 Priority:  Normal                     |   Milestone:                                       
Component:  ports                      |     Version:  2.1.2                                
 Keywords:  haspatch                   |        Port:  pgplot                               
---------------------------------------+------------------------------------
 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.

-- 
Ticket URL: <https://trac.macports.org/ticket/35945>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list