Opened 12 years ago

Last modified 12 years ago

#36023 closed defect

imlib broken apparently due to libpng API change — at Initial Version

Reported by: rlhamil Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.1.2
Keywords: Cc:
Port: imlib

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.

Change History (0)

Note: See TracTickets for help on using tickets.