! 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 !
Error: menu_callbacks.c, line 613: Invalid expression.
Status:
RESOLVED: FIXED
Severity:
blocker
Product:
Xfce-utils
Component:
General

Comments

Description Will L G 2005-02-23 15:26:40 CET
While compiling XFFM using:
CCC-6.5.9
Make-3.8
Binutils-2.15

Making all in libs
make[2]: Entering directory `/usr2/www/pub/alpha-RH7/desktop/xfce-4/xfce-
4.2/source/xffm-4.2.0-ccc-bad/libs'
source='menu_callbacks.c' object='libxffm_calls_la-menu_callbacks.lo' 
libtool=yes \
DEPDIR=.deps depmode=none /bin/sh ../depcomp \
/bin/sh ../libtool --mode=compile --tag=CC ccc -DHAVE_CONFIG_H -I. -I. -I.. -
I../src -I../smb   -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -
D_XOPEN_SOURCE=500 -DXTHREADS -DXUSE_MTSAFE_API -I/usr/include/gtk-2.0 -
I/usr/lib/gtk-2.0/include -I/usr/X11R6/include -I/usr/include/atk-1.0 -
I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/X11/include -
I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/xfce4 -
I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/xfce4 -
DPACKAGE_DATA_DIR=\""/usr/share"\" -
DPACKAGE_LOCALE_DIR=\""/usr/share/locale"\" -D_XOPEN_SOURCE=500 -DXTHREADS -
DXUSE_MTSAFE_API -I/usr/include/xfce4 -I/usr/include/gtk-2.0 -I/usr/lib/gtk-
2.0/include -I/usr/X11R6/include -I/usr/include/pango-1.0 -
I/usr/include/freetype2 -I/usr/X11/include -I/usr/include/glib-2.0 -
I/usr/lib/glib-2.0/include -I/usr/include/atk-1.0         -s -O5 -fast -
mtune=ev56 -I/usr/alpha-glibc21-linux/include -c -o libxffm_calls_la-
menu_callbacks.lo `test -f 'menu_callbacks.c' || echo './'`menu_callbacks.c
 ccc -DHAVE_CONFIG_H -I. -I. -I.. -I../src -I../smb -I/usr/include/glib-2.0 -
I/usr/lib/glib-2.0/include -D_XOPEN_SOURCE=500 -DXTHREADS -DXUSE_MTSAFE_API -
I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/X11R6/include -
I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/include/freetype2 -
I/usr/X11/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -
I/usr/include/xfce4 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -
I/usr/include/xfce4 -DPACKAGE_DATA_DIR=\"/usr/share\" -
DPACKAGE_LOCALE_DIR=\"/usr/share/locale\" -D_XOPEN_SOURCE=500 -DXTHREADS -
DXUSE_MTSAFE_API -I/usr/include/xfce4 -I/usr/include/gtk-2.0 -I/usr/lib/gtk-
2.0/include -I/usr/X11R6/include -I/usr/include/pango-1.0 -
I/usr/include/freetype2 -I/usr/X11/include -I/usr/include/glib-2.0 -
I/usr/lib/glib-2.0/include -I/usr/include/atk-1.0 -s -O5 -fast -mtune=ev56 -
I/usr/alpha-glibc21-linux/include -c menu_callbacks.c  -DPIC -
o .libs/libxffm_calls_la-menu_callbacks.o
cc: Info: /usr/include/xfce4/libxfce4util/libxfce4util-config.h, line 37: 
Extraneous semicolon. (extrasemi)
G_BEGIN_DECLS;
-------------^
cc: Info: /usr/include/xfce4/libxfce4util/libxfce4util-config.h, line 51: 
Extraneous semicolon. (extrasemi)
G_END_DECLS;
-----------^
cc: Info: /usr/include/xfce4/libxfce4util/xfce-generics.h, line 33: Extraneous 
semicolon. (extrasemi)
G_BEGIN_DECLS;
-------------^
cc: Info: /usr/include/xfce4/libxfce4util/xfce-generics.h, line 98: Extraneous 
semicolon. (extrasemi)
G_END_DECLS;
-----------^
cc: Info: /usr/include/xfce4/libxfce4util/xfce-kiosk.h, line 33: Extraneous 
semicolon. (extrasemi)
G_BEGIN_DECLS;
-------------^
cc: Info: /usr/include/xfce4/libxfce4util/xfce-kiosk.h, line 45: Extraneous 
semicolon. (extrasemi)
G_END_DECLS;
-----------^
cc: Info: /usr/include/xfce4/libxfcegui4/libxfcegui4-config.h, line 31: 
Extraneous semicolon. (extrasemi)
G_BEGIN_DECLS;
-------------^
cc: Info: /usr/include/xfce4/libxfcegui4/libxfcegui4-config.h, line 45: 
Extraneous semicolon. (extrasemi)
G_END_DECLS;
-----------^
cc: Info: /usr/include/xfce4/libxfcegui4/xfce_aboutdialog.h, line 29: 
Extraneous semicolon. (extrasemi)
G_BEGIN_DECLS;
-------------^
cc: Info: /usr/include/xfce4/libxfcegui4/xfce_aboutdialog.h, line 82: 
Extraneous semicolon. (extrasemi)
G_END_DECLS;
-----------^
cc: Info: /usr/include/xfce4/libxfcegui4/xfce-gdk-extensions.h, line 27: 
Extraneous semicolon. (extrasemi)
G_BEGIN_DECLS;
-------------^
cc: Info: /usr/include/xfce4/libxfcegui4/xfce-gdk-extensions.h, line 64: 
Extraneous semicolon. (extrasemi)
G_END_DECLS;
-----------^
cc: Info: /usr/include/xfce4/libxfcegui4/xfce-gtk-extensions.h, line 27: 
Extraneous semicolon. (extrasemi)
G_BEGIN_DECLS;
-------------^
cc: Info: /usr/include/xfce4/libxfcegui4/xfce-gtk-extensions.h, line 35: 
Extraneous semicolon. (extrasemi)
G_END_DECLS;
-----------^
cc: Error: menu_callbacks.c, line 613: Invalid expression. (badexpr)
        XFCE_LICENSE_LGPL);
----------------^
cc: Error: menu_callbacks.c, line 613: Invalid statement. (badstmt)
        XFCE_LICENSE_LGPL);
----------------^
make[2]: *** [libxffm_calls_la-menu_callbacks.lo] Error 1
make[2]: Leaving directory `/usr2/www/pub/alpha-RH7/desktop/xfce-4/xfce-
4.2/source/xffm-4.2.0-ccc-bad/libs'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr2/www/pub/alpha-RH7/desktop/xfce-4/xfce-
4.2/source/xffm-4.2.0-ccc-bad'
make: *** [all] Error 2


