Opened 4 months ago

#70225 new defect

Eterm fails to build: error: conflicting types for 'imlib_strerror'

Reported by: barracuda156 Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.9.3
Keywords: Cc:
Port: Eterm

Description

With gcc-4.2:

Making all in src
make[2]: Entering directory `/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_x11_Eterm/Eterm/work/Eterm-e8fb85b56da21113aaf0f5f7987ae647c4413b6c/src'
/usr/bin/gcc-4.2 -DHAVE_CONFIG_H -I. -I..   -I/opt/local/include   -pipe -Os -std=gnu89 -arch ppc -MT main.o -MD -MP -MF .deps/main.Tpo -c -o main.o main.c
/bin/sh ../libtool  --tag=CC   --mode=compile /usr/bin/gcc-4.2 -DHAVE_CONFIG_H -I. -I..   -I/opt/local/include   -pipe -Os -std=gnu89 -arch ppc -MT actions.lo -MD -MP -MF .deps/actions.Tpo -c -o actions.lo actions.c
/bin/sh ../libtool  --tag=CC   --mode=compile /usr/bin/gcc-4.2 -DHAVE_CONFIG_H -I. -I..   -I/opt/local/include   -pipe -Os -std=gnu89 -arch ppc -MT buttons.lo -MD -MP -MF .deps/buttons.Tpo -c -o buttons.lo buttons.c
/bin/sh ../libtool  --tag=CC   --mode=compile /usr/bin/gcc-4.2 -DHAVE_CONFIG_H -I. -I..   -I/opt/local/include   -pipe -Os -std=gnu89 -arch ppc -MT command.lo -MD -MP -MF .deps/command.Tpo -c -o command.lo command.c
/bin/sh ../libtool  --tag=CC   --mode=compile /usr/bin/gcc-4.2 -DHAVE_CONFIG_H -I. -I..   -I/opt/local/include   -pipe -Os -std=gnu89 -arch ppc -MT draw.lo -MD -MP -MF .deps/draw.Tpo -c -o draw.lo draw.c
/bin/sh ../libtool  --tag=CC   --mode=compile /usr/bin/gcc-4.2 -DHAVE_CONFIG_H -I. -I..   -I/opt/local/include   -pipe -Os -std=gnu89 -arch ppc -MT e.lo -MD -MP -MF .deps/e.Tpo -c -o e.lo e.c
mv -f .deps/main.Tpo .deps/main.Po
/bin/sh ../libtool  --tag=CC   --mode=compile /usr/bin/gcc-4.2 -DHAVE_CONFIG_H -I. -I..   -I/opt/local/include   -pipe -Os -std=gnu89 -arch ppc -MT events.lo -MD -MP -MF .deps/events.Tpo -c -o events.lo events.c
libtool: compile:  /usr/bin/gcc-4.2 -DHAVE_CONFIG_H -I. -I.. -I/opt/local/include -pipe -Os -std=gnu89 -arch ppc -MT buttons.lo -MD -MP -MF .deps/buttons.Tpo -c buttons.c  -fno-common -DPIC -o .libs/buttons.o
In file included from feature.h:100,
                 from buttons.c:27:
/opt/local/include/libast.h:71:1: warning: "alloca" redefined
In file included from /usr/include/stdlib.h:67,
                 from feature.h:98,
                 from buttons.c:27:
/usr/include/alloca.h:43:1: warning: this is the location of the previous definition
libtool: compile:  /usr/bin/gcc-4.2 -DHAVE_CONFIG_H -I. -I.. -I/opt/local/include -pipe -Os -std=gnu89 -arch ppc -MT actions.lo -MD -MP -MF .deps/actions.Tpo -c actions.c  -fno-common -DPIC -o .libs/actions.o
libtool: compile:  /usr/bin/gcc-4.2 -DHAVE_CONFIG_H -I. -I.. -I/opt/local/include -pipe -Os -std=gnu89 -arch ppc -MT draw.lo -MD -MP -MF .deps/draw.Tpo -c draw.c  -fno-common -DPIC -o .libs/draw.o
In file included from feature.h:100,
                 from actions.c:27:
/opt/local/include/libast.h:71:1: warning: "alloca" redefined
In file included from /usr/include/stdlib.h:67,
                 from feature.h:98,
                 from actions.c:27:
/usr/include/alloca.h:43:1: warning: this is the location of the previous definition
In file included from menus.h:29,
                 from actions.h:31,
                 from buttons.h:28,
                 from buttons.c:31:
pixmap.h:224: error: conflicting types for 'imlib_strerror'
/opt/local/include/Imlib2.h:2903: error: previous declaration of 'imlib_strerror' was here
libtool: compile:  /usr/bin/gcc-4.2 -DHAVE_CONFIG_H -I. -I.. -I/opt/local/include -pipe -Os -std=gnu89 -arch ppc -MT e.lo -MD -MP -MF .deps/e.Tpo -c e.c  -fno-common -DPIC -o .libs/e.o
In file included from feature.h:100,
                 from draw.c:27:
/opt/local/include/libast.h:71:1: warning: "alloca" redefined
In file included from /usr/include/stdlib.h:67,
                 from feature.h:98,
                 from draw.c:27:
/usr/include/alloca.h:43:1: warning: this is the location of the previous definition
libtool: compile:  /usr/bin/gcc-4.2 -DHAVE_CONFIG_H -I. -I.. -I/opt/local/include -pipe -Os -std=gnu89 -arch ppc -MT command.lo -MD -MP -MF .deps/command.Tpo -c command.c  -fno-common -DPIC -o .libs/command.o
In file included from menus.h:29,
                 from actions.h:31,
                 from actions.c:33:
pixmap.h:224: error: conflicting types for 'imlib_strerror'
/opt/local/include/Imlib2.h:2903: error: previous declaration of 'imlib_strerror' was here
In file included from feature.h:100,
                 from e.c:27:
/opt/local/include/libast.h:71:1: warning: "alloca" redefined
In file included from /usr/include/stdlib.h:67,
                 from feature.h:98,
                 from e.c:27:
/usr/include/alloca.h:43:1: warning: this is the location of the previous definition
libtool: compile:  /usr/bin/gcc-4.2 -DHAVE_CONFIG_H -I. -I.. -I/opt/local/include -pipe -Os -std=gnu89 -arch ppc -MT events.lo -MD -MP -MF .deps/events.Tpo -c events.c  -fno-common -DPIC -o .libs/events.o
make[2]: *** [buttons.lo] Error 1
make[2]: *** Waiting for unfinished jobs....
In file included from draw.h:29,
                 from draw.c:29:
pixmap.h:224: error: conflicting types for 'imlib_strerror'
/opt/local/include/Imlib2.h:2903: error: previous declaration of 'imlib_strerror' was here
In file included from feature.h:100,
                 from command.c:28:
/opt/local/include/libast.h:71:1: warning: "alloca" redefined
In file included from /usr/include/stdlib.h:67,
                 from feature.h:98,
                 from command.c:28:
/usr/include/alloca.h:43:1: warning: this is the location of the previous definition
make[2]: *** [actions.lo] Error 1
make[2]: *** [draw.lo] Error 1
In file included from feature.h:100,
                 from events.c:27:
/opt/local/include/libast.h:71:1: warning: "alloca" redefined
In file included from /usr/include/stdlib.h:67,
                 from feature.h:98,
                 from events.c:27:
/usr/include/alloca.h:43:1: warning: this is the location of the previous definition
In file included from e.c:40:
pixmap.h:224: error: conflicting types for 'imlib_strerror'
/opt/local/include/Imlib2.h:2903: error: previous declaration of 'imlib_strerror' was here
make[2]: *** [e.lo] Error 1
In file included from command.c:114:
pixmap.h:224: error: conflicting types for 'imlib_strerror'
/opt/local/include/Imlib2.h:2903: error: previous declaration of 'imlib_strerror' was here
In file included from menus.h:29,
                 from actions.h:31,
                 from events.c:35:
pixmap.h:224: error: conflicting types for 'imlib_strerror'
/opt/local/include/Imlib2.h:2903: error: previous declaration of 'imlib_strerror' was here
command.c: In function 'x_resource_dump':
command.c:1205: warning: format '%d' expects type 'int', but argument 7 has type 'long unsigned int'
command.c:1209: warning: format '%d' expects type 'int', but argument 7 has type 'long unsigned int'
make[2]: *** [events.lo] Error 1
make[2]: *** [command.lo] Error 1
make[2]: Leaving directory `/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_x11_Eterm/Eterm/work/Eterm-e8fb85b56da21113aaf0f5f7987ae647c4413b6c/src'
make[1]: *** [all-recursive] Error 1

