From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14157 invoked from network); 19 Jun 2007 20:31:57 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.1 (2007-05-02) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.1 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 19 Jun 2007 20:31:57 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 57262 invoked from network); 19 Jun 2007 20:31:51 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 19 Jun 2007 20:31:51 -0000 Received: (qmail 12396 invoked by alias); 19 Jun 2007 20:31:49 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 23575 Received: (qmail 12386 invoked from network); 19 Jun 2007 20:31:48 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 19 Jun 2007 20:31:48 -0000 Received: (qmail 56929 invoked from network); 19 Jun 2007 20:31:47 -0000 Received: from mtaout03-winn.ispmail.ntl.com (81.103.221.49) by a.mx.sunsite.dk with SMTP; 19 Jun 2007 20:31:40 -0000 Received: from aamtaout03-winn.ispmail.ntl.com ([81.103.221.35]) by mtaout03-winn.ispmail.ntl.com with ESMTP id <20070619203135.VBSJ13.mtaout03-winn.ispmail.ntl.com@aamtaout03-winn.ispmail.ntl.com>; Tue, 19 Jun 2007 21:31:35 +0100 Received: from pws-pc.ntlworld.com ([81.107.45.67]) by aamtaout03-winn.ispmail.ntl.com with ESMTP id <20070619203135.MTGE26699.aamtaout03-winn.ispmail.ntl.com@pws-pc.ntlworld.com>; Tue, 19 Jun 2007 21:31:35 +0100 Received: from pws-pc.ntlworld.com (pws-pc.ntlworld.com [127.0.0.1]) by pws-pc.ntlworld.com (8.13.8/8.13.8) with ESMTP id l5JKV7BL008397; Tue, 19 Jun 2007 21:31:08 +0100 Message-Id: <200706192031.l5JKV7BL008397@pws-pc.ntlworld.com> From: Peter Stephenson To: Daniel Qarras , zsh-workers@sunsite.dk Subject: Re: Compile errors on AIX 5.2 In-Reply-To: Message from Daniel Qarras of "Tue, 19 Jun 2007 11:55:35 PDT." <20070619185535.77735.qmail@web36806.mail.mud.yahoo.com> Date: Tue, 19 Jun 2007 21:31:07 +0100 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 Web page now at http://homepage.ntlworld.com/p.w.stephenson/