When compiling Math::GMPz 0.29 on Mac OS X 10.6 with GMP 4.3.1_1 and Perl 5.10. I successfully compiled Math::GMPz 0.28 on the same system previously.
The error occurs with Random.c:
gcc-4.2 -c -I/opt/local/include -arch x86_64 -arch i386 -arch ppc -g -pipe -fno-
common -DPERL_DARWIN -fno-strict-aliasing -I/usr/local/include -Os -
DVERSION=\"0.29\" -DXS_VERSION=\"0.29\" "-I/System/Library/Perl/5.10.0/darwin-
thread-multi-2level/CORE" Random.c
Random.xs: In function ‘Rgmp_randinit_default’:
Random.xs:13: warning: format not a string literal and no format arguments
Random.xs: In function ‘Rgmp_randinit_mt’:
Random.xs:28: warning: format not a string literal and no format arguments
Random.xs: In function ‘Rgmp_randinit_lc_2exp’:
Random.xs:43: warning: format not a string literal and no format arguments
Random.xs:47: error: ‘mp_bitcnt_t’ undeclared (first use in this function)
Random.xs:47: error: (Each undeclared identifier is reported only once
Random.xs:47: error: for each function it appears in.)
Random.xs: In function ‘Rgmp_randinit_lc_2exp_size’:
Random.xs:62: error: ‘mp_bitcnt_t’ undeclared (first use in this function)
Random.xs:66: warning: format not a string literal and no format arguments
Random.xs: In function ‘Rgmp_randinit_set’:
Random.xs:81: warning: format not a string literal and no format arguments
Random.xs: In function ‘Rgmp_urandomb_ui’:
Random.xs:95: warning: format ‘%d’ expects type ‘int’, but argument 2 has type ‘long
unsigned int’
Random.xs:95: warning: format ‘%d’ expects type ‘int’, but argument 3 has type ‘long
unsigned int’
Random.xs: In function ‘Rgmp_randinit_default_nobless’:
Random.xs:109: warning: format not a string literal and no format arguments
Random.xs: In function ‘Rgmp_randinit_mt_nobless’:
Random.xs:124: warning: format not a string literal and no format arguments
Random.xs: In function ‘Rgmp_randinit_lc_2exp_nobless’:
Random.xs:139: warning: format not a string literal and no format arguments
Random.xs:143: error: ‘mp_bitcnt_t’ undeclared (first use in this function)
Random.xs: In function ‘Rgmp_randinit_lc_2exp_size_nobless’:
Random.xs:155: warning: format not a string literal and no format arguments
Random.xs:159: error: ‘mp_bitcnt_t’ undeclared (first use in this function)
Random.xs: In function ‘Rgmp_randinit_set_nobless’:
Random.xs:171: warning: format not a string literal and no format arguments
Random.xs: In function ‘Rgmp_randinit_default’:
Random.xs:13: warning: format not a string literal and no format arguments
Random.xs: In function ‘Rgmp_randinit_mt’:
Random.xs:28: warning: format not a string literal and no format arguments
Random.xs: In function ‘Rgmp_randinit_lc_2exp’:
Random.xs:43: warning: format not a string literal and no format arguments
Random.xs:47: error: ‘mp_bitcnt_t’ undeclared (first use in this function)
Random.xs:47: error: (Each undeclared identifier is reported only once
Random.xs:47: error: for each function it appears in.)
Random.xs: In function ‘Rgmp_randinit_lc_2exp_size’:
Random.xs:62: error: ‘mp_bitcnt_t’ undeclared (first use in this function)
Random.xs:66: warning: format not a string literal and no format arguments
Random.xs: In function ‘Rgmp_randinit_set’:
Random.xs:81: warning: format not a string literal and no format arguments
Random.xs: In function ‘Rgmp_urandomb_ui’:
Random.xs:95: warning: format ‘%d’ expects type ‘int’, but argument 2 has type ‘long
unsigned int’
Random.xs:95: warning: format ‘%d’ expects type ‘int’, but argument 3 has type ‘long
unsigned int’
Random.xs: In function ‘Rgmp_randinit_default_nobless’:
Random.xs:109: warning: format not a string literal and no format arguments
Random.xs: In function ‘Rgmp_randinit_mt_nobless’:
Random.xs:124: warning: format not a string literal and no format arguments
Random.xs: In function ‘Rgmp_randinit_lc_2exp_nobless’:
Random.xs:139: warning: format not a string literal and no format arguments
Random.xs:143: error: ‘mp_bitcnt_t’ undeclared (first use in this function)
Random.xs: In function ‘Rgmp_randinit_lc_2exp_size_nobless’:
Random.xs:155: warning: format not a string literal and no format arguments
Random.xs:159: error: ‘mp_bitcnt_t’ undeclared (first use in this function)
Random.xs: In function ‘Rgmp_randinit_set_nobless’:
Random.xs:171: warning: format not a string literal and no format arguments
Random.xs: In function ‘Rgmp_randinit_default’:
Random.xs:13: warning: format not a string literal and no format arguments
Random.xs: In function ‘Rgmp_randinit_mt’:
Random.xs:28: warning: format not a string literal and no format arguments
Random.xs: In function ‘Rgmp_randinit_lc_2exp’:
Random.xs:43: warning: format not a string literal and no format arguments
Random.xs:47: error: ‘mp_bitcnt_t’ undeclared (first use in this function)
Random.xs:47: error: (Each undeclared identifier is reported only once
Random.xs:47: error: for each function it appears in.)
Random.xs: In function ‘Rgmp_randinit_lc_2exp_size’:
Random.xs:62: error: ‘mp_bitcnt_t’ undeclared (first use in this function)
Random.xs:66: warning: format not a string literal and no format arguments
Random.xs: In function ‘Rgmp_randinit_set’:
Random.xs:81: warning: format not a string literal and no format arguments
Random.xs: In function ‘Rgmp_urandomb_ui’:
Random.xs:95: warning: format ‘%d’ expects type ‘int’, but argument 2 has type ‘long
unsigned int’
Random.xs:95: warning: format ‘%d’ expects type ‘int’, but argument 3 has type ‘long
unsigned int’
Random.xs: In function ‘Rgmp_randinit_default_nobless’:
Random.xs:109: warning: format not a string literal and no format arguments
Random.xs: In function ‘Rgmp_randinit_mt_nobless’:
Random.xs:124: warning: format not a string literal and no format arguments
Random.xs: In function ‘Rgmp_randinit_lc_2exp_nobless’:
Random.xs:139: warning: format not a string literal and no format arguments
Random.xs:143: error: ‘mp_bitcnt_t’ undeclared (first use in this function)
Random.xs: In function ‘Rgmp_randinit_lc_2exp_size_nobless’:
Random.xs:155: warning: format not a string literal and no format arguments
Random.xs:159: error: ‘mp_bitcnt_t’ undeclared (first use in this function)
Random.xs: In function ‘Rgmp_randinit_set_nobless’:
Random.xs:171: warning: format not a string literal and no format arguments
lipo: can't open input file: /var/folders/3R/3R3hKK62GTG1uUyK5ZU6Y++++TI/-Tmp-
//ccL2n0uB.out (No such file or directory)
make[1]: *** [Random.o] Error 1
make: *** [subdirs] Error 2
Let me know if you need any other information.