Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Compile errors on AIX 5.2
- X-seq: zsh-workers 23575
- From: Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>
- To: Daniel Qarras <dqarras@xxxxxxxxx>, zsh-workers@xxxxxxxxxx
- Subject: Re: Compile errors on AIX 5.2
- Date: Tue, 19 Jun 2007 21:31:07 +0100
- In-reply-to: Message from Daniel Qarras <dqarras@xxxxxxxxx> of "Tue, 19 Jun 2007 11:55:35 PDT." <20070619185535.77735.qmail@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
Daniel Qarras wrote:
> > Sorry about the noise, that was obvious, the prototype just didn't
> > match the function.
Another one I should have spotted; I've fixed that.
> But this one seems more hairy:
> >
> > gcc -s -shared -o cap.so -Wl,-bI:../../Src/zsh.export
> > -Wl,-bE:cap.export -emodentry cap..o ../../Src/modentry..o -liconv
> > -ldl -lcurses -lm -lc
> > cap..o(.pr+0x32):cap.c: relocation truncated to fit: 0x03
> > module_features
>
> Well, this one seems to be caused by GNU binutils-2.15 ld, native AIX
> ld works ok here.
module_features is file static, so I don't see a lot I can do about this
anyway, but if renaming it or something such helps I can do it.
> But after this a problem comes up from AIX specific
> defines that I cannot grok.
>
> ld: 0711-317 ERROR: Undefined symbol: .enables_
> ld: 0711-317 ERROR: Undefined symbol: .features_
I didn't update the newuser module for feature support; most systems
don't care but AIX insists on linking all module functions. This
should fix it.
Index: Src/Modules/newuser.c
===================================================================
RCS file: /cvsroot/zsh/zsh/Src/Modules/newuser.c,v
retrieving revision 1.5
diff -u -r1.5 newuser.c
--- Src/Modules/newuser.c 7 Feb 2006 05:19:21 -0000 1.5
+++ Src/Modules/newuser.c 19 Jun 2007 20:26:37 -0000
@@ -40,6 +40,20 @@
}
/**/
+int
+features_(Module m, char ***features)
+{
+ return 1;
+}
+
+/**/
+int
+enables_(Module m, int **enables)
+{
+ return 0;
+}
+
+/**/
static int
check_dotfile(const char *dotdir, const char *fname)
{
--
Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>
Web page now at http://homepage.ntlworld.com/p.w.stephenson/
Messages sorted by:
Reverse Date,
Date,
Thread,
Author