From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9482 invoked from network); 12 Jun 2001 17:56:30 -0000 Received: from sunsite.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 12 Jun 2001 17:56:30 -0000 Received: (qmail 20952 invoked by alias); 12 Jun 2001 17:56:01 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 14868 Received: (qmail 20936 invoked from network); 12 Jun 2001 17:56:00 -0000 X-Envelope-Sender-Is: Andrej.Borsenkow@mow.siemens.ru (at relayer david.siemens.de) Message-ID: <3B265853.3000108@mow.siemens.ru> Date: Tue, 12 Jun 2001 21:58:43 +0400 From: Andrej Borsenkow User-Agent: Mozilla/5.0 (X11; U; Linux 2.4.5-3mdk i686; en-US; rv:0.9.1) Gecko/20010608 X-Accept-Language: en-us MIME-Version: 1.0 To: Timothy Miller CC: ZSH Workers Mailing List Subject: Re: AIX-problem: the main module won't link statically References: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Timothy Miller wrote: > > No, autoconf doesn't exist on our aix machines, and I had no idea where > autoheader came from or what it was part of, and presumed it was > architecture-independent because it wasn't run as part of compiles of the > regular distribution. > Both autoconf (and autoheader as its part) is needed only for developers to produce configure. Then it is really not used anymore to actually compile package. > > The second part of the patch didn't quite work on configure.in as the patch > has > > elif test "$host_os" = cygwin; then > > where configure.in has > > elif test "x$ac_cv_cygwin" = xyes; then > > but other than that they're the same, so I applied that part by hand. > Yes, it was changed for autoconf-2.50 compatibility, sorry. > ok, "CC=cc ./configure --prefix=/cs", manually running autoheader, make > fails, log and other files included below. That is almost perfect! Now we have to deal with usual AIX problems :-) Two things: cc -qlanglvl=ansi -s -o zsh main.o `cat stamp-modobjs` -bE:zsh.export -ldl -lcurses -lm -lc ld: 0711-319 WARNING: Exported symbol not defined: dputs ld: 0711-319 WARNING: Exported symbol not defined: zpathmax That is general problem. dputs is defined under DEBUG and zpathmax is commmented out but they are marked as mod_export and our script does not notice it. May be, we could pass the source file through cpp first before generating export files. cc -qlanglvl=ansi -c -I. -DHAVE_CONFIG_H -DMODULE -O -o zftp..o zftp.c "zftp.c", line 1175.30: 1506-280 (E) Function argument assignment between types "unsigned long*" and "int*" is not allowed. "zftp.c", line 1306.33: 1506-280 (E) Function argument assignment between types "unsigned long*" and "int*" is not allowed. "zftp.c", line 2041.68: 1506-280 (E) Function argument assignment between types "unsigned long*" and "int*" is not allowed. 1500-030: (I) INFORMATION: zfgetmsg: Additional optimization may be attained by recompiling and specifying MAXMEM option with a value greater than 2048. ( echo '#!'; cat zftp.syms | sed -n '/^X/{s/^X//;p;}' | sort -u ) > zftp.exportrm -f zftp.so cc -qlanglvl=ansi -s -o zftp.so -bI:../../Src/zsh.export -bE:zftp.export -emodentry zftp..o ../../Src/modentry..o -ldl -lcurses -lm -lc ld: 0711-317 ERROR: Undefined symbol: .handler ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information. gmake[3]: *** [zftp.so] Error 8 gmake[3]: Leaving directory `/cs/src/zsh/zsh-4.0.1/Src/Modules' gmake[2]: *** [modules] Error 1 gmake[2]: Leaving directory `/cs/src/zsh/zsh-4.0.1/Src' gmake[1]: *** [modules] Error 2 gmake[1]: Leaving directory `/cs/src/zsh/zsh-4.0.1/Src' gmake: *** [all] Error 1 Prototype errors are for getsockname(), accept(). Timothy, could you send us header where these are declared? I do not understand where this ``handler'' comes from; I do not see any reference in zftp.c. Tomothy, could you run with suggested options (-bnoquiet -bloadmap)? I guess, ``make DLLDFLAGS='-bnoquiet -bloadmap'' should do the trick. Anyway, configure part is more or less clear; the only problem is GCC, but to do something wihtout actual access to AIX is pretty hard. -andrej