! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Terminal fails to compile
Status:
CLOSED: FIXED
Severity:
blocker
Product:
Xfce4-terminal
Component:
General

Comments

Description Benedikt Meurer editbugs 2006-01-28 11:37:41 CET
--- Posted by Brian on xfce4-dev ---

Hi Benny,

I'm getting an odd compiler failure from Terminal svn trunk, compiling
on a debian testing box with gcc 4.0.

if gcc -DHAVE_CONFIG_H -I. -I. -I.. -DBINDIR=\"/opt/xfce4-svn/bin\"
-DDATADIR=\"/opt/xfce4-svn/share\" -DEXO_API_SUBJECT_TO_CHANGE
-DEXO_DISABLE_DEPRECATED -DG_LOG_DOMAIN=\"Terminal\"
-DPACKAGE_LOCALE_DIR=\"/opt/xfce4-svn/share/locale\"
-DSN_API_NOT_YET_FROZEN
-DTERMINAL_HELP_BIN=\"/opt/xfce4-svn/libexec/TerminalHelp\" -I..
-DG_DISABLE_ASSERT -DG_DISABLE_CAST_CHECKS -DG_DISABLE_CHECKS
-I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -DXTHREADS
-I/opt/xfce4-svn/include/exo-0.3 -I/opt/xfce4-svn/include/xfce4
-I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0
-I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/X11R6/include
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -DXTHREADS
-I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0
-I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/X11R6/include
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
-I/usr/include/startup-notification-1.0   -I/usr/include/freetype2
-I/usr/X11R6/include   -DDBUS_API_SUBJECT_TO_CHANGE -g -O2 -MT
Terminal-terminal-enum-types.o -MD -MP -MF
".deps/Terminal-terminal-enum-types.Tpo" -c -o
Terminal-terminal-enum-types.o `test -f 'terminal-enum-types.c' || echo
'./'`terminal-enum-types.c; \
        then mv -f ".deps/Terminal-terminal-enum-types.Tpo"
".deps/Terminal-terminal-enum-types.Po"; else rm -f
".deps/Terminal-terminal-enum-types.Tpo"; exit 1; fi
In file included from /usr/include/glib-2.0/glib/gi18n.h:23,
                 from /opt/xfce4-svn/include/exo-0.3/exo/exo.h:34,
                 from ../terminal/terminal-app.h:25,
                 from terminal-enum-types.c:7:
/usr/include/libintl.h:40: error: syntax error before 'const'
/usr/include/libintl.h:44: error: syntax error before 'const'
/usr/include/libintl.h:51: error: syntax error before 'const'
/usr/include/libintl.h:60: error: syntax error before 'unsigned'
/usr/include/libintl.h:66: error: syntax error before 'unsigned'
/usr/include/libintl.h:72: error: syntax error before 'unsigned'
/usr/include/libintl.h:81: error: syntax error before 'const'
/usr/include/libintl.h:85: error: syntax error before 'do'

Then a few warnings about _, Q_, and N_ being redefined.  I feel like
I'm missing a -dev package, but I can't think of anything I'm missing,
so maybe I'm not.  Any ideas?
Comment 1 Benedikt Meurer editbugs 2006-01-28 11:42:28 CET
Fixed with revision 19633.

2006-01-28	Benedikt Meurer <benny@xfce.org>

	* terminal/Makefile.am: Be sure to include <config.h> in
	  terminal/terminal-enum-types.h first. This fixes bug #1388.

Bug #1388

Reported by:
Benedikt Meurer
Reported on: 2006-01-28
Last modified on: 2009-12-17

People

Assignee:
Benedikt Meurer
CC List:
1 user

Version

Version:
0.2.5svn

Attachments

Additional information