Failure to build new gmp dll.

librik at panix.com librik at panix.com
Fri Oct 20 19:23:24 CEST 2006


"djh" <henman at it.to-be.co.jp> wrote:
> I am trying to build a dll with the new gnu mp package, i.e., 4.2.1, but have
> run into a problem...  Please read on and see if you can give me a hand.
....
> 
> And now for the offending line in ".../mpn/tmp-dive_1.s"  
> Line # 110 below in context.
> 
>                         call    Lmovl_eip_ebp
> line #110       addl    $_GLOBAL_OFFSET_TABLE_, %ebp
>                         movl    ___gmp_modlimb_invert_table at GOT(%ebp), %ebp
>                         movzbl  (%eax,%ebp), %ebp                       

Yes, you've run into a bug that I found and reported earlier
this year.  Here's my post and Torbjorn Granlund's reply:

http://gmplib.org/list-archives/gmp-devel/2006-April/000618.html
http://gmplib.org/list-archives/gmp-devel/2006-April/000619.html

I assume what's happened is what Torbjorn described:  a newer
libtool has arrived, the bug in libtool is still not fixed, and
so his temporary fix broke again.

I don't know how this sort of thing works in the free-software
world.  How do you get the libtoolers to undo their change
without getting involved in the development of libtool yourself?

Anyway, my own workaround was to invoke configure with CPPFLAGS=
-DDLL_EXPORT set.  That's the preprocessor define that libtool
is supposed to provide.

- David Librik
librik at panix.com


More information about the gmp-bugs mailing list