Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

PATCH: build zsh-5.8 on AIX 7.1



Greetings, All,

  Found I needed to build zsh on AIX 7.1 and found a few things needing
simple tweaks to make it compile/link.  I'm a little surprised some of
this hasn't bubbled up on other platforms, but AIX has always been a
little schizophrenic, so whatever.

  Also found you needed to set CC and CFLAGS thus:
  CC=xlc
  CFLAGS="-qlanglvl=stdc99"

Don't know where that knowledge should be placed, but most other compile
options (ie: cc, c98, etc) produce weird errors.  The above probably
needs to go into configure somewhere.

  Sorry about the diff output here.  AIX's diff is pretty limited.


diff -u Src/Zle/zle_main.c.orig Src/Zle/zle_main.c
--- Src/Zle/zle_main.c.orig	2021-08-25 13:34:08.000000000 -0700
+++ Src/Zle/zle_main.c	2021-08-25 13:34:46.000000000 -0700
@@ -1056,7 +1056,7 @@
  #endif
  
  /**/
- void
+ mod_export void
  redrawhook(void)
  {
      Thingy initthingy;
diff -u Src/Zle/zle_keymap.c.orig Src/Zle/zle_keymap.c
--- Src/Zle/zle_keymap.c.orig	2021-08-25 13:36:33.000000000 -0700
+++ Src/Zle/zle_keymap.c	2021-08-25 13:36:50.000000000 -0700
@@ -404,7 +404,7 @@
  /**************************/
  
  /**/
- Keymap
+ mod_export Keymap
  openkeymap(char *name)
  {
      KeymapName n = (KeymapName) keymapnamtab->getnode(keymapnamtab, name);
diff -u Src/Zle/zle_move.c.orig Src/Zle/zle_move.c
--- Src/Zle/zle_move.c.orig	2021-08-25 13:33:47.000000000 -0700
+++ Src/Zle/zle_move.c	2021-08-25 13:35:00.000000000 -0700
@@ -166,7 +166,7 @@
   */
  
  /**/
- char *
+ mod_export char *
  backwardmetafiedchar(char *start, char *endptr, convchar_t *retchr)
  {
  #ifdef MULTIBYTE_SUPPORT
diff -u Src/openssh_bsd_setres_id.c.orig Src/openssh_bsd_setres_id.c
--- Src/openssh_bsd_setres_id.c.orig	2021-08-25 12:43:24.000000000 -0700
+++ Src/openssh_bsd_setres_id.c	2021-08-25 12:43:36.000000000 -0700
@@ -46,6 +46,8 @@
   *
   */
  
+ #include "zsh.mdh"
+ #include "openssh_bsd_setres_id.pro"
  
  #include <sys/types.h>
  
@@ -52,8 +54,6 @@
  #include <stdarg.h>
  #include <unistd.h>
  #include <string.h>
- 
- #include "zsh.mdh"
  
  #if defined(ZSH_IMPLEMENT_SETRESGID) || defined(BROKEN_SETRESGID)
  int
diff -u Src/builtin.c.orig Src/builtin.c
--- Src/builtin.c.orig	2021-08-25 13:29:46.000000000 -0700
+++ Src/builtin.c	2021-08-25 13:30:16.000000000 -0700
@@ -2597,7 +2597,7 @@
   */
  
  /**/
- int
+ mod_export int
  bin_typeset(char *name, char **argv, LinkList assigns, Options ops, int func)
  {
      Param pm;

-- 
--=> Peter A. Castro
Email: doctor at fruitbat dot org / Peter dot Castro at oracle dot com
	"Cats are just autistic Dogs" -- Dr. Tony Attwood




Messages sorted by: Reverse Date, Date, Thread, Author