GNU bug report logs -
#11781
compilation failure: `ULLONG_MAX' undeclared
Previous Next
Reported by: Dan Nicolaescu <dann <at> gnu.org>
Date: Mon, 25 Jun 2012 18:17:01 UTC
Severity: normal
Done: Paul Eggert <eggert <at> cs.ucla.edu>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
Your message dated Fri, 06 Jul 2012 20:12:07 -0700
with message-id <4FF7A907.70607 <at> cs.ucla.edu>
and subject line Re: bug#11781: compilation failure: `ULLONG_MAX' undeclared
has caused the debbugs.gnu.org bug report #11781,
regarding compilation failure: `ULLONG_MAX' undeclared
to be marked as done.
(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)
--
11781: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=11781
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
On an ancient machine (don't ask) building the trunk fails:
gcc -c -Demacs -DHAVE_CONFIG_H -I. -I/tmp/emacs/src -I../lib -I/tmp/emacs/src/../lib -I/usr/X11R6/include -MMD -MF deps/sysdep.d -MP -g -O2 /tmp/emacs/src/sysdep.c
/tmp/emacs/src/sysdep.c: In function `time_from_jiffies':
/tmp/emacs/src/sysdep.c:2587: `ULLONG_MAX' undeclared (first use in this function)
/tmp/emacs/src/sysdep.c:2587: (Each undeclared identifier is reported only once
/tmp/emacs/src/sysdep.c:2587: for each function it appears in.)
make[1]: *** [sysdep.o] Error 1
$ cat /etc/redhat-release
Red Hat Linux release 7.3 (Valhalla)
$ rpm -q glibc-devel
glibc-devel-2.2.5-44
$ gcc -v
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/2.96/specs
gcc version 2.96 20000731 (Red Hat Linux 7.3 2.96-113)
[Message part 3 (message/rfc822, inline)]
In trunk bzr 108930 I patched sysdep.c so that it defines
ULLONG_MAX if the system doesn't already define it; that should
fix the immediate problem so I've marked this as done.
About the C99 issue: Emacs uses a standard test for
C99, which checks for many C99 features that your
compiler lacks. It then falls back on ordinary gcc.
Perhaps this could be hacked to be smarter, though I'm
not sure it's worth the aggravation if things are
working for you now.
This bug report was last modified 12 years and 323 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.