With gcc13:

libtool: compile:  /opt/local/bin/gcc-mp-13 -DHAVE_CONFIG_H -I. -I.. -I/opt/local/include -pipe -Os -std=gnu89 -arch ppc -MT events.lo -MD -MP -MF .deps/events.Tpo -c events.c  -fno-common -DPIC -o .libs/events.o
In file included from menus.h:29,
                 from actions.h:31,
                 from actions.c:33:
pixmap.h:224:20: error: conflicting types for 'imlib_strerror'; have 'const char *(Imlib_Load_Error)'
  224 | extern const char *imlib_strerror(Imlib_Load_Error);
      |                    ^~~~~~~~~~~~~~
In file included from /opt/local/include/libast.h:99,
                 from feature.h:100,
                 from actions.c:27:
/opt/local/include/Imlib2.h:2903:18: note: previous declaration of 'imlib_strerror' with type 'const char *(int)'
 2903 | EAPI const char *imlib_strerror(int err);
      |                  ^~~~~~~~~~~~~~
In file included from menus.h:29,
                 from actions.h:31,
                 from buttons.h:28,
                 from buttons.c:31:
pixmap.h:224:20: error: conflicting types for 'imlib_strerror'; have 'const char *(Imlib_Load_Error)'
  224 | extern const char *imlib_strerror(Imlib_Load_Error);
      |                    ^~~~~~~~~~~~~~
