emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Emacs can't be built on IBM's AIX.


From: Kenichi Handa
Subject: Emacs can't be built on IBM's AIX.
Date: Wed, 8 Nov 2000 22:01:00 +0900 (JST)

Emacs can't be compiled on this system.
% uname -a
AIX aix 3 4 000B665D4C00

And, with the following patch, at least compilation
succeeded.

----------------------------------------------------------------------
*** ibmrs6000.h.~1.37.~ Mon Aug 14 09:35:05 2000
--- ibmrs6000.h Wed Nov  8 21:31:55 2000
***************
*** 150,155 ****
--- 150,163 ----
  #define HAVE_SYSVIPC
  /*** BUILD 9008 - FIONREAD problem still exists in X-Windows. ***/
  #define BROKEN_FIONREAD
+ /* As we define BROKEN_FIONREAD, SIGIO will be undefined in systty.h.
+    But, on AIX, SIGAIO, SIGPTY, and SIGPOLL are defined as SIGIO,
+    which causes compilation error at init_signals in sysdep.c.  So, we
+    define these macros so that syssignal.h detects them and undefine
+    SIGAIO, SIGPTY and SIGPOLL.  */
+ #define BROKEN_SIGAIO
+ #define BROKEN_SIGPTY
+ #define BROKEN_SIGPOLL
  
  /* Don't try to include sioctl.h or ptem.h.  */
  #undef NEED_SIOCTL
***************
*** 181,187 ****
--- 189,197 ----
  #define LD_SWITCH_SITE -B/bin/
  #endif
  
+ #ifndef NLIST_STRUCT
  /* AIX supposedly doesn't use this interface, but on the RS/6000
     it apparently does.  */
  #define NLIST_STRUCT
+ #endif
  #endif /* USG5_4 */
*** syssignal.h.~1.33.~ Mon Aug 14 09:33:41 2000
--- syssignal.h Wed Nov  8 21:32:48 2000
***************
*** 144,149 ****
--- 144,156 ----
  #if defined (SIGURG) && defined (BROKEN_SIGURG)
  #undef SIGURG
  #endif
+ #if defined (SIGAIO) && defined (BROKEN_SIGAIO)
+ #undef SIGAIO
+ #endif
+ #if defined (SIGPTY) && defined (BROKEN_SIGPTY)
+ #undef SIGPTY
+ #endif
+ 
  
  #if NSIG < NSIG_MINIMUM
  # ifdef NSIG
----------------------------------------------------------------------

But, the resulting emacs crashes at __start ().

(gdb) run
Starting program: /usr/local/work/fsf-emacs/src/emacs -geometry 80x40+0+0

Program received signal SIGSEGV, Segmentation fault.
0x1000018c in __start ()
(gdb) bt
#0  0x1000018c in __start ()
#1  0xdeadbeef in ?? () from (unknown load module)

I gave up at this point because I'm not familiar with AIX.

---
Ken'ichi HANDA
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]