[MacPorts] #36023: imlib: build fails with libpng 1.5 (was: imlib broken apparently due to libpng API change)
MacPorts
noreply at macports.org
Fri Sep 7 00:22:05 PDT 2012
#36023: imlib: build fails with libpng 1.5
-------------------------------+--------------------------------------------
Reporter: rlhamil@… | Owner: ryandesign@…
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.1.2
Keywords: | Port: imlib
-------------------------------+--------------------------------------------
Changes (by ryandesign@…):
* status: new => assigned
* owner: macports-tickets@… => ryandesign@…
Old description:
> This is on 10.7.4 with Xcode 4.4.1. Following is the interesting part of
> the build log for imlib:
>
> :info:build libtool: compile: /usr/bin/clang
> -DSYSTEM_IMRC=\"/opt/local/etc/imrc\" -DIMLIB_LIB=\"/opt/local/lib\"
> -DSYSCONFDIR=\"/opt/local/etc\" -I. -I.. -I. -I. -I.. -I./..
> -I/opt/local/include/gtk-1.2 -I/opt/local/include/glib-1.2
> -I/opt/local/lib/glib/include -I/opt/local/include -I/opt/local/include
> -I/opt/local/include -I/opt/local/include/gtk-1.2
> -I/opt/local/include/glib-1.2 -I/opt/local/lib/glib/include
> -I/opt/local/include -I/opt/local/include -I/opt/local/include -pipe -O2
> -arch x86_64 -arch i386 -c modules.c -fno-common -DPIC -o
> .libs/modules.o
> :info:build In file included from modules.c:36:
> :info:build ./io-png.c:43: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 In file included from modules.c:36:
> :info:build ./io-png.c:49:15: error: incomplete definition of type
> 'struct png_info_def'
> :info:build if (info_ptr->color_type == PNG_COLOR_TYPE_RGB_ALPHA)
> :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 In file included from modules.c:36:
> :info:build ./io-png.c:278: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 In file included from modules.c:36:
> :info:build ./io-png.c:284:15: error: incomplete definition of type
> 'struct png_info_def'
> :info:build if (info_ptr->color_type == PNG_COLOR_TYPE_RGB_ALPHA)
> :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 In file included from modules.c:36:
> :info:build ./io-png.c:443:20: 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 In file included from modules.c:36:
> :info:build ./io-png.c:449:14: error: incomplete definition of type
> 'struct png_info_def'
> :info:build if (info_ptr->color_type == PNG_COLOR_TYPE_RGB_ALPHA)
> :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 In file included from modules.c:36:
> :info:build ./io-png.c:638:22: 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 In file included from modules.c:37:
> :info:build ./io-bmp.c:59:47: warning: use of logical '&&' with constant
> operand [-Wconstant-logical-operand]
> :info:build if (bpp != 1 && bpp != 4 && bpp != 8 && bpp && 16 && bpp !=
> 24 && bpp != 32)
> :info:build ^ ~~
> :info:build ./io-bmp.c:59:47: note: use '&' for a bitwise operation
> :info:build if (bpp != 1 && bpp != 4 && bpp != 8 && bpp && 16 && bpp !=
> 24 && bpp != 32)
> :info:build ^~
> :info:build &
> :info:build ./io-bmp.c:59:47: note: remove constant to silence this
> warning
> :info:build if (bpp != 1 && bpp != 4 && bpp != 8 && bpp && 16 && bpp !=
> 24 && bpp != 32)
> :info:build ~^~~~~
> :info:build In file included from modules.c:38:
> :info:build ./io-gif.c:46:4: warning: implicit declaration of function
> 'PrintGifError' is invalid in C99 [-Wimplicit-function-declaration]
> :info:build PrintGifError();
> :info:build ^
> :info:build In file included from modules.c:43:
> :info:build ./io-xpm.c:130:17: warning: passing 'unsigned char [6]' to
> parameter of type 'char *' converts between pointers to integer types
> with different sign [-Wpointer-sign]
> :info:build strncpy(cmap[j].str, line, cpp);
> :info:build ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~
> :info:build /usr/include/secure/_string.h:124:31: note: expanded from
> macro 'strncpy'
> :info:build ? __builtin___strncpy_chk (dest, src, len, __darwin_obsz
> (dest)) \
> :info:build ^
> :info:build In file included from modules.c:43:
> :info:build ./io-xpm.c:130:17: warning: passing 'unsigned char [6]' to
> parameter of type 'char *' converts between pointers to integer types
> with different sign [-Wpointer-sign]
> :info:build strncpy(cmap[j].str, line, cpp);
> :info:build ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~
> :info:build /usr/include/secure/_string.h:125:28: note: expanded from
> macro 'strncpy'
> :info:build : __inline_strncpy_chk (dest, src, len))
> :info:build ^
> :info:build /usr/include/secure/_string.h:128:40: note: passing argument
> to parameter '__dest' here
> :info:build __inline_strncpy_chk (char *__restrict __dest, const char
> *__restrict __src,
> :info:build ^
> :info:build In file included from modules.c:43:
> :info:build ./io-xpm.c:295:24: warning: passing 'unsigned char [6]' to
> parameter of type 'const char *' converts between pointers to integer
> types with different sign [-Wpointer-sign]
> :info:build if (!strcmp(col,
> cmap[j].str))
> :info:build
> ^~~~~~~~~~~
> :info:build /usr/include/string.h:87:39: note: passing argument to
> parameter here
> :info:build int strcmp(const char *, const char *);
> :info:build ^
> :info:build In file included from modules.c:43:
> :info:build ./io-xpm.c:326:24: warning: passing 'unsigned char [6]' to
> parameter of type 'const char *' converts between pointers to integer
> types with different sign [-Wpointer-sign]
> :info:build if (!strcmp(col,
> cmap[j].str))
> :info:build
> ^~~~~~~~~~~
> :info:build /usr/include/string.h:87:39: note: passing argument to
> parameter here
> :info:build int strcmp(const char *, const char *);
> :info:build ^
> :info:build 6 warnings and 7 errors generated.
New description:
This is on 10.7.4 with Xcode 4.4.1. Following is the interesting part of
the build log for imlib:
{{{
:info:build libtool: compile: /usr/bin/clang
-DSYSTEM_IMRC=\"/opt/local/etc/imrc\" -DIMLIB_LIB=\"/opt/local/lib\"
-DSYSCONFDIR=\"/opt/local/etc\" -I. -I.. -I. -I. -I.. -I./..
-I/opt/local/include/gtk-1.2 -I/opt/local/include/glib-1.2
-I/opt/local/lib/glib/include -I/opt/local/include -I/opt/local/include
-I/opt/local/include -I/opt/local/include/gtk-1.2
-I/opt/local/include/glib-1.2 -I/opt/local/lib/glib/include
-I/opt/local/include -I/opt/local/include -I/opt/local/include -pipe -O2
-arch x86_64 -arch i386 -c modules.c -fno-common -DPIC -o .libs/modules.o
:info:build In file included from modules.c:36:
:info:build ./io-png.c:43: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 In file included from modules.c:36:
:info:build ./io-png.c:49:15: error: incomplete definition of type 'struct
png_info_def'
:info:build if (info_ptr->color_type == PNG_COLOR_TYPE_RGB_ALPHA)
: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 In file included from modules.c:36:
:info:build ./io-png.c:278: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 In file included from modules.c:36:
:info:build ./io-png.c:284:15: error: incomplete definition of type
'struct png_info_def'
:info:build if (info_ptr->color_type == PNG_COLOR_TYPE_RGB_ALPHA)
: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 In file included from modules.c:36:
:info:build ./io-png.c:443:20: 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 In file included from modules.c:36:
:info:build ./io-png.c:449:14: error: incomplete definition of type
'struct png_info_def'
:info:build if (info_ptr->color_type == PNG_COLOR_TYPE_RGB_ALPHA)
: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 In file included from modules.c:36:
:info:build ./io-png.c:638:22: 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 In file included from modules.c:37:
:info:build ./io-bmp.c:59:47: warning: use of logical '&&' with constant
operand [-Wconstant-logical-operand]
:info:build if (bpp != 1 && bpp != 4 && bpp != 8 && bpp && 16 && bpp !=
24 && bpp != 32)
:info:build ^ ~~
:info:build ./io-bmp.c:59:47: note: use '&' for a bitwise operation
:info:build if (bpp != 1 && bpp != 4 && bpp != 8 && bpp && 16 && bpp !=
24 && bpp != 32)
:info:build ^~
:info:build &
:info:build ./io-bmp.c:59:47: note: remove constant to silence this
warning
:info:build if (bpp != 1 && bpp != 4 && bpp != 8 && bpp && 16 && bpp !=
24 && bpp != 32)
:info:build ~^~~~~
:info:build In file included from modules.c:38:
:info:build ./io-gif.c:46:4: warning: implicit declaration of function
'PrintGifError' is invalid in C99 [-Wimplicit-function-declaration]
:info:build PrintGifError();
:info:build ^
:info:build In file included from modules.c:43:
:info:build ./io-xpm.c:130:17: warning: passing 'unsigned char [6]' to
parameter of type 'char *' converts between pointers to integer types with
different sign [-Wpointer-sign]
:info:build strncpy(cmap[j].str, line, cpp);
:info:build ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~
:info:build /usr/include/secure/_string.h:124:31: note: expanded from
macro 'strncpy'
:info:build ? __builtin___strncpy_chk (dest, src, len, __darwin_obsz
(dest)) \
:info:build ^
:info:build In file included from modules.c:43:
:info:build ./io-xpm.c:130:17: warning: passing 'unsigned char [6]' to
parameter of type 'char *' converts between pointers to integer types with
different sign [-Wpointer-sign]
:info:build strncpy(cmap[j].str, line, cpp);
:info:build ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~
:info:build /usr/include/secure/_string.h:125:28: note: expanded from
macro 'strncpy'
:info:build : __inline_strncpy_chk (dest, src, len))
:info:build ^
:info:build /usr/include/secure/_string.h:128:40: note: passing argument
to parameter '__dest' here
:info:build __inline_strncpy_chk (char *__restrict __dest, const char
*__restrict __src,
:info:build ^
:info:build In file included from modules.c:43:
:info:build ./io-xpm.c:295:24: warning: passing 'unsigned char [6]' to
parameter of type 'const char *' converts between pointers to integer
types with different sign [-Wpointer-sign]
:info:build if (!strcmp(col,
cmap[j].str))
:info:build ^~~~~~~~~~~
:info:build /usr/include/string.h:87:39: note: passing argument to
parameter here
:info:build int strcmp(const char *, const char *);
:info:build ^
:info:build In file included from modules.c:43:
:info:build ./io-xpm.c:326:24: warning: passing 'unsigned char [6]' to
parameter of type 'const char *' converts between pointers to integer
types with different sign [-Wpointer-sign]
:info:build if (!strcmp(col,
cmap[j].str))
:info:build ^~~~~~~~~~~
:info:build /usr/include/string.h:87:39: note: passing argument to
parameter here
:info:build int strcmp(const char *, const char *);
:info:build ^
:info:build 6 warnings and 7 errors generated.
}}}
--
Comment:
Remember to use WikiFormatting when writing in Trac.
--
Ticket URL: <https://trac.macports.org/ticket/36023#comment:1>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list