unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#8425: 24.0.50; ./stdint.h:82:7: error: #elif with no expression
@ 2011-04-04 19:32 Peter Dyballa
  2011-04-07 20:54 ` Glenn Morris
  0 siblings, 1 reply; 2+ messages in thread
From: Peter Dyballa @ 2011-04-04 19:32 UTC (permalink / raw)
  To: 8425

Hello!

In the beginning of compilation a sed script edits lib/stdint.in.h to  
become lib/stdint.h. The suspicious lines are:

    76	#if @HAVE_INTTYPES_H@
    77	  /* In OpenBSD 3.8, <inttypes.h> includes <machine/types.h>,  
which defines
    78	     int{8,16,32,64}_t, uint{8,16,32,64}_t and  
__BIT_TYPES_DEFINED__.
    79	     <inttypes.h> also defines intptr_t and uintptr_t.  */
    80	# include <inttypes.h>
    81	#elif @HAVE_SYS_INTTYPES_H@
    82	  /* Solaris 7 <sys/inttypes.h> has the types except the  
*_fast*_t types, and
    83	     the macros except for *_FAST*_*, INTPTR_MIN, PTRDIFF_MIN,  
PTRDIFF_MAX.  */
    84	# include <sys/inttypes.h>
    85	#endif
    86	
    87	#if @HAVE_SYS_BITYPES_H@ && ! defined __BIT_TYPES_DEFINED__
    88	  /* Linux libc4 >= 4.6.7 and libc5 have a <sys/bitypes.h> that  
defines
    89	     int{8,16,32,64}_t and __BIT_TYPES_DEFINED__.  In libc5 >=  
5.2.2 it is
    90	     included by <sys/types.h>.  */
    91	# include <sys/bitypes.h>
    92	#endif

And since @HAVE_SYS_BITYPES_H@ is changed to an empty string the lines  
become invalid in lib/stdint.h:

    77	#if 1
    78	  /* In OpenBSD 3.8, <inttypes.h> includes <machine/types.h>,  
which defines
    79	     int{8,16,32,64}_t, uint{8,16,32,64}_t and  
__BIT_TYPES_DEFINED__.
    80	     <inttypes.h> also defines intptr_t and uintptr_t.  */
    81	# include <inttypes.h>
    82	#elif
    83	  /* Solaris 7 <sys/inttypes.h> has the types except the  
*_fast*_t types, and
    84	     the macros except for *_FAST*_*, INTPTR_MIN, PTRDIFF_MIN,  
PTRDIFF_MAX.  */
    85	# include <sys/inttypes.h>
    86	#endif
    87	
    88	#if  && ! defined __BIT_TYPES_DEFINED__
    89	  /* Linux libc4 >= 4.6.7 and libc5 have a <sys/bitypes.h> that  
defines
    90	     int{8,16,32,64}_t and __BIT_TYPES_DEFINED__.  In libc5 >=  
5.2.2 it is
    91	     included by <sys/types.h>.  */
    92	# include <sys/bitypes.h>
    93	#endif

This error exists since 30 h (an update yesterday let the NS variant  
compile but not the X client):

	. md5.h
	.. ./stdio.h
	... /usr/include/stdio.h
	... /sw/lib/gcc4.5/lib/gcc/powerpc-apple-darwin9.8.0/4.5.2/include/ 
stdarg.h
	... /sw/lib/gcc4.5/lib/gcc/powerpc-apple-darwin9.8.0/4.5.2/include/ 
stddef.h
	... /usr/include/sys/types.h
	.... /usr/include/sys/_structs.h
	.. ./stdint.h
	... /sw/lib/gcc4.5/lib/gcc/powerpc-apple-darwin9.8.0/4.5.2/include/ 
stdint.h
	.... /sw/lib/gcc4.5/lib/gcc/powerpc-apple-darwin9.8.0/4.5.2/include- 
fixed/stdint.h
	... /sw/lib/gcc4.5/lib/gcc/powerpc-apple-darwin9.8.0/4.5.2/include- 
fixed/limits.h
	.... /sw/lib/gcc4.5/lib/gcc/powerpc-apple-darwin9.8.0/4.5.2/include- 
fixed/syslimits.h
	..... /sw/lib/gcc4.5/lib/gcc/powerpc-apple-darwin9.8.0/4.5.2/include- 
fixed/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
	... /usr/include/inttypes.h
	.... ./stdint.h
	In file included from md5.h:25:0,
	                 from md5.c:25:
	./stdint.h:82:7: error: #elif with no expression
	./st
	Compilation exited abnormally with code 2 at Mon Apr  4 21:12:43

I think the code was OK until revno: 103797.


Mac OS X 10.5.8, PPC; GCC 4.5.2; revno: 103819.

--
Greetings

   Pete

If it does exist, it's out of date.
				– Arnold's Second Law of Documentation






^ permalink raw reply	[flat|nested] 2+ messages in thread

* bug#8425: 24.0.50; ./stdint.h:82:7: error: #elif with no expression
  2011-04-04 19:32 bug#8425: 24.0.50; ./stdint.h:82:7: error: #elif with no expression Peter Dyballa
@ 2011-04-07 20:54 ` Glenn Morris
  0 siblings, 0 replies; 2+ messages in thread
From: Glenn Morris @ 2011-04-07 20:54 UTC (permalink / raw)
  To: Peter Dyballa; +Cc: 8425

Peter Dyballa wrote:

> And since @HAVE_SYS_BITYPES_H@ is changed to an empty string the lines
> become invalid in lib/stdint.h:
[...]
> 	. md5.h
[...]
> 	.. ./stdint.h
> 	...
> /sw/lib/gcc4.5/lib/gcc/powerpc-apple-darwin9.8.0/4.5.2/include/stdint.h

Maybe you have a stale lib/stdint.h. Try starting from a fresh state.

http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00261.html





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-04-07 20:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-04 19:32 bug#8425: 24.0.50; ./stdint.h:82:7: error: #elif with no expression Peter Dyballa
2011-04-07 20:54 ` Glenn Morris

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).