Reproducible: Always
Steps to Reproduce:
1. run CC="ccc" CFLAGS="-s -O5 -fast -mtune=ev56 -I/usr/alpha-glibc21-
linux/include" ./configure
2. run; make -s
3. read error msg

Actual Results:  
error msg above

Expected Results:  
To compile then run:
make install-strip

Fire up Xfce and see FAST opening xffm windows and menus...
Comment 1 edscott editbugs 2005-02-23 16:53:09 CET
Looks like a problem with extra semicolons in libxfce4util and libxfcegui4 headers. 
Comment 2 Benedikt Meurer editbugs 2005-02-24 09:08:10 CET
Hm, how did you compile the other components?
Comment 3 Will L G 2005-02-24 16:35:59 CET
Well, most of the other portions compiled fine. The extra colon comments are 
simply warnings. The real problem:

-----------^
cc: Error: menu_callbacks.c, line 613: Invalid expression. (badexpr)
        XFCE_LICENSE_LGPL);
----------------^
cc: Error: menu_callbacks.c, line 613: Invalid statement. (badstmt)
        XFCE_LICENSE_LGPL);
----------------^

Thats the one that borks everything. Sofar I've run into a couple of components 
with that issue. I was using Compaq C, and to put it blunt, its a VERY strict 
interpretation of Ansi C standards. Any diviation tends to lead to issues.

So far I've only had problems with three components, XFFM, XFPRINT, and XFCE-
UTILS. The other compiled without a hitch including the plugins.
Comment 4 Benedikt Meurer editbugs 2005-02-24 18:09:32 CET
Hm, it looks like the _BUILTIN_LICENSE_TEXT() macro in
libxfce4util/xfce-miscutils.h causes the problem. Can you verify that?
Comment 5 Will L G 2005-02-24 19:11:53 CET
Hmmm, how would I verify it?
Comment 6 Benedikt Meurer editbugs 2006-08-12 17:20:32 CEST
That should be fixed in 4.3.x.

Bug #802

Reported by:
Will L G
Reported on: 2005-02-23
Last modified on: 2009-07-14

People

Assignee:
Xfce Bug Triage
CC List:
0 users

Version

Attachments

Additional information