Opened 10 years ago

Closed 7 years ago

#46833 closed defect (fixed)

glpng @1.45: fails to build due to macro conflict with libpng

Reported by: jeremyhu (Jeremy Huddleston Sequoia) Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: kurthindenburg (Kurt Hindenburg), smcguffee (Sean Robert McGuffee)
Port: glpng

Description

/usr/bin/clang -O0 -g3 -arch x86_64 -I../include -I/opt/local/include -c -o libglpng.o glpng.c
In file included from glpng.c:32:
/opt/local/include/png.h:915:9: error: expected identifier or '('
typedef PNG_CALLBACK(void, *png_error_ptr, (png_structp, png_const_charp));
        ^
../include/GL/glpng.h:60:23: note: expanded from macro 'PNG_CALLBACK'
#define PNG_CALLBACK  -3 /* Call the callback function to generate alpha   */
                      ^
In file included from glpng.c:32:

Change History (4)

comment:1 Changed 7 years ago by kurthindenburg (Kurt Hindenburg)

Cc: kurthindenburg added
Version: 2.3.3

Perhaps this port should just be removed entirely.

http://www.fifi.org/doc/libglpng-dev/glpng.html

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

Cc: smcguffee added

Has duplicate #55855.

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

Status: newaccepted
Summary: glpng fails to build due to macro conflict with libpngglpng @1.45: fails to build due to macro conflict with libpng

This should be fixed by updating to 1.46 from http://repo.or.cz/w/glpng.git; I'm looking into it now.

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

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