Problems building 4.2 on AIX 5.3

Albert Chin gmp-discuss at mlists.thewrittenword.com
Tue Apr 18 22:14:32 CEST 2006


On Tue, Apr 18, 2006 at 07:38:49PM +0200, Torbjorn Granlund wrote:
> Albert Chin <gmp-discuss at mlists.thewrittenword.com> writes:
> 
>     /opt/TWWfsw/m4/bin/gm4  -DHAVE_CONFIG_H -D__GMP_WITHIN_GMP
>     -DOPERATION_mode1o -DPIC mode1o.asm >tmp-mode1o.s
>      xlc -c -DHAVE_CONFIG_H -I. -I. -I.. -D__GMP_WITHIN_GMP -I..
>     -DOPERATION_mode1o -O2 -qro -qroconst -qmaxmem=-1 -qarch=ppc
>     tmp-mode1o.s -DPIC -o .libs/mode1o.o
>     Assembler:
>     tmp-mode1o.s: line 142: undefined symbol "__gmp_modlimb_invert_table"
>     tmp-mode1o.s: line 142: illegal expression
>     gmake[2]: *** [mode1o.lo] Error 1
>     gmake[2]: Leaving directory `/opt/build/gmp-4.2/mpn'
>   
>   $ tail -4 mpn/tmp-mode1o.s
>           .toc
>   tc__gmp_modlimb_invert_table:
>           .tc     __gmp_modlimb_invert_table[TC], __gmp_modlimb_invert_table[RW]
> 
> Apparently AIX wants a .global (or .extern) declaration before en
> external symbol can be referenced.  I've implemented a fix for 4.2.1
> (basically copying the EXTERN stuff from mpn/powerpc64 to mpn/powerpc32).

Want me to test a patch?

-- 
albert chin (china at thewrittenword.com)


More information about the gmp-discuss mailing list