zsh-users
 help / color / mirror / code / Atom feed
From: "Peter A. Castro" <doctor@fruitbat.org>
To: zsh-users@zsh.org
Subject: PATCH: build zsh-5.8 on AIX 7.1
Date: Wed, 25 Aug 2021 14:55:11 -0700	[thread overview]
Message-ID: <20210825215510.GW18420@ming.fruitbat.org> (raw)

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


             reply	other threads:[~2021-08-25 21:56 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-25 21:55 Peter A. Castro [this message]
2021-08-28 20:41 ` Peter Stephenson
2021-08-30 19:17   ` Peter A. Castro
2021-08-30 19:25     ` Peter Stephenson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210825215510.GW18420@ming.fruitbat.org \
    --to=doctor@fruitbat.org \
    --cc=zsh-users@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

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 NNTP newsgroup(s).