Subject: Re: bug#13734: 24.3.50; ../src/lisp.h:2485:10: error: address expression must be an lvalue or a function designator

From: Peter Dyballa <[email-masked]>
Date: Fri, 1 Mar 2013 20:13:32 +0100

On PPC Tiger, Mac OS X 10.4.11, with powerpc-apple-darwin8-gcc-4.0.1  
(GCC) 4.0.1 (Apple Computer, Inc. build 5370), now at revno: 111907,  
src/emacs compiles, no problem with src/lisp.h in lwlib comes up:

	cd ../lwlib; make  \
	    CC='gcc -std=gnu99' CFLAGS='-g -ggdb3 -H -pipe -fPIC -fno-common  
-Os -mcpu=7450 -mtune=7450 -maltivec -faltivec -mabi=altivec'  
MAKE='make'
	gcc -std=gnu99 -c -I/sw/include  -I/usr/X11R6/include -I/sw/include - 
I/sw/include/freetype2 -I/usr/X11/include -I/usr/X11R6/include   
`echo  | sed 's/ -Wwrite-strings//'`   -g -ggdb3 -H -pipe -fPIC -fno- 
common -Os -mcpu=7450 -mtune=7450 -maltivec -faltivec -mabi=altivec - 
Demacs -I../src -I.../emacs-24.3.50/lwlib -I.../emacs-24.3.50/ 
lwlib/../src -I../lib -I.../emacs-24.3.50/lwlib/../lib lwlib.c
	. ../src/config.h
	.. ../src/conf_post.h
	... ../lib/alloca.h
	... ../lib/string.h
	.... /usr/include/string.h
	..... /usr/include/_types.h
	...... /usr/include/sys/_types.h
	....... /usr/include/sys/cdefs.h
	....... /usr/include/machine/_types.h
	........ /usr/include/ppc/_types.h
	.... /usr/lib/gcc/powerpc-apple-darwin8/4.0.1/include/stddef.h
	... ../lib/stdlib.h
	.... /usr/include/stdlib.h
	..... /usr/include/sys/wait.h
	...... /usr/include/sys/signal.h
	....... /usr/include/sys/appleapiopts.h
	....... /usr/include/machine/signal.h
	........ /usr/include/ppc/signal.h
	...... /usr/include/sys/resource.h
	...... /usr/include/machine/endian.h
	....... /usr/include/ppc/endian.h
	........ /usr/include/sys/_endian.h
	......... ../lib/stdint.h
	.......... /usr/lib/gcc/powerpc-apple-darwin8/4.0.1/include/stdint.h
	.......... /usr/include/sys/types.h
	........... /usr/include/machine/types.h
	............ /usr/include/ppc/types.h
	........... /usr/include/machine/endian.h
	.......... /usr/lib/gcc/powerpc-apple-darwin8/4.0.1/include/limits.h
	........... /usr/lib/gcc/powerpc-apple-darwin8/4.0.1/include/ 
syslimits.h
	............ /usr/lib/gcc/powerpc-apple-darwin8/4.0.1/include/limits.h
	............. /usr/include/limits.h
	.............. /usr/include/machine/limits.h
	............... /usr/include/ppc/limits.h
	................ /usr/include/ppc/_limits.h
	.............. /usr/include/sys/syslimits.h
	.......... ../lib/inttypes.h
	........... /usr/include/inttypes.h
	............ ../lib/stdint.h
	......... /usr/include/libkern/OSByteOrder.h
	.......... /usr/include/libkern/ppc/OSByteOrder.h
	.... /usr/lib/gcc/powerpc-apple-darwin8/4.0.1/include/stddef.h
	. /usr/include/setjmp.h
	.. /usr/include/machine/setjmp.h
	... /usr/include/ppc/setjmp.h
	. ../src/lisp.h
	.. ../lib/stdalign.h
	... /usr/lib/gcc/powerpc-apple-darwin8/4.0.1/include/stddef.h
	.. /usr/lib/gcc/powerpc-apple-darwin8/4.0.1/include/stdarg.h
	.. /usr/lib/gcc/powerpc-apple-darwin8/4.0.1/include/stdbool.h
	.. /usr/lib/gcc/powerpc-apple-darwin8/4.0.1/include/stddef.h
	.. /usr/lib/gcc/powerpc-apple-darwin8/4.0.1/include/float.h
	.. ../lib/inttypes.h
	... /usr/lib/gcc/powerpc-apple-darwin8/4.0.1/include/limits.h
	.. /usr/lib/gcc/powerpc-apple-darwin8/4.0.1/include/limits.h
	.. ../lib/intprops.h
	... /usr/lib/gcc/powerpc-apple-darwin8/4.0.1/include/limits.h
	.. ../src/globals.h
	. ../lib/c-strcase.h
	.. /usr/lib/gcc/powerpc-apple-darwin8/4.0.1/include/stddef.h
	. ../lib/stdio.h
	.. /usr/include/stdio.h
	.. /usr/lib/gcc/powerpc-apple-darwin8/4.0.1/include/stddef.h
	. lwlib-int.h
	.. lwlib.h
	... /usr/X11R6/include/X11/Intrinsic.h
	.... /usr/X11R6/include/X11/Xlib.h
	..... /usr/X11R6/include/X11/X.h
	..... /usr/X11R6/include/X11/Xfuncproto.h
	..... /usr/X11R6/include/X11/Xosdefs.h
	..... /usr/lib/gcc/powerpc-apple-darwin8/4.0.1/include/stddef.h
	.... /usr/X11R6/include/X11/Xutil.h
	.... /usr/X11R6/include/X11/Xresource.h
	.... /usr/lib/gcc/powerpc-apple-darwin8/4.0.1/include/stddef.h
	.... /usr/X11R6/include/X11/Core.h
	.... /usr/X11R6/include/X11/Composite.h
	.... /usr/X11R6/include/X11/Constraint.h
	.... /usr/X11R6/include/X11/Object.h
	.... /usr/X11R6/include/X11/RectObj.h
	. lwlib-utils.h
	. /usr/X11R6/include/X11/StringDefs.h
	. lwlib-Xlw.h
	. /sw/include/X11/Xaw3d/Paned.h
	.. /usr/X11R6/include/X11/Xmu/Converters.h
	. lwlib-Xaw.h

Since the original C statement has not changed, something else must  
have changed…

I'll boot into PPC Leopard, Mac OS X 10.5.8, and see what is  
happening there. And finally trying GCC 4.0.1.

--
Mit friedvollen Grüßen

   Pete

Never be led astray onto the path of virtue