Opened 12 years ago

Closed 12 years ago

#35977 closed defect (fixed)

xv: build fails with libpng 1.5

Reported by: gantzerc Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 2.1.2
Keywords: Cc:
Port: xv

Description (last modified by mf2k (Frank Schima))

[TrooperB:~] cjg% sudo port install xv
--->  Computing dependencies for xv
--->  Fetching archive for xv
--->  Attempting to fetch xv-3.10a_9.darwin_11.x86_64.tbz2 from http://packages.macports.org/xv
--->  Attempting to fetch xv-3.10a_9.darwin_11.x86_64.tbz2 from http://lil.fr.packages.macports.org/xv
--->  Fetching distfiles for xv
--->  Verifying checksum(s) for xv
--->  Extracting xv
--->  Applying patches to xv
--->  Configuring xv
--->  Building xv
Error: org.macports.build for port xv returned: command execution failed
Please see the log file for port xv for details:  /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_xv/xv/main.log
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
Error: Processing of port xv failed
:info:build /usr/bin/clang -O2 -arch x86_64 -DDOPNG -I/opt/local/include -I/opt/local/include -DDOJPEG -I/opt/local/include -DDOTIFF -DUSE_TILED_TIFF_BOTLEFT_FIX -I/opt/local/include -DDOPDS -DDOJP2K -I/usr/include  -DMGCSFXDIR=\"/opt/local/lib/xv\"      -D__DARWIN__   -DUSLEEP -DDOCDIR=\"/opt/local/share/doc/xv\" -DSYSCONFDIR=\"/etc\" -DXVEXECPATH=\"/opt/local/lib/xv\" -c xvpng.c
:info:build xvpng.c:129:56: error: use of undeclared identifier 'Z_NO_COMPRESSION'
:info:build   DCreate(&cDial, pngW,  12, 25, DWIDE, DHIGH, (double)Z_NO_COMPRESSION,
:info:build                                                        ^
:info:build xvpng.c:461:21: error: incomplete definition of type 'struct png_struct_def'
:info:build   if (setjmp(png_ptr->jmpbuf)) {
:info:build              ~~~~~~~^
:info:build /opt/local/include/png.h:854:16: note: forward declaration of 'struct png_struct_def'
:info:build typedef struct png_struct_def png_struct;
:info:build                ^
:info:build xvpng.c:492:11: error: incomplete definition of type 'struct png_info_def'
:info:build   info_ptr->width = w;
:info:build   ~~~~~~~~^
:info:build /opt/local/include/png.h:727:16: note: forward declaration of 'struct png_info_def'
:info:build typedef struct png_info_def png_info;
:info:build                ^
:info:build xvpng.c:493:11: error: incomplete definition of type 'struct png_info_def'
:info:build   info_ptr->height = h;
:info:build   ~~~~~~~~^
:info:build /opt/local/include/png.h:727:16: note: forward declaration of 'struct png_info_def'
:info:build typedef struct png_info_def png_info;
:info:build                ^
:info:build xvpng.c:501:11: error: incomplete definition of type 'struct png_info_def'
:info:build   info_ptr->interlace_type = interCB.val ? 1 : 0;
:info:build   ~~~~~~~~^
:info:build /opt/local/include/png.h:727:16: note: forward declaration of 'struct png_info_def'
:info:build typedef struct png_info_def png_info;
:info:build                ^
:info:build xvpng.c:545:15: error: incomplete definition of type 'struct png_info_def'
:info:build       info_ptr->color_type = PNG_COLOR_TYPE_RGB;
:info:build       ~~~~~~~~^
:info:build /opt/local/include/png.h:727:16: note: forward declaration of 'struct png_info_def'
:info:build typedef struct png_info_def png_info;
:info:build                ^
:info:build xvpng.c:546:15: error: incomplete definition of type 'struct png_info_def'
:info:build       info_ptr->bit_depth = 8;
:info:build       ~~~~~~~~^
:info:build /opt/local/include/png.h:727:16: note: forward declaration of 'struct png_info_def'
:info:build typedef struct png_info_def png_info;
:info:build                ^
:info:build xvpng.c:549:15: error: incomplete definition of type 'struct png_info_def'
:info:build       info_ptr->color_type = PNG_COLOR_TYPE_PALETTE;
:info:build       ~~~~~~~~^
:info:build /opt/local/include/png.h:727:16: note: forward declaration of 'struct png_info_def'
:info:build typedef struct png_info_def png_info;
:info:build                ^
:info:build xvpng.c:551:17: error: incomplete definition of type 'struct png_info_def'
:info:build         info_ptr->bit_depth = 1;
:info:build         ~~~~~~~~^
:info:build /opt/local/include/png.h:727:16: note: forward declaration of 'struct png_info_def'
:info:build typedef struct png_info_def png_info;
:info:build                ^
:info:build xvpng.c:554:17: error: incomplete definition of type 'struct png_info_def'
:info:build         info_ptr->bit_depth = 2;
:info:build         ~~~~~~~~^
:info:build /opt/local/include/png.h:727:16: note: forward declaration of 'struct png_info_def'
:info:build typedef struct png_info_def png_info;
:info:build                ^
:info:build xvpng.c:557:17: error: incomplete definition of type 'struct png_info_def'
:info:build         info_ptr->bit_depth = 4;
:info:build         ~~~~~~~~^
:info:build /opt/local/include/png.h:727:16: note: forward declaration of 'struct png_info_def'
:info:build typedef struct png_info_def png_info;
:info:build                ^
:info:build xvpng.c:559:17: error: incomplete definition of type 'struct png_info_def'
:info:build         info_ptr->bit_depth = 8;
:info:build         ~~~~~~~~^
:info:build /opt/local/include/png.h:727:16: note: forward declaration of 'struct png_info_def'
:info:build typedef struct png_info_def png_info;
:info:build                ^
:info:build xvpng.c:566:15: error: incomplete definition of type 'struct png_info_def'
:info:build       info_ptr->num_palette = numuniqcols;
:info:build       ~~~~~~~~^
:info:build /opt/local/include/png.h:727:16: note: forward declaration of 'struct png_info_def'
:info:build typedef struct png_info_def png_info;
:info:build                ^
:info:build xvpng.c:567:15: error: incomplete definition of type 'struct png_info_def'
:info:build       info_ptr->palette = palette;
:info:build       ~~~~~~~~^
:info:build /opt/local/include/png.h:727:16: note: forward declaration of 'struct png_info_def'
:info:build typedef struct png_info_def png_info;
:info:build                ^
:info:build xvpng.c:568:15: error: incomplete definition of type 'struct png_info_def'
:info:build       info_ptr->valid |= PNG_INFO_PLTE;
:info:build       ~~~~~~~~^
:info:build /opt/local/include/png.h:727:16: note: forward declaration of 'struct png_info_def'
:info:build typedef struct png_info_def png_info;
:info:build                ^
:info:build xvpng.c:573:13: error: incomplete definition of type 'struct png_info_def'
:info:build     info_ptr->color_type = PNG_COLOR_TYPE_GRAY;
:info:build     ~~~~~~~~^
:info:build /opt/local/include/png.h:727:16: note: forward declaration of 'struct png_info_def'
:info:build typedef struct png_info_def png_info;
:info:build                ^
:info:build xvpng.c:578:15: error: incomplete definition of type 'struct png_info_def'
:info:build       info_ptr->bit_depth = 1;
:info:build       ~~~~~~~~^
:info:build /opt/local/include/png.h:727:16: note: forward declaration of 'struct png_info_def'
:info:build typedef struct png_info_def png_info;
:info:build                ^
:info:build xvpng.c:598:17: error: incomplete definition of type 'struct png_info_def'
:info:build         info_ptr->bit_depth = 8;
:info:build         ~~~~~~~~^
:info:build /opt/local/include/png.h:727:16: note: forward declaration of 'struct png_info_def'
:info:build typedef struct png_info_def png_info;
:info:build                ^
:info:build xvpng.c:620:17: error: incomplete definition of type 'struct png_info_def'
:info:build         info_ptr->bit_depth = 8;
:info:build         ~~~~~~~~^
:info:build fatal error: too many errors emitted, stopping now [-ferror-limit=]
:info:build 20 errors generated.
:info:build make: *** [xvpng.o] Error 1
:info:build make: *** Waiting for unfinished jobs....
:info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_xv/xv/work/xv-3.10a'
:info:build Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_xv/xv/work/xv-3.10a" && /usr/bin/make -j4 -w all PREFIX='/opt/local' ZLIBDIR='/opt/local' JPEGDIR='/opt/local' TIFFDIR='/opt/local' PNGDIR='/opt/local' CC='/usr/bin/clang' CCOPTS='-O2 -arch x86_64' 
:info:build Exit code: 2
:error:build org.macports.build for port xv returned: command execution failed
:debug:build Error code: CHILDSTATUS 2556 2
:debug:build Backtrace: command execution failed
    while executing
"system -nice 0 $fullcmdstring"
    ("eval" body line 1)
    invoked from within
"eval system $notty $nice \$fullcmdstring"
    invoked from within
"command_exec build"

Change History (4)

comment:1 Changed 12 years ago by mf2k (Frank Schima)

Description: modified (diff)

Attach the complete main.log after cleaning the port. In the future, please use WikiFormatting.

comment:2 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Summary: Install XV 3.10a failsxv: build fails with libpng 1.5

comment:3 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Owner: changed from macports-tickets@… to ryandesign@…
Status: newassigned

I found a patch for this from pdl-linux.

comment:4 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.