Trying to install CPAN Math::GMP. Can libgmp3 provide -libgmp?

Marc Girod marc.girod@gmail.com
Wed Jun 3 11:34:00 GMT 2009



Marc Girod wrote:
> 
> Where does IV come from is what I'll try to find next.
> 
This seems to be from the perlapi:

       sv_iv   A private implementation of the "SvIVx" macro for compilers
               which can't cope with complex macro expressions. Always use
the
               macro instead.

                       IV      sv_iv(SV* sv)

In /usr/lib/perl5/5.10/i686-cygwin/CORE/perl.h:


...
/*
    The IV type is supposed to be long enough to hold any integral
    value or a pointer.
    --Andy Dougherty	August 1996
*/

typedef IVTYPE IV;


Now, you'd ask... what about IVTYPE?

/usr/lib/perl5/5.10/i686-cygwin/CORE/config.h has:

/* IVTYPE:
 *	This symbol defines the C type used for Perl's IV.
 */
...
#define	IVTYPE		long long		/**/

/usr/lib/perl5/5.10/i686-cygwin/CORE/uconfig.h this:

#define	IVTYPE		long		/**/

and /usr/lib/perl5/5.10/i686-cygwin/Devel/PPPort.pm various definitions
depending on context:

#    ifdef INTSIZE
#ifndef IVSIZE
#  define IVSIZE                         INTSIZE
#endif

#    endif
#  else
#    if defined(convex) || defined(uts)
#ifndef IVTYPE
#  define IVTYPE                         long long
#endif
...
#      ifdef LONGLONGSIZE
#ifndef IVSIZE
#  define IVSIZE                         LONGLONGSIZE
#endif

#      endif
#    else
#ifndef IVTYPE
#  define IVTYPE                         long
#endif

So, it very much depends which definition is hit first...

Marc
-- 
View this message in context: http://www.nabble.com/Trying-to-install-CPAN-Math%3A%3AGMP.-Can-libgmp3-provide--libgmp--tp23830861p23849850.html
Sent from the Cygwin list mailing list archive at Nabble.com.


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/



More information about the Cygwin mailing list