BUG: py-crypto-2.0.1 build failure
Reported by: |
mrgibson@… |
Owned by: |
mww@… |
Priority:
|
High
|
Milestone:
|
|
Component:
|
ports
|
Version:
|
1.3.2
|
Keywords:
|
py-crypto
|
Cc:
|
markd@…
|
Port:
|
|
|
|
building 'Crypto.PublicKey._fastmath' extension
gcc -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -Isrc/ -I/Library/Frameworks/Python.framework/Versions/2.4/include/python2.4 -c src/_fastmath.c -o build/temp.darwin-8.7.0-Power_Macintosh-2.4/src/_fastmath.o
src/_fastmath.c:18:17: gmp.h: No such file or directory
src/_fastmath.c:21: error: parse error before "m"
src/_fastmath.c:22: warning: function declaration isn't a prototype
src/_fastmath.c: In function `longObjToMPZ':
src/_fastmath.c:24: error: `mpz_t' undeclared (first use in this function)
src/_fastmath.c:24: error: (Each undeclared identifier is reported only once
src/_fastmath.c:24: error: for each function it appears in.)
src/_fastmath.c:24: error: parse error before "temp"
src/_fastmath.c:25: warning: implicit declaration of function `mpz_init'
src/_fastmath.c:25: error: `temp' undeclared (first use in this function)
src/_fastmath.c:26: error: `temp2' undeclared (first use in this function)
src/_fastmath.c:27: error: `p' undeclared (first use in this function)
src/_fastmath.c:33: warning: implicit declaration of function `mpz_set_ui'
src/_fastmath.c:34: warning: implicit declaration of function `mpz_mul_2exp'
src/_fastmath.c:35: warning: implicit declaration of function `mpz_add'
src/_fastmath.c:35: error: `m' undeclared (first use in this function)
src/_fastmath.c:37: warning: implicit declaration of function `mpz_clear'
src/_fastmath.c: At top level:
src/_fastmath.c:42: error: parse error before "m"
src/_fastmath.c:43: warning: function declaration isn't a prototype
src/_fastmath.c: In function `mpzToLongObj':
src/_fastmath.c:45: warning: implicit declaration of function `mpz_sizeinbase'
src/_fastmath.c:45: error: `m' undeclared (first use in this function)
src/_fastmath.c:47: error: `mpz_t' undeclared (first use in this function)
src/_fastmath.c:47: error: parse error before "temp"
src/_fastmath.c:51: warning: implicit declaration of function `mpz_init_set'
src/_fastmath.c:51: error: `temp' undeclared (first use in this function)
src/_fastmath.c:54: warning: implicit declaration of function `mpz_get_ui'
src/_fastmath.c:55: warning: implicit declaration of function `mpz_fdiv_q_2exp'
src/_fastmath.c: At top level:
src/_fastmath.c:67: error: parse error before "mpz_t"
src/_fastmath.c:67: warning: no semicolon at end of struct or union
src/_fastmath.c:68: warning: type defaults to int' in declaration of
g'
src/_fastmath.c:68: warning: data definition has no type or storage class
src/_fastmath.c:69: error: parse error before "p"
src/_fastmath.c:69: warning: type defaults to int' in declaration of
p'
src/_fastmath.c:69: error: `p' used prior to declaration
src/_fastmath.c:69: warning: data definition has no type or storage class
src/_fastmath.c:70: error: parse error before "q"
src/_fastmath.c:70: warning: type defaults to int' in declaration of
q'
src/_fastmath.c:70: warning: data definition has no type or storage class
src/_fastmath.c:71: error: parse error before "x"
src/_fastmath.c:71: warning: type defaults to int' in declaration of
x'
src/_fastmath.c:71: warning: data definition has no type or storage class
src/_fastmath.c:73: warning: type defaults to int' in declaration of
dsaKey'
src/_fastmath.c:73: warning: data definition has no type or storage class
src/_fastmath.c:77: error: parse error before "mpz_t"
src/_fastmath.c:77: warning: no semicolon at end of struct or union
src/_fastmath.c:78: warning: type defaults to int' in declaration of
e'
src/_fastmath.c:78: warning: data definition has no type or storage class
src/_fastmath.c:79: error: parse error before "d"
src/_fastmath.c:79: warning: type defaults to int' in declaration of
d'
src/_fastmath.c:79: warning: data definition has no type or storage class
src/_fastmath.c:80: error: parse error before "p"
src/_fastmath.c:80: warning: type defaults to int' in declaration of
p'
src/_fastmath.c:80: warning: data definition has no type or storage class
src/_fastmath.c:81: error: parse error before "q"
src/_fastmath.c:81: warning: type defaults to int' in declaration of
q'
src/_fastmath.c:81: warning: data definition has no type or storage class
src/_fastmath.c:82: error: parse error before "u"
src/_fastmath.c:82: warning: type defaults to int' in declaration of
u'
src/_fastmath.c:82: warning: data definition has no type or storage class
src/_fastmath.c:84: warning: type defaults to int' in declaration of
rsaKey'
src/_fastmath.c:84: warning: data definition has no type or storage class
src/_fastmath.c:89: error: parse error before '*' token
src/_fastmath.c:89: warning: function declaration isn't a prototype
src/_fastmath.c:90: error: parse error before '*' token
src/_fastmath.c:90: warning: function declaration isn't a prototype
src/_fastmath.c:91: error: parse error before '*' token
src/_fastmath.c:91: warning: function declaration isn't a prototype
src/_fastmath.c:92: error: parse error before '*' token
src/_fastmath.c:92: warning: function declaration isn't a prototype
src/_fastmath.c:93: error: parse error before '*' token
src/_fastmath.c:93: warning: function declaration isn't a prototype
src/_fastmath.c:94: error: parse error before '*' token
src/_fastmath.c:94: warning: function declaration isn't a prototype
src/_fastmath.c:96: error: parse error before '*' token
src/_fastmath.c:96: warning: function declaration isn't a prototype
src/_fastmath.c:97: error: parse error before '*' token
src/_fastmath.c:97: warning: function declaration isn't a prototype
src/_fastmath.c:98: error: parse error before '*' token
src/_fastmath.c:98: warning: function declaration isn't a prototype
src/_fastmath.c:99: error: parse error before '*' token
src/_fastmath.c:99: warning: function declaration isn't a prototype
src/_fastmath.c:100: error: parse error before '*' token
src/_fastmath.c:100: warning: function declaration isn't a prototype
src/_fastmath.c:101: error: parse error before '*' token
src/_fastmath.c:101: warning: function declaration isn't a prototype
src/_fastmath.c:102: error: parse error before '*' token
src/_fastmath.c:102: warning: function declaration isn't a prototype
src/_fastmath.c:103: error: parse error before '*' token
src/_fastmath.c:103: warning: function declaration isn't a prototype
src/_fastmath.c:104: error: parse error before '*' token
src/_fastmath.c:104: warning: function declaration isn't a prototype
src/_fastmath.c:107: error: parse error before '*' token
src/_fastmath.c:108: warning: function declaration isn't a prototype
src/_fastmath.c: In function `dsaSign':
src/_fastmath.c:109: error: `mpz_t' undeclared (first use in this function)
src/_fastmath.c:109: error: parse error before "temp"
src/_fastmath.c:110: warning: implicit declaration of function `mpz_cmp_ui'
src/_fastmath.c:110: error: `k' undeclared (first use in this function)
src/_fastmath.c:110: warning: implicit declaration of function `mpz_cmp'
src/_fastmath.c:110: error: `key' undeclared (first use in this function)
src/_fastmath.c:114: error: `temp' undeclared (first use in this function)
src/_fastmath.c:115: warning: implicit declaration of function `mpz_powm'
src/_fastmath.c:115: error: `r' undeclared (first use in this function)
src/_fastmath.c:116: warning: implicit declaration of function `mpz_mod'
src/_fastmath.c:117: warning: implicit declaration of function `mpz_invert'
src/_fastmath.c:117: error: `s' undeclared (first use in this function)
src/_fastmath.c:118: warning: implicit declaration of function `mpz_mul'
src/_fastmath.c:119: error: `m' undeclared (first use in this function)
src/_fastmath.c: At top level:
src/_fastmath.c:127: error: parse error before '*' token
src/_fastmath.c:128: warning: function declaration isn't a prototype
src/_fastmath.c: In function `dsaVerify':
src/_fastmath.c:130: error: `mpz_t' undeclared (first use in this function)
src/_fastmath.c:130: error: parse error before "u1"
src/_fastmath.c:131: error: `r' undeclared (first use in this function)
src/_fastmath.c:131: error: `key' undeclared (first use in this function)
src/_fastmath.c:132: error: `s' undeclared (first use in this function)
src/_fastmath.c:134: error: `u1' undeclared (first use in this function)
src/_fastmath.c:135: error: `u2' undeclared (first use in this function)
src/_fastmath.c:136: error: `v1' undeclared (first use in this function)
src/_fastmath.c:137: error: `v2' undeclared (first use in this function)
src/_fastmath.c:138: error: `w' undeclared (first use in this function)
src/_fastmath.c:140: error: `m' undeclared (first use in this function)
src/_fastmath.c: At top level:
src/_fastmath.c:163: error: parse error before '*' token
src/_fastmath.c:164: warning: function declaration isn't a prototype
src/_fastmath.c: In function `rsaEncrypt':
src/_fastmath.c:165: error: `v' undeclared (first use in this function)
src/_fastmath.c:165: error: `key' undeclared (first use in this function)
src/_fastmath.c: At top level:
src/_fastmath.c:174: error: parse error before '*' token
src/_fastmath.c:175: warning: function declaration isn't a prototype
src/_fastmath.c: In function `rsaDecrypt':
src/_fastmath.c:176: error: `mpz_t' undeclared (first use in this function)
src/_fastmath.c:176: error: parse error before "m1"
src/_fastmath.c:177: error: `v' undeclared (first use in this function)
src/_fastmath.c:177: error: `key' undeclared (first use in this function)
src/_fastmath.c:181: warning: implicit declaration of function `mpz_size'
src/_fastmath.c:190: error: `m1' undeclared (first use in this function)
src/_fastmath.c:191: error: `m2' undeclared (first use in this function)
src/_fastmath.c:192: error: `h' undeclared (first use in this function)
src/_fastmath.c:195: warning: implicit declaration of function `mpz_sub_ui'
src/_fastmath.c:196: warning: implicit declaration of function `mpz_fdiv_r'
src/_fastmath.c:203: warning: implicit declaration of function `mpz_sub'
src/_fastmath.c:204: warning: implicit declaration of function `mpz_sgn'
src/_fastmath.c: At top level:
src/_fastmath.c:225: error: parse error before '*' token
src/_fastmath.c:226: warning: function declaration isn't a prototype
src/_fastmath.c: In function `rsaBlind':
src/_fastmath.c:227: error: `v' undeclared (first use in this function)
src/_fastmath.c:227: error: `key' undeclared (first use in this function)
src/_fastmath.c:231: error: `b' undeclared (first use in this function)
src/_fastmath.c: At top level:
src/_fastmath.c:242: error: parse error before '*' token
src/_fastmath.c:243: warning: function declaration isn't a prototype
src/_fastmath.c: In function `rsaUnBlind':
src/_fastmath.c:244: error: `v' undeclared (first use in this function)
src/_fastmath.c:244: error: `key' undeclared (first use in this function)
src/_fastmath.c:248: error: `b' undeclared (first use in this function)
src/_fastmath.c: In function `dsaKey_new':
src/_fastmath.c:336: error: `key' undeclared (first use in this function)
src/_fastmath.c:342: error: parse error before ')' token
src/_fastmath.c: At top level:
src/_fastmath.c:360: error: parse error before '*' token
src/_fastmath.c:361: warning: function declaration isn't a prototype
src/_fastmath.c: In function `dsaKey_dealloc':
src/_fastmath.c:362: error: `key' undeclared (first use in this function)
src/_fastmath.c: At top level:
src/_fastmath.c:371: error: parse error before '*' token
src/_fastmath.c:372: warning: function declaration isn't a prototype
src/_fastmath.c: In function `dsaKey_getattr':
src/_fastmath.c:373: error: `attr' undeclared (first use in this function)
src/_fastmath.c:374: error: `key' undeclared (first use in this function)
src/_fastmath.c: At top level:
src/_fastmath.c:398: error: parse error before '*' token
src/_fastmath.c:399: warning: function declaration isn't a prototype
src/_fastmath.c: In function `dsaKeysign':
src/_fastmath.c:401: error: `mpz_t' undeclared (first use in this function)
src/_fastmath.c:401: error: parse error before "m"
src/_fastmath.c:403: error: `args' undeclared (first use in this function)
src/_fastmath.c:408: error: `m' undeclared (first use in this function)
src/_fastmath.c:409: error: `k' undeclared (first use in this function)
src/_fastmath.c:410: error: `r' undeclared (first use in this function)
src/_fastmath.c:411: error: `s' undeclared (first use in this function)
src/_fastmath.c:414: error: `key' undeclared (first use in this function)
src/_fastmath.c: At top level:
src/_fastmath.c:430: error: parse error before '*' token
src/_fastmath.c:431: warning: function declaration isn't a prototype
src/_fastmath.c: In function `dsaKeyverify':
src/_fastmath.c:433: error: `mpz_t' undeclared (first use in this function)
src/_fastmath.c:433: error: parse error before "m"
src/_fastmath.c:435: error: `args' undeclared (first use in this function)
src/_fastmath.c:440: error: `m' undeclared (first use in this function)
src/_fastmath.c:441: error: `r' undeclared (first use in this function)
src/_fastmath.c:442: error: `s' undeclared (first use in this function)
src/_fastmath.c:446: error: `key' undeclared (first use in this function)
src/_fastmath.c: At top level:
src/_fastmath.c:460: error: parse error before '*' token
src/_fastmath.c:461: warning: function declaration isn't a prototype
src/_fastmath.c: In function `dsaKey_size':
src/_fastmath.c:462: error: `args' undeclared (first use in this function)
src/_fastmath.c:464: error: `key' undeclared (first use in this function)
src/_fastmath.c: At top level:
src/_fastmath.c:468: error: parse error before '*' token
src/_fastmath.c:469: warning: function declaration isn't a prototype
src/_fastmath.c: In function `dsaKey_has_private':
src/_fastmath.c:470: error: `args' undeclared (first use in this function)
src/_fastmath.c:472: error: `key' undeclared (first use in this function)
src/_fastmath.c: In function `rsaKey_new':
src/_fastmath.c:486: error: `key' undeclared (first use in this function)
src/_fastmath.c:494: error: parse error before ')' token
src/_fastmath.c: At top level:
src/_fastmath.c:522: error: parse error before '*' token
src/_fastmath.c:523: warning: function declaration isn't a prototype
src/_fastmath.c: In function `rsaKey_dealloc':
src/_fastmath.c:524: error: `key' undeclared (first use in this function)
src/_fastmath.c: At top level:
src/_fastmath.c:534: error: parse error before '*' token
src/_fastmath.c:535: warning: function declaration isn't a prototype
src/_fastmath.c: In function `rsaKey_getattr':
src/_fastmath.c:536: error: `attr' undeclared (first use in this function)
src/_fastmath.c:537: error: `key' undeclared (first use in this function)
src/_fastmath.c: At top level:
src/_fastmath.c:588: error: parse error before '*' token
src/_fastmath.c:589: warning: function declaration isn't a prototype
src/_fastmath.c: In function `rsaKeyencrypt':
src/_fastmath.c:591: error: `mpz_t' undeclared (first use in this function)
src/_fastmath.c:591: error: parse error before "v"
src/_fastmath.c:593: error: `args' undeclared (first use in this function)
src/_fastmath.c:597: error: `v' undeclared (first use in this function)
src/_fastmath.c:599: error: `key' undeclared (first use in this function)
src/_fastmath.c: At top level:
src/_fastmath.c:611: error: parse error before '*' token
src/_fastmath.c:612: warning: function declaration isn't a prototype
src/_fastmath.c: In function `rsaKeydecrypt':
src/_fastmath.c:614: error: `mpz_t' undeclared (first use in this function)
src/_fastmath.c:614: error: parse error before "v"
src/_fastmath.c:616: error: `args' undeclared (first use in this function)
src/_fastmath.c:620: error: `v' undeclared (first use in this function)
src/_fastmath.c:622: error: `key' undeclared (first use in this function)
src/_fastmath.c: At top level:
src/_fastmath.c:641: error: parse error before '*' token
src/_fastmath.c:642: warning: function declaration isn't a prototype
src/_fastmath.c: In function `rsaKeyverify':
src/_fastmath.c:644: error: `mpz_t' undeclared (first use in this function)
src/_fastmath.c:644: error: parse error before "v"
src/_fastmath.c:645: error: `args' undeclared (first use in this function)
src/_fastmath.c:650: error: `v' undeclared (first use in this function)
src/_fastmath.c:651: error: `vsig' undeclared (first use in this function)
src/_fastmath.c:654: error: `key' undeclared (first use in this function)
src/_fastmath.c: At top level:
src/_fastmath.c:666: error: parse error before '*' token
src/_fastmath.c:667: warning: function declaration isn't a prototype
src/_fastmath.c: In function `rsaKeyblind':
src/_fastmath.c:669: error: `mpz_t' undeclared (first use in this function)
src/_fastmath.c:669: error: parse error before "v"
src/_fastmath.c:671: error: `args' undeclared (first use in this function)
src/_fastmath.c:676: error: `v' undeclared (first use in this function)
src/_fastmath.c:677: error: `vblind' undeclared (first use in this function)
src/_fastmath.c:680: error: `key' undeclared (first use in this function)
src/_fastmath.c: At top level:
src/_fastmath.c:698: error: parse error before '*' token
src/_fastmath.c:699: warning: function declaration isn't a prototype
src/_fastmath.c: In function `rsaKeyunblind':
src/_fastmath.c:701: error: `mpz_t' undeclared (first use in this function)
src/_fastmath.c:701: error: parse error before "v"
src/_fastmath.c:703: error: `args' undeclared (first use in this function)
src/_fastmath.c:708: error: `v' undeclared (first use in this function)
src/_fastmath.c:709: error: `vblind' undeclared (first use in this function)
src/_fastmath.c:712: error: `key' undeclared (first use in this function)
src/_fastmath.c: At top level:
src/_fastmath.c:735: error: parse error before '*' token
src/_fastmath.c:736: warning: function declaration isn't a prototype
src/_fastmath.c: In function `rsaKey_size':
src/_fastmath.c:737: error: `args' undeclared (first use in this function)
src/_fastmath.c:739: error: `key' undeclared (first use in this function)
src/_fastmath.c: At top level:
src/_fastmath.c:743: error: parse error before '*' token
src/_fastmath.c:744: warning: function declaration isn't a prototype
src/_fastmath.c: In function `rsaKey_has_private':
src/_fastmath.c:745: error: `args' undeclared (first use in this function)
src/_fastmath.c:747: error: `key' undeclared (first use in this function)
src/_fastmath.c: In function `isPrime':
src/_fastmath.c:761: error: `mpz_t' undeclared (first use in this function)
src/_fastmath.c:761: error: parse error before "n"
src/_fastmath.c:768: error: `n' undeclared (first use in this function)
src/_fastmath.c:771: warning: implicit declaration of function `mpz_probab_prime_p'
error: command 'gcc' failed with exit status 1
Error: Target com.apple.build returned: shell command "cd "/opt/local/var/db/dports/build/_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dports_python_py-crypto/work/pycrypto-2.0.1" && /opt/local/bin/python2.4 setup.py build" returned error 1
Command output: src/_fastmath.c:677: error: `vblind' undeclared (first use in this function)
src/_fastmath.c:680: error: `key' undeclared (first use in this function)
src/_fastmath.c: At top level:
src/_fastmath.c:698: error: parse error before '*' token
src/_fastmath.c:699: warning: function declaration isn't a prototype
src/_fastmath.c: In function `rsaKeyunblind':
src/_fastmath.c:701: error: `mpz_t' undeclared (first use in this function)
src/_fastmath.c:701: error: parse error before "v"
src/_fastmath.c:703: error: `args' undeclared (first use in this function)
src/_fastmath.c:708: error: `v' undeclared (first use in this function)
src/_fastmath.c:709: error: `vblind' undeclared (first use in this function)
src/_fastmath.c:712: error: `key' undeclared (first use in this function)
src/_fastmath.c: At top level:
src/_fastmath.c:735: error: parse error before '*' token
src/_fastmath.c:736: warning: function declaration isn't a prototype
src/_fastmath.c: In function `rsaKey_size':
src/_fastmath.c:737: error: `args' undeclared (first use in this function)
src/_fastmath.c:739: error: `key' undeclared (first use in this function)
src/_fastmath.c: At top level:
src/_fastmath.c:743: error: parse error before '*' token
src/_fastmath.c:744: warning: function declaration isn't a prototype
src/_fastmath.c: In function `rsaKey_has_private':
src/_fastmath.c:745: error: `args' undeclared (first use in this function)
src/_fastmath.c:747: error: `key' undeclared (first use in this function)
src/_fastmath.c: In function `isPrime':
src/_fastmath.c:761: error: `mpz_t' undeclared (first use in this function)
src/_fastmath.c:761: error: parse error before "n"
src/_fastmath.c:768: error: `n' undeclared (first use in this function)
src/_fastmath.c:771: warning: implicit declaration of function `mpz_probab_prime_p'
error: command 'gcc' failed with exit status 1
Warning: the following items did not execute (for py-crypto): com.apple.activate com.apple.build com.apple.destroot com.apple.install
Error: Status 1 encountered during processing.
This works fine for me.