Martin Buchholz <martin(a)xemacs.org> writes:
ChangeLog:
Define _POSIX_C_SOURCE, _XOPEN_SOURCE, _XOPEN_SOURCE_EXTENDED,
but only on tested Operating systems - Linux && SunOS >= 5.5.
this breaks my build on SunOS 5.5.1 (installation below):
ge204@marple$ make getloadavg.o
cc -c -g -Demacs -I. -DHAVE_CONFIG_H -I/home/tigger3/ge204/local-sol/include
-I/usr/local/include -I/usr/dt/include -I/usr/openwin/include
/home/tigger3/ge204/src/XEmacs/xemacs/src/getloadavg.c
"/usr/include/sys/klwp.h", line 93: syntax error before or at: k_siginfo_t
"/usr/include/sys/klwp.h", line 93: cannot recover from previous errors
cc: acomp failed for /home/tigger3/ge204/src/XEmacs/xemacs/src/getloadavg.c
make: *** [getloadavg.o] Error 2
my config.h contains:
-----
#define _POSIX_C_SOURCE 199506L
#define __EXTENSIONS__ 1
-----
k_siginfo_t is defined in /usr/include/sys/signifo.h:
--------------
#if !defined(_POSIX_C_SOURCE) || (_POSIX_C_SOURCE > 2) || \
defined(__EXTENSIONS__)
#if !defined(_POSIX_C_SOURCE)
typedef struct k_siginfo {
[...]
} k_siginfo_t;
#endif /* !defined(_POSIX_C_SOURCE) */
#endif /* !defined(_POSIX_C_SOURCE) || (_POSIX_C_SOURCE > 2) ... */
-----------
therefore k_siginfo_t is not defined.
on Solaris 2.6 the inner #if has been changed to:
#if !defined(_POSIX_C_SOURCE) && !defined(_XPG4_2) || defined(__EXTENSIONS__)
do I need to install some patches?
Anyway, we probably need to undo (parts of) Martin's patch.
Gunnar
uname -a: SunOS marple 5.5.1 Generic_103640-08 sun4u sparc
../xemacs/configure '--compiler=cc' '--cflags=-g' '--with-pop'
'--with-workshop' '--with-mule'
'--x-includes=/usr/openwin/include' '--x-libraries=/usr/openwin/lib'
'--site-prefixes=/home/tigger3/ge204/local-sol /usr/local'
'--prefix=/tools/emacs' '--ldflags=-Wl,-znoversion'
XEmacs 21.2-b28 "Hermes" configured for `sparc-sun-solaris2.5.1'.
Where should the build process find the source code?
/home/tigger3/ge204/src/XEmacs/xemacs
What installation prefix should install use? /tools/emacs
What operating system and machine description files should XEmacs use?
`s/sol2.h' and `m/sparc.h'
What compiler should XEmacs be built with? cc -g
Should XEmacs use the GNU version of malloc? yes
Should XEmacs use the relocating allocator for buffers? yes
What window system should XEmacs use? x11
Where do we find X Windows header files? /usr/dt/include
/usr/openwin/include
Where do we find X Windows libraries? /usr/dt/lib /usr/openwin/lib
Additional prefixes: /home/tigger3/ge204/local-sol
/usr/local
Runtime library search path:
/usr/local/lib:/usr/dt/lib:/usr/openwin/lib:/opt/SUNWdt/lib
Athena library to link: Xaw
Athena header include path: X11/Xaw
Compiling in support for XAUTH.
Compiling in support for XPM images.
Compiling in support for PNG image handling.
Compiling in support for (builtin) GIF image handling.
Compiling in support for JPEG image handling.
Compiling in support for X-Face message headers.
Compiling in support for Berkeley DB.
Compiling in support for DBM.
Compiling in Mule (multi-lingual) support.
Compiling in XIM (X11R5+ I18N input method) support.
Using Motif to provide XIM support.
Compiling in support for ToolTalk.
Compiling in support for Sun WorkShop.
Compiling in support for proper WM_COMMAND handling.
Using Lucid menubars.
Using Lucid scrollbars.
Using Motif native widgets.
Using Motif dialog boxes.
Compiling in dynamic shared object module support.
movemail will use "dot-locking" for locking mail spool files.
Using POP for mail access.
Compiling in extra code for debugging.
WARNING: ---------------------------------------------------------
WARNING: Compiling in support for runtime error checking.
WARNING: XEmacs will run noticeably more slowly as a result.
WARNING: Error checking is on by default for XEmacs beta releases.
WARNING: ---------------------------------------------------------