In file included from /opt/local/include/libast.h:99,
                 from feature.h:100,
                 from buttons.c:27:
/opt/local/include/Imlib2.h:2903:18: note: previous declaration of 'imlib_strerror' with type 'const char *(int)'
 2903 | EAPI const char *imlib_strerror(int err);
      |                  ^~~~~~~~~~~~~~
In file included from draw.h:29,
                 from draw.c:29:
pixmap.h:224:20: error: conflicting types for 'imlib_strerror'; have 'const char *(Imlib_Load_Error)'
  224 | extern const char *imlib_strerror(Imlib_Load_Error);
      |                    ^~~~~~~~~~~~~~
In file included from /opt/local/include/libast.h:99,
                 from feature.h:100,
                 from draw.c:27:
/opt/local/include/Imlib2.h:2903:18: note: previous declaration of 'imlib_strerror' with type 'const char *(int)'
 2903 | EAPI const char *imlib_strerror(int err);
      |                  ^~~~~~~~~~~~~~
In file included from command.c:114:
pixmap.h:224:20: error: conflicting types for 'imlib_strerror'; have 'const char *(Imlib_Load_Error)'
  224 | extern const char *imlib_strerror(Imlib_Load_Error);
      |                    ^~~~~~~~~~~~~~
In file included from /opt/local/include/libast.h:99,
                 from feature.h:100,
                 from command.c:28:
/opt/local/include/Imlib2.h:2903:18: note: previous declaration of 'imlib_strerror' with type 'const char *(int)'
 2903 | EAPI const char *imlib_strerror(int err);
      |                  ^~~~~~~~~~~~~~
make[2]: *** [actions.lo] Error 1
make[2]: *** Waiting for unfinished jobs....
In file included from e.c:40:
pixmap.h:224:20: error: conflicting types for 'imlib_strerror'; have 'const char *(Imlib_Load_Error)'
  224 | extern const char *imlib_strerror(Imlib_Load_Error);
      |                    ^~~~~~~~~~~~~~
In file included from /opt/local/include/libast.h:99,
                 from feature.h:100,
                 from e.c:27:
/opt/local/include/Imlib2.h:2903:18: note: previous declaration of 'imlib_strerror' with type 'const char *(int)'
 2903 | EAPI const char *imlib_strerror(int err);
      |                  ^~~~~~~~~~~~~~
In file included from menus.h:29,
                 from actions.h:31,
                 from events.c:35:
pixmap.h:224:20: error: conflicting types for 'imlib_strerror'; have 'const char *(Imlib_Load_Error)'
  224 | extern const char *imlib_strerror(Imlib_Load_Error);
      |                    ^~~~~~~~~~~~~~
In file included from /opt/local/include/libast.h:99,
                 from feature.h:100,
                 from events.c:27:
/opt/local/include/Imlib2.h:2903:18: note: previous declaration of 'imlib_strerror' with type 'const char *(int)'
 2903 | EAPI const char *imlib_strerror(int err);
      |                  ^~~~~~~~~~~~~~
make[2]: *** [draw.lo] Error 1
make[2]: *** [e.lo] Error 1
make[2]: *** [buttons.lo] Error 1
make[2]: *** [events.lo] Error 1
make[2]: *** [command.lo] Error 1

Change History (0)

Note: See TracTickets for help on using tickets.