=> "/opt/pkg/bin/bmake" ["-C", "/data/jenkins/workspace/pkgsrc-upstream-trunk/math/p5-Math-BigInteger", "all", "BATCH=1", "DEPENDS_TARGET=/nonexistent"] WARNING: [license.mk] Every package should define a LICENSE. ===> Building for p5-Math-BigInteger-1.0nb19 --- blib/lib/Math/.exists --- --- blib/arch/.exists --- --- blib/lib/auto/Math/BigInteger/.exists --- --- blib/arch/auto/Math/BigInteger/.exists --- --- blib/bin/.exists --- --- blib/script/.exists --- --- blib/man1/.exists --- --- blib/man3/.exists --- --- config --- --- subdirs --- --- dynamic --- --- blibdirs --- --- BigInteger.c --- --- BigInteger.bs --- --- BigInteger.c --- "/opt/pkg/bin/perl" "/opt/pkg/lib/perl5/5.42.0/ExtUtils/xsubpp" -typemap '/opt/pkg/lib/perl5/5.42.0/ExtUtils/typemap' -typemap '/tmp/work/math/p5-Math-BigInteger/work/Math-BigInteger-1.0/typemap' BigInteger.xs > BigInteger.xsc --- BigInteger.bs --- Running Mkbootstrap for BigInteger () chmod 644 "BigInteger.bs" --- bn.o --- gcc -c -D_REENTRANT -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -pthread -I/usr/include -fwrapv -fno-strict-aliasing -I/usr/local/include -m64 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -I/usr/include -I/opt/pkg/include -I/usr/include -DVERSION=\"1.0\" -DXS_VERSION=\"1.0\" -fPIC "-I/opt/pkg/lib/perl5/5.42.0/x86_64-solaris-thread-multi-64/CORE" bn.c bn.c: In function 'bn_num_bits': bn.c:63:5: warning: old-style function definition [-Wold-style-definition] 63 | int bn_num_bits(a) | ^~~~~~~~~~~ bn.c:65:9: error: number of arguments doesn't match prototype 65 | { | ^ In file included from bn.c:49: bn.h:178:9: error: prototype declaration 178 | int bn_num_bits(); | ^~~~~~~~~~~ bn.c:92:17: error: implicit declaration of function 'abort' [-Wimplicit-function-declaration] 92 | abort(); | ^~~~~ bn.c:50:1: note: include '' or provide a declaration of 'abort' 49 | #include "bn.h" +++ |+#include 50 | bn.c:92:17: warning: incompatible implicit declaration of built-in function 'abort' [-Wbuiltin-declaration-mismatch] 92 | abort(); | ^~~~~ bn.c:92:17: note: include '' or provide a declaration of 'abort' bn.c: In function 'bn_free': bn.c:135:6: warning: old-style function definition [-Wold-style-definition] 135 | void bn_free(a) | ^~~~~~~ bn.c:137:9: error: number of arguments doesn't match prototype 137 | { | ^ bn.h:197:9: error: prototype declaration 197 | void bn_free(); | ^~~~~~~ bn.c:139:27: error: implicit declaration of function 'free' [-Wimplicit-function-declaration] 139 | if (a->d != NULL) free(a->d); | ^~~~ bn.c:139:27: note: include '' or provide a declaration of 'free' bn.c:139:27: warning: incompatible implicit declaration of built-in function 'free' [-Wbuiltin-declaration-mismatch] bn.c:139:27: note: include '' or provide a declaration of 'free' bn.c:140:9: warning: incompatible implicit declaration of built-in function 'free' [-Wbuiltin-declaration-mismatch] 140 | free(a); | ^~~~ bn.c:140:9: note: include '' or provide a declaration of 'free' bn.c: In function 'bn_new': bn.c:162:23: error: implicit declaration of function 'malloc' [-Wimplicit-function-declaration] 162 | ret=(BIGNUM *)malloc(sizeof(BIGNUM)); | ^~~~~~ bn.c:162:23: note: include '' or provide a declaration of 'malloc' bn.c:162:23: warning: incompatible implicit declaration of built-in function 'malloc' [-Wbuiltin-declaration-mismatch] bn.c:162:23: note: include '' or provide a declaration of 'malloc' bn.c:173:9: error: implicit declaration of function 'memset' [-Wimplicit-function-declaration] 173 | memset(p,0,(ret->max+1)*sizeof(p[0])); | ^~~~~~ bn.c:50:1: note: include '' or provide a declaration of 'memset' 49 | #include "bn.h" +++ |+#include 50 | bn.c:173:9: warning: incompatible implicit declaration of built-in function 'memset' [-Wbuiltin-declaration-mismatch] 173 | memset(p,0,(ret->max+1)*sizeof(p[0])); | ^~~~~~ bn.c:173:9: note: include '' or provide a declaration of 'memset' bn.c: In function 'bn_expand': bn.c:177:9: warning: old-style function definition [-Wold-style-definition] 177 | BIGNUM *bn_expand(b, bits) | ^~~~~~~~~ bn.c:180:9: error: number of arguments doesn't match prototype 180 | { | ^ bn.h:210:9: error: prototype declaration 210 | BIGNUM *bn_expand(); | ^~~~~~~~~ bn.c:189:36: error: implicit declaration of function 'realloc' [-Wimplicit-function-declaration] 189 | p=b->d=(BN_ULONG *)realloc(b->d,sizeof(BN_ULONG)*n+1); | ^~~~~~~ bn.c:189:36: note: include '' or provide a declaration of 'realloc' bn.c:189:36: warning: incompatible implicit declaration of built-in function 'realloc' [-Wbuiltin-declaration-mismatch] bn.c:189:36: note: include '' or provide a declaration of 'realloc' bn.c:192:17: warning: incompatible implicit declaration of built-in function 'memset' [-Wbuiltin-declaration-mismatch] 192 | memset(&(p[b->max]),0,((n+1)-b->max)*sizeof(p[0])); | ^~~~~~ bn.c:192:17: note: include '' or provide a declaration of 'memset' bn.c: In function 'bn_dup': bn.c:200:9: warning: old-style function definition [-Wold-style-definition] 200 | BIGNUM *bn_dup(a) | ^~~~~~ bn.c:202:9: error: number of arguments doesn't match prototype 202 | { | ^ bn.h:211:9: error: prototype declaration 211 | BIGNUM *bn_dup(); | ^~~~~~ bn.c:207:26: error: too many arguments to function 'bn_copy'; expected 0, have 2 207 | return((BIGNUM *)bn_copy(r,a)); | ^~~~~~~ ~ bn.h:180:9: note: declared here 180 | BIGNUM *bn_copy(); | ^~~~~~~ bn.c: In function 'bn_copy': bn.c:210:9: warning: old-style function definition [-Wold-style-definition] 210 | BIGNUM *bn_copy(a, b) | ^~~~~~~ bn.c:213:9: error: number of arguments doesn't match prototype 213 | { | ^ bn.h:180:9: error: prototype declaration 180 | BIGNUM *bn_copy(); | ^~~~~~~ bn.c:216:13: error: too many arguments to function 'bn_expand'; expected 0, have 2 216 | if (bn_expand(a,b->top*BITS2) == NULL) return(NULL); | ^~~~~~~~~ ~ bn.c:177:9: note: declared here 177 | BIGNUM *bn_expand(b, bits) | ^~~~~~~~~ bn.c:217:9: error: implicit declaration of function 'memcpy' [-Wimplicit-function-declaration] 217 | memcpy(a->d,b->d,sizeof(b->d[0])*b->top); | ^~~~~~ bn.c:217:9: note: include '' or provide a declaration of 'memcpy' bn.c:217:9: warning: incompatible implicit declaration of built-in function 'memcpy' [-Wbuiltin-declaration-mismatch] bn.c:217:9: note: include '' or provide a declaration of 'memcpy' bn.c:218:9: warning: incompatible implicit declaration of built-in function 'memset' [-Wbuiltin-declaration-mismatch] 218 | memset(&(a->d[b->top]),0,sizeof(a->d[0])*(a->max-b->top)); | ^~~~~~ bn.c:218:9: note: include '' or provide a declaration of 'memset' bn.c: In function 'bn_zero': bn.c:228:6: warning: old-style function definition [-Wold-style-definition] 228 | void bn_zero(a) | ^~~~~~~ bn.c:230:9: error: number of arguments doesn't match prototype 230 | { | ^ bn.h:209:9: error: prototype declaration 209 | void bn_zero(); | ^~~~~~~ bn.c:231:9: warning: incompatible implicit declaration of built-in function 'memset' [-Wbuiltin-declaration-mismatch] 231 | memset(a->d,0,a->max*sizeof(a->d[0])); | ^~~~~~ bn.c:231:9: note: include '' or provide a declaration of 'memset' bn.c: In function 'bn_one': bn.c:236:5: warning: old-style function definition [-Wold-style-definition] 236 | int bn_one(a) | ^~~~~~ bn.c:238:9: error: number of arguments doesn't match prototype 238 | { | ^ bn.h:204:9: error: prototype declaration 204 | int bn_one(); | ^~~~~~ bn.c:239:13: error: too many arguments to function 'bn_expand'; expected 0, have 2 239 | if (bn_expand(a,1) == NULL) return(0); | ^~~~~~~~~ ~ bn.c:177:9: note: declared here 177 | BIGNUM *bn_expand(b, bits) | ^~~~~~~~~ bn.c:240:9: warning: incompatible implicit declaration of built-in function 'memset' [-Wbuiltin-declaration-mismatch] 240 | memset(a->d,0,a->max); | ^~~~~~ bn.c:240:9: note: include '' or provide a declaration of 'memset' bn.c: In function 'bn_set_word': bn.c:247:5: warning: old-style function definition [-Wold-style-definition] 247 | int bn_set_word(a,w) | ^~~~~~~~~~~ bn.c:250:9: error: number of arguments doesn't match prototype 250 | { | ^ bn.h:194:9: error: prototype declaration 194 | int bn_set_word(); | ^~~~~~~~~~~ bn.c:251:13: error: too many arguments to function 'bn_expand'; expected 0, have 2 251 | if (bn_expand(a,sizeof(unsigned long)*8) == NULL) return(0); | ^~~~~~~~~ ~ bn.c:177:9: note: declared here 177 | BIGNUM *bn_expand(b, bits) | ^~~~~~~~~ bn.c:252:9: warning: incompatible implicit declaration of built-in function 'memset' [-Wbuiltin-declaration-mismatch] 252 | memset(a->d,0,a->max); | ^~~~~~ bn.c:252:9: note: include '' or provide a declaration of 'memset' bn.c: In function 'bn_bin2bn': bn.c:261:9: warning: old-style function definition [-Wold-style-definition] 261 | BIGNUM *bn_bin2bn(len, s, ret) | ^~~~~~~~~ bn.c:265:9: error: number of arguments doesn't match prototype 265 | { | ^ bn.h:181:9: error: prototype declaration 181 | BIGNUM *bn_bin2bn(); | ^~~~~~~~~ bn.c:279:13: error: too many arguments to function 'bn_expand'; expected 0, have 2 279 | if (bn_expand(ret,(int)n*8) == NULL) | ^~~~~~~~~ ~~~ bn.c:177:9: note: declared here 177 | BIGNUM *bn_expand(b, bits) | ^~~~~~~~~ bn.c: In function 'bn_print': bn.c:300:6: warning: old-style function definition [-Wold-style-definition] 300 | void bn_print(fp, a) | ^~~~~~~~ bn.c:303:9: error: number of arguments doesn't match prototype 303 | { | ^ bn.h:205:9: error: prototype declaration 205 | void bn_print(); | ^~~~~~~~ bn.c: In function 'bn_bn2bin': bn.c:325:5: warning: old-style function definition [-Wold-style-definition] 325 | int bn_bn2bin(a, to) | ^~~~~~~~~ bn.c:328:9: error: number of arguments doesn't match prototype 328 | { | ^ bn.h:182:9: error: prototype declaration 182 | int bn_bn2bin(); | ^~~~~~~~~ bn.h:121:27: error: too many arguments to function 'bn_num_bits'; expected 0, have 1 121 | #define bn_num_bytes(a) ((bn_num_bits(a)+7)/8) | ^~~~~~~~~~~ bn.c:332:13: note: in expansion of macro 'bn_num_bytes' 332 | n=i=bn_num_bytes(a); | ^~~~~~~~~~~~ bn.c:63:5: note: declared here 63 | int bn_num_bits(a) | ^~~~~~~~~~~ bn.c: In function 'bn_add': bn.c:342:5: warning: old-style function definition [-Wold-style-definition] 342 | int bn_add(r, a, b) | ^~~~~~ bn.c:346:9: error: number of arguments doesn't match prototype 346 | { | ^ bn.h:184:9: error: prototype declaration 184 | int bn_add(); | ^~~~~~ bn.c:360:39: error: too many arguments to function 'bn_sub'; expected 0, have 3 360 | { a->neg=0; i=bn_sub(r,b,a); if (a != r) a->neg=1; } | ^~~~~~ ~ bn.h:183:9: note: declared here 183 | int bn_sub(); | ^~~~~~ bn.c:362:39: error: too many arguments to function 'bn_sub'; expected 0, have 3 362 | { b->neg=0; i=bn_sub(r,a,b); if (b != r) b->neg=1; } | ^~~~~~ ~ bn.h:183:9: note: declared here 183 | int bn_sub(); | ^~~~~~ bn.c:367:39: error: too many arguments to function 'bn_add'; expected 0, have 3 367 | a->neg=0; b->neg=0; i=bn_add(r,a,b); | ^~~~~~ ~ bn.c:342:5: note: declared here 342 | int bn_add(r, a, b) | ^~~~~~ bn.c:377:13: error: too many arguments to function 'bn_expand'; expected 0, have 2 377 | if (bn_expand(r,(max+1)*BITS2) == NULL) return(0); | ^~~~~~~~~ ~ bn.c:177:9: note: declared here 177 | BIGNUM *bn_expand(b, bits) | ^~~~~~~~~ bn.c:420:9: warning: incompatible implicit declaration of built-in function 'memcpy' [-Wbuiltin-declaration-mismatch] 420 | memcpy(rp,ap,sizeof(*ap)*(max-i)); | ^~~~~~ bn.c:420:9: note: include '' or provide a declaration of 'memcpy' bn.c: In function 'bn_Ucmp': bn.c:424:5: warning: old-style function definition [-Wold-style-definition] 424 | int bn_Ucmp(a, b) | ^~~~~~~ bn.c:427:9: error: number of arguments doesn't match prototype 427 | { | ^ bn.h:212:9: error: prototype declaration 212 | int bn_Ucmp(); | ^~~~~~~ bn.c: In function 'bn_cmp': bn.c:445:5: warning: old-style function definition [-Wold-style-definition] 445 | int bn_cmp(a, b) | ^~~~~~ bn.c:448:9: error: number of arguments doesn't match prototype 448 | { | ^ bn.h:196:9: error: prototype declaration 196 | int bn_cmp(); | ^~~~~~ bn.c: In function 'bn_SUB': bn.c:475:13: warning: old-style function definition [-Wold-style-definition] 475 | static void bn_SUB(r, a, b) | ^~~~~~ bn.c:524:9: warning: incompatible implicit declaration of built-in function 'memcpy' [-Wbuiltin-declaration-mismatch] 524 | memcpy(rp,ap,sizeof(*rp)*(max-i)); | ^~~~~~ bn.c:524:9: note: include '' or provide a declaration of 'memcpy' bn.c: In function 'bn_sub': bn.c:532:5: warning: old-style function definition [-Wold-style-definition] 532 | int bn_sub(r, a, b) | ^~~~~~ bn.c:536:9: error: number of arguments doesn't match prototype 536 | { | ^ bn.h:183:9: error: prototype declaration 183 | int bn_sub(); | ^~~~~~ bn.c:549:27: error: too many arguments to function 'bn_sub'; expected 0, have 3 549 | i=bn_sub(r,b,a); | ^~~~~~ ~ bn.c:532:5: note: declared here 532 | int bn_sub(r, a, b) | ^~~~~~ bn.c:556:27: error: too many arguments to function 'bn_add'; expected 0, have 3 556 | i=bn_add(r,a,b); | ^~~~~~ ~ bn.c:342:5: note: declared here 342 | int bn_add(r, a, b) | ^~~~~~ bn.c:566:27: error: too many arguments to function 'bn_add'; expected 0, have 3 566 | i=bn_add(r,a,b); | ^~~~~~ ~ bn.c:342:5: note: declared here 342 | int bn_add(r, a, b) | ^~~~~~ bn.c:573:13: error: too many arguments to function 'bn_cmp'; expected 0, have 2 573 | if (bn_cmp(a,b) < 0) | ^~~~~~ ~ bn.c:445:5: note: declared here 445 | int bn_cmp(a, b) | ^~~~~~ bn.c:575:21: error: too many arguments to function 'bn_expand'; expected 0, have 2 575 | if (bn_expand(r,max*BITS2) == NULL) return(0); | ^~~~~~~~~ ~ bn.c:177:9: note: declared here 177 | BIGNUM *bn_expand(b, bits) | ^~~~~~~~~ bn.c:576:17: error: too many arguments to function 'bn_SUB'; expected 0, have 3 576 | bn_SUB(r,b,a); | ^~~~~~ ~ bn.c:475:13: note: declared here 475 | static void bn_SUB(r, a, b) | ^~~~~~ bn.c:581:21: error: too many arguments to function 'bn_expand'; expected 0, have 2 581 | if (bn_expand(r,max*BITS2) == NULL) return(0); | ^~~~~~~~~ ~ bn.c:177:9: note: declared here 177 | BIGNUM *bn_expand(b, bits) | ^~~~~~~~~ bn.c:582:17: error: too many arguments to function 'bn_SUB'; expected 0, have 3 582 | bn_SUB(r,a,b); | ^~~~~~ ~ bn.c:475:13: note: declared here 475 | static void bn_SUB(r, a, b) | ^~~~~~ bn.c: In function 'bn_lshift1': bn.c:588:5: warning: old-style function definition [-Wold-style-definition] 588 | int bn_lshift1(r, a) | ^~~~~~~~~~ bn.c:591:9: error: number of arguments doesn't match prototype 591 | { | ^ bn.h:200:9: error: prototype declaration 200 | int bn_lshift1(); | ^~~~~~~~~~ bn.c:598:21: error: too many arguments to function 'bn_expand'; expected 0, have 2 598 | if (bn_expand(r,(a->top+1)*BITS2) == NULL) return(0); | ^~~~~~~~~ ~ bn.c:177:9: note: declared here 177 | BIGNUM *bn_expand(b, bits) | ^~~~~~~~~ bn.c:603:21: error: too many arguments to function 'bn_expand'; expected 0, have 2 603 | if (bn_expand(r,(a->top+1)*BITS2) == NULL) return(0); | ^~~~~~~~~ ~ bn.c:177:9: note: declared here 177 | BIGNUM *bn_expand(b, bits) | ^~~~~~~~~ bn.c: In function 'bn_rshift1': bn.c:622:5: warning: old-style function definition [-Wold-style-definition] 622 | int bn_rshift1(r, a) | ^~~~~~~~~~ bn.c:625:9: error: number of arguments doesn't match prototype 625 | { | ^ bn.h:208:9: error: prototype declaration 208 | int bn_rshift1(); | ^~~~~~~~~~ bn.c:631:17: error: too many arguments to function 'bn_zero'; expected 0, have 1 631 | bn_zero(r); | ^~~~~~~ ~ bn.c:228:6: note: declared here 228 | void bn_zero(a) | ^~~~~~~ bn.c:636:21: error: too many arguments to function 'bn_expand'; expected 0, have 2 636 | if (bn_expand(r,a->top*BITS2) == NULL) return(0); | ^~~~~~~~~ ~ bn.c:177:9: note: declared here 177 | BIGNUM *bn_expand(b, bits) | ^~~~~~~~~ bn.c: In function 'bn_lshift': bn.c:653:5: warning: old-style function definition [-Wold-style-definition] 653 | int bn_lshift(r, a, n) | ^~~~~~~~~ bn.c:657:9: error: number of arguments doesn't match prototype 657 | { | ^ bn.h:199:9: error: prototype declaration 199 | int bn_lshift(); | ^~~~~~~~~ bn.c:663:13: error: too many arguments to function 'bn_expand'; expected 0, have 2 663 | if (bn_expand(r,(a->top*BITS2)+n) == NULL) return(0); | ^~~~~~~~~ ~ bn.c:177:9: note: declared here 177 | BIGNUM *bn_expand(b, bits) | ^~~~~~~~~ bn.c:680:9: warning: incompatible implicit declaration of built-in function 'memset' [-Wbuiltin-declaration-mismatch] 680 | memset(t,0,nw*sizeof(t[0])); | ^~~~~~ bn.c:680:9: note: include '' or provide a declaration of 'memset' bn.c: In function 'bn_rshift': bn.c:688:5: warning: old-style function definition [-Wold-style-definition] 688 | int bn_rshift(r, a, n) | ^~~~~~~~~ bn.c:692:9: error: number of arguments doesn't match prototype 692 | { | ^ bn.h:207:9: error: prototype declaration 207 | int bn_rshift(); | ^~~~~~~~~ bn.c:703:17: error: too many arguments to function 'bn_zero'; expected 0, have 1 703 | bn_zero(r); | ^~~~~~~ ~ bn.c:228:6: note: declared here 228 | void bn_zero(a) | ^~~~~~~ bn.c:706:13: error: too many arguments to function 'bn_expand'; expected 0, have 2 706 | if (bn_expand(r,(a->top-nw+1)*BITS2) == NULL) return(0); | ^~~~~~~~~ ~ bn.c:177:9: note: declared here 177 | BIGNUM *bn_expand(b, bits) | ^~~~~~~~~ bn.c: In function 'bn_clear_bit': bn.c:728:5: warning: old-style function definition [-Wold-style-definition] 728 | int bn_clear_bit(a, n) | ^~~~~~~~~~~~ bn.c:731:9: error: number of arguments doesn't match prototype 731 | { | ^ bn.h:213:9: error: prototype declaration 213 | int bn_clear_bit(); | ^~~~~~~~~~~~ bn.c: In function 'bn_is_bit_set': bn.c:741:5: warning: old-style function definition [-Wold-style-definition] 741 | int bn_is_bit_set(a, n) | ^~~~~~~~~~~~~ bn.c:744:9: error: number of arguments doesn't match prototype 744 | { | ^ bn.h:198:9: error: prototype declaration 198 | int bn_is_bit_set(); | ^~~~~~~~~~~~~ bn.c: In function 'bn_mod': bn.c:754:5: warning: old-style function definition [-Wold-style-definition] 754 | int bn_mod(rem, m, d) | ^~~~~~ bn.c:758:9: error: number of arguments doesn't match prototype 758 | { | ^ bn.h:185:9: error: prototype declaration 185 | int bn_mod(); | ^~~~~~ bn.c:762:13: error: too many arguments to function 'bn_Ucmp'; expected 0, have 2 762 | if (bn_Ucmp(m,d) < 0) | ^~~~~~~ ~ bn.c:424:5: note: declared here 424 | int bn_Ucmp(a, b) | ^~~~~~~ bn.c:763:25: error: too many arguments to function 'bn_copy'; expected 0, have 2 763 | return((bn_copy(rem,m) == NULL)?0:1); | ^~~~~~~ ~~~ bn.c:210:9: note: declared here 210 | BIGNUM *bn_copy(a, b) | ^~~~~~~ bn.c:768:14: error: too many arguments to function 'bn_copy'; expected 0, have 2 768 | if (!bn_copy(rem,m)) return(0); | ^~~~~~~ ~~~ bn.c:210:9: note: declared here 210 | BIGNUM *bn_copy(a, b) | ^~~~~~~ bn.c:770:12: error: too many arguments to function 'bn_num_bits'; expected 0, have 1 770 | nm=bn_num_bits(rem); | ^~~~~~~~~~~ ~~~ bn.c:63:5: note: declared here 63 | int bn_num_bits(a) | ^~~~~~~~~~~ bn.c:771:12: error: too many arguments to function 'bn_num_bits'; expected 0, have 1 771 | nd=bn_num_bits(d); | ^~~~~~~~~~~ ~ bn.c:63:5: note: declared here 63 | int bn_num_bits(a) | ^~~~~~~~~~~ bn.c:772:14: error: too many arguments to function 'bn_lshift'; expected 0, have 3 772 | if (!bn_lshift(dv,d,nm-nd)) return(0); | ^~~~~~~~~ ~~ bn.c:653:5: note: declared here 653 | int bn_lshift(r, a, n) | ^~~~~~~~~ bn.c:775:21: error: too many arguments to function 'bn_cmp'; expected 0, have 2 775 | if (bn_cmp(rem,dv) >= 0) | ^~~~~~ ~~~ bn.c:445:5: note: declared here 445 | int bn_cmp(a, b) | ^~~~~~ bn.c:777:30: error: too many arguments to function 'bn_sub'; expected 0, have 3 777 | if (!bn_sub(rem,rem,dv)) return(0); | ^~~~~~ ~~~ bn.c:532:5: note: declared here 532 | int bn_sub(r, a, b) | ^~~~~~ bn.c:779:22: error: too many arguments to function 'bn_rshift1'; expected 0, have 2 779 | if (!bn_rshift1(dv,dv)) return(0); | ^~~~~~~~~~ ~~ bn.c:622:5: note: declared here 622 | int bn_rshift1(r, a) | ^~~~~~~~~~ bn.c:781:9: error: too many arguments to function 'bn_set_tos'; expected 0, have 1 781 | bn_set_tos(tos); | ^~~~~~~~~~ ~~~ bn.h:190:9: note: declared here 190 | void bn_set_tos(); | ^~~~~~~~~~ bn.c: In function 'bn_mod2_init': bn.c:792:5: warning: old-style function definition [-Wold-style-definition] 792 | int bn_mod2_init(d, max_bits) | ^~~~~~~~~~~~ bn.c:795:9: error: number of arguments doesn't match prototype 795 | { | ^ bn.h:192:9: error: prototype declaration 192 | int bn_mod2_init(); | ^~~~~~~~~~~~ bn.c:811:13: error: too many arguments to function 'bn_copy'; expected 0, have 2 811 | if (bn_copy(mod_value,d) == NULL) return(0); | ^~~~~~~ ~~~~~~~~~ bn.c:210:9: note: declared here 210 | BIGNUM *bn_copy(a, b) | ^~~~~~~ bn.c:812:18: error: too many arguments to function 'bn_num_bits'; expected 0, have 1 812 | mod_bits=bn_num_bits(d); | ^~~~~~~~~~~ ~ bn.c:63:5: note: declared here 63 | int bn_num_bits(a) | ^~~~~~~~~~~ bn.c:815:14: error: too many arguments to function 'bn_lshift'; expected 0, have 3 815 | if (!bn_lshift(mod_shifts[0],d,mod_shift)) return(0); | ^~~~~~~~~ ~~~~~~~~~~~~~ bn.c:653:5: note: declared here 653 | int bn_lshift(r, a, n) | ^~~~~~~~~ bn.c:817:22: error: too many arguments to function 'bn_rshift1'; expected 0, have 2 817 | if (!bn_rshift1(mod_shifts[i],mod_shifts[i-1])) return(0); | ^~~~~~~~~~ ~~~~~~~~~~~~~ bn.c:622:5: note: declared here 622 | int bn_rshift1(r, a) | ^~~~~~~~~~ bn.c: In function 'bn_mod2': bn.c:827:5: warning: old-style function definition [-Wold-style-definition] 827 | int bn_mod2(ret, m, d) | ^~~~~~~ bn.c:835:13: error: too many arguments to function 'bn_copy'; expected 0, have 2 835 | if (bn_copy(ret,m) == NULL) return(0); | ^~~~~~~ ~~~ bn.c:210:9: note: declared here 210 | BIGNUM *bn_copy(a, b) | ^~~~~~~ bn.c:836:13: error: too many arguments to function 'bn_cmp'; expected 0, have 2 836 | if (bn_cmp(m,mod_value) < 0) | ^~~~~~ ~ bn.c:445:5: note: declared here 445 | int bn_cmp(a, b) | ^~~~~~ bn.c:838:12: error: too many arguments to function 'bn_num_bits'; expected 0, have 1 838 | nm=bn_num_bits(m); | ^~~~~~~~~~~ ~ bn.c:63:5: note: declared here 63 | int bn_num_bits(a) | ^~~~~~~~~~~ bn.c:857:21: error: too many arguments to function 'bn_cmp'; expected 0, have 2 857 | if (bn_cmp(ret,mod_shifts[x]) >= 0) | ^~~~~~ ~~~ bn.c:445:5: note: declared here 445 | int bn_cmp(a, b) | ^~~~~~ bn.c:859:30: error: too many arguments to function 'bn_sub'; expected 0, have 3 859 | if (!bn_sub(ret,ret,mod_shifts[x])) return(0); | ^~~~~~ ~~~ bn.c:532:5: note: declared here 532 | int bn_sub(r, a, b) | ^~~~~~ bn.c: In function 'bn_div': bn.c:877:5: warning: old-style function definition [-Wold-style-definition] 877 | int bn_div(dv, rem, m, d) | ^~~~~~ bn.c:882:9: error: number of arguments doesn't match prototype 882 | { | ^ bn.h:186:9: error: prototype declaration 186 | int bn_div(); | ^~~~~~ bn.c:889:24: error: returning 'void *' from a function with return type 'int' makes integer from pointer without a cast [-Wint-conversion] 889 | return NULL; | ^~~~ bn.c:891:13: error: too many arguments to function 'bn_cmp'; expected 0, have 2 891 | if (bn_cmp(m,d) < 0) | ^~~~~~ ~ bn.c:445:5: note: declared here 445 | int bn_cmp(a, b) | ^~~~~~ bn.c:894:31: error: too many arguments to function 'bn_copy'; expected 0, have 2 894 | { if (bn_copy(rem,m) == NULL) return(0); } | ^~~~~~~ ~~~ bn.c:210:9: note: declared here 210 | BIGNUM *bn_copy(a, b) | ^~~~~~~ bn.c:895:33: error: too many arguments to function 'bn_zero'; expected 0, have 1 895 | if (dv != NULL) bn_zero(dv); | ^~~~~~~ ~~ bn.c:228:6: note: declared here 228 | void bn_zero(a) | ^~~~~~~ bn.c:906:12: error: too many arguments to function 'bn_num_bits'; expected 0, have 1 906 | nd=bn_num_bits(d); | ^~~~~~~~~~~ ~ bn.c:63:5: note: declared here 63 | int bn_num_bits(a) | ^~~~~~~~~~~ bn.c:907:12: error: too many arguments to function 'bn_num_bits'; expected 0, have 1 907 | nm=bn_num_bits(m); | ^~~~~~~~~~~ ~ bn.c:63:5: note: declared here 63 | int bn_num_bits(a) | ^~~~~~~~~~~ bn.c:908:13: error: too many arguments to function 'bn_copy'; expected 0, have 2 908 | if (bn_copy(D,d) == NULL) return(0); | ^~~~~~~ ~ bn.c:210:9: note: declared here 210 | BIGNUM *bn_copy(a, b) | ^~~~~~~ bn.c:909:13: error: too many arguments to function 'bn_copy'; expected 0, have 2 909 | if (bn_copy(rem,m) == NULL) return(0); | ^~~~~~~ ~~~ bn.c:210:9: note: declared here 210 | BIGNUM *bn_copy(a, b) | ^~~~~~~ bn.c:913:9: error: too many arguments to function 'bn_zero'; expected 0, have 1 913 | bn_zero(dv); | ^~~~~~~ ~~ bn.c:228:6: note: declared here 228 | void bn_zero(a) | ^~~~~~~ bn.c:916:14: error: too many arguments to function 'bn_lshift'; expected 0, have 3 916 | if (!bn_lshift(D,D,nm-nd)) return(0); | ^~~~~~~~~ ~ bn.c:653:5: note: declared here 653 | int bn_lshift(r, a, n) | ^~~~~~~~~ bn.c:919:22: error: too many arguments to function 'bn_lshift1'; expected 0, have 2 919 | if (!bn_lshift1(dv,dv)) return(0); | ^~~~~~~~~~ ~~ bn.c:588:5: note: declared here 588 | int bn_lshift1(r, a) | ^~~~~~~~~~ bn.c:920:21: error: too many arguments to function 'bn_cmp'; expected 0, have 2 920 | if (bn_cmp(rem,D) >= 0) | ^~~~~~ ~~~ bn.c:445:5: note: declared here 445 | int bn_cmp(a, b) | ^~~~~~ bn.c:923:30: error: too many arguments to function 'bn_sub'; expected 0, have 3 923 | if (!bn_sub(rem,rem,D)) return(0); | ^~~~~~ ~~~ bn.c:532:5: note: declared here 532 | int bn_sub(r, a, b) | ^~~~~~ bn.c:926:22: error: too many arguments to function 'bn_rshift1'; expected 0, have 2 926 | if (!bn_rshift1(D,D)) return(0); | ^~~~~~~~~~ ~ bn.c:622:5: note: declared here 622 | int bn_rshift1(r, a) | ^~~~~~~~~~ bn.c:929:9: error: too many arguments to function 'bn_set_tos'; expected 0, have 1 929 | bn_set_tos(tos); | ^~~~~~~~~~ ~~~ bn.h:190:9: note: declared here 190 | void bn_set_tos(); | ^~~~~~~~~~ bn.c: In function 'bn_mod_word': bn.c:933:10: warning: old-style function definition [-Wold-style-definition] 933 | BN_ULONG bn_mod_word(a, w) | ^~~~~~~~~~~ bn.c:936:9: error: number of arguments doesn't match prototype 936 | { | ^ bn.h:191:10: error: prototype declaration 191 | BN_ULONG bn_mod_word(); | ^~~~~~~~~~~ bn.c: In function 'bn_add_word': bn.c:953:5: warning: old-style function definition [-Wold-style-definition] 953 | int bn_add_word(a, w) | ^~~~~~~~~~~ bn.c:956:9: error: number of arguments doesn't match prototype 956 | { | ^ bn.h:193:9: error: prototype declaration 193 | int bn_add_word(); | ^~~~~~~~~~~ bn.c:960:13: error: too many arguments to function 'bn_expand'; expected 0, have 2 960 | if (bn_expand(a,a->top*BITS2+1) == NULL) return(0); | ^~~~~~~~~ ~ bn.c:177:9: note: declared here 177 | BIGNUM *bn_expand(b, bits) | ^~~~~~~~~ bn.c: In function 'bn_mul_mod': bn.c:978:5: warning: old-style function definition [-Wold-style-definition] 978 | int bn_mul_mod(ret, a, b, m) | ^~~~~~~~~~ bn.c:983:9: error: number of arguments doesn't match prototype 983 | { | ^ bn.h:203:9: error: prototype declaration 203 | int bn_mul_mod(); | ^~~~~~~~~~ bn.c:990:14: error: too many arguments to function 'bn_mul'; expected 0, have 3 990 | if (!bn_mul(t,a,b)) { r=0; goto err; } | ^~~~~~ ~ bn.h:187:9: note: declared here 187 | int bn_mul(); | ^~~~~~ bn.c:991:14: error: too many arguments to function 'bn_mod'; expected 0, have 3 991 | if (!bn_mod(ret,t,m)) { r=0; goto err; } | ^~~~~~ ~~~ bn.c:754:5: note: declared here 754 | int bn_mod(rem, m, d) | ^~~~~~ bn.c:993:9: error: too many arguments to function 'bn_set_tos'; expected 0, have 1 993 | bn_set_tos(tos); | ^~~~~~~~~~ ~~~ bn.h:190:9: note: declared here 190 | void bn_set_tos(); | ^~~~~~~~~~ bn.c: In function 'bn_mod_exp': bn.c:1035:5: warning: old-style function definition [-Wold-style-definition] 1035 | int bn_mod_exp(r, a, p, m) | ^~~~~~~~~~ bn.c:1040:9: error: number of arguments doesn't match prototype 1040 | { | ^ bn.h:201:9: error: prototype declaration 201 | int bn_mod_exp(); | ^~~~~~~~~~ bn.c:1050:14: error: too many arguments to function 'bn_mod'; expected 0, have 3 1050 | if (!bn_mod(v,a,m)) goto err; | ^~~~~~ ~ bn.c:754:5: note: declared here 754 | int bn_mod(rem, m, d) | ^~~~~~ bn.c:1051:14: error: too many arguments to function 'bn_num_bits'; expected 0, have 1 1051 | bits=bn_num_bits(p); | ^~~~~~~~~~~ ~ bn.c:63:5: note: declared here 63 | int bn_num_bits(a) | ^~~~~~~~~~~ bn.c:1054:24: error: too many arguments to function 'bn_mod'; expected 0, have 3 1054 | { if (!bn_mod(r,a,m)) goto err; } | ^~~~~~ ~ bn.c:754:5: note: declared here 754 | int bn_mod(rem, m, d) | ^~~~~~ bn.c:1055:24: error: too many arguments to function 'bn_one'; expected 0, have 1 1055 | else { if (!bn_one(r)) goto err; } | ^~~~~~ ~ bn.c:236:5: note: declared here 236 | int bn_one(a) | ^~~~~~ bn.c:1057:12: error: too many arguments to function 'bn_reciprical'; expected 0, have 2 1057 | nb=bn_reciprical(d,m); | ^~~~~~~~~~~~~ ~ bn.h:206:9: note: declared here 206 | int bn_reciprical(); | ^~~~~~~~~~~~~ bn.c:1061:22: error: too many arguments to function 'bn_modmul_recip'; expected 0, have 6 1061 | if (!bn_modmul_recip(v,v,v,m,d,nb)) goto err; | ^~~~~~~~~~~~~~~ ~ bn.h:202:9: note: declared here 202 | int bn_modmul_recip(); | ^~~~~~~~~~~~~~~ bn.c:1062:21: error: too many arguments to function 'bn_is_bit_set'; expected 0, have 2 1062 | if (bn_is_bit_set(p,i)) | ^~~~~~~~~~~~~ ~ bn.c:741:5: note: declared here 741 | int bn_is_bit_set(a, n) | ^~~~~~~~~~~~~ bn.c:1063:32: error: too many arguments to function 'bn_modmul_recip'; expected 0, have 6 1063 | { if (!bn_modmul_recip(r,r,v,m,d,nb)) goto err; } | ^~~~~~~~~~~~~~~ ~ bn.h:202:9: note: declared here 202 | int bn_modmul_recip(); | ^~~~~~~~~~~~~~~ bn.c:1065:9: error: too many arguments to function 'bn_set_tos'; expected 0, have 1 1065 | bn_set_tos(tos); | ^~~~~~~~~~ ~~~ bn.h:190:9: note: declared here 190 | void bn_set_tos(); | ^~~~~~~~~~ bn.c:1068:9: error: too many arguments to function 'bn_set_tos'; expected 0, have 1 1068 | bn_set_tos(tos); | ^~~~~~~~~~ ~~~ bn.h:190:9: note: declared here 190 | void bn_set_tos(); | ^~~~~~~~~~ bn.c: In function 'bn_modmul_recip': bn.c:1073:5: warning: old-style function definition [-Wold-style-definition] 1073 | int bn_modmul_recip(r, x, y, m, i, nb) | ^~~~~~~~~~~~~~~ bn.c:1080:9: error: number of arguments doesn't match prototype 1080 | { | ^ bn.h:202:9: error: prototype declaration 202 | int bn_modmul_recip(); | ^~~~~~~~~~~~~~~ bn.c:1092:14: error: too many arguments to function 'bn_mul'; expected 0, have 3 1092 | if (!bn_mul(a,x,y)) goto err; | ^~~~~~ ~ bn.h:187:9: note: declared here 187 | int bn_mul(); | ^~~~~~ bn.c:1093:14: error: too many arguments to function 'bn_rshift'; expected 0, have 3 1093 | if (!bn_rshift(d,a,nb-1)) goto err; | ^~~~~~~~~ ~ bn.c:688:5: note: declared here 688 | int bn_rshift(r, a, n) | ^~~~~~~~~ bn.c:1094:14: error: too many arguments to function 'bn_mul'; expected 0, have 3 1094 | if (!bn_mul(b,d,i)) goto err; | ^~~~~~ ~ bn.h:187:9: note: declared here 187 | int bn_mul(); | ^~~~~~ bn.c:1095:14: error: too many arguments to function 'bn_rshift'; expected 0, have 3 1095 | if (!bn_rshift(c,b,nb-1)) goto err; | ^~~~~~~~~ ~ bn.c:688:5: note: declared here 688 | int bn_rshift(r, a, n) | ^~~~~~~~~ bn.c:1096:14: error: too many arguments to function 'bn_mul'; expected 0, have 3 1096 | if (!bn_mul(b,m,c)) goto err; | ^~~~~~ ~ bn.h:187:9: note: declared here 187 | int bn_mul(); | ^~~~~~ bn.c:1097:14: error: too many arguments to function 'bn_sub'; expected 0, have 3 1097 | if (!bn_sub(r,a,b)) goto err; | ^~~~~~ ~ bn.c:532:5: note: declared here 532 | int bn_sub(r, a, b) | ^~~~~~ bn.c:1099:16: error: too many arguments to function 'bn_cmp'; expected 0, have 2 1099 | while (bn_cmp(r,m) >= 0) | ^~~~~~ ~ bn.c:445:5: note: declared here 445 | int bn_cmp(a, b) | ^~~~~~ bn.c:1103:22: error: too many arguments to function 'bn_sub'; expected 0, have 3 1103 | if (!bn_sub(r,r,m)) | ^~~~~~ ~ bn.c:532:5: note: declared here 532 | int bn_sub(r, a, b) | ^~~~~~ bn.c:1107:9: error: too many arguments to function 'bn_set_tos'; expected 0, have 1 1107 | bn_set_tos(tos); | ^~~~~~~~~~ ~~~ bn.h:190:9: note: declared here 190 | void bn_set_tos(); | ^~~~~~~~~~ bn.c:1110:9: error: too many arguments to function 'bn_set_tos'; expected 0, have 1 1110 | bn_set_tos(tos); | ^~~~~~~~~~ ~~~ bn.h:190:9: note: declared here 190 | void bn_set_tos(); | ^~~~~~~~~~ bn.c: In function 'bn_reciprical': bn.c:1114:5: warning: old-style function definition [-Wold-style-definition] 1114 | int bn_reciprical(r, m) | ^~~~~~~~~~~~~ bn.c:1117:9: error: number of arguments doesn't match prototype 1117 | { | ^ bn.h:206:9: error: prototype declaration 206 | int bn_reciprical(); | ^~~~~~~~~~~~~ bn.c:1125:14: error: too many arguments to function 'bn_one'; expected 0, have 1 1125 | if (!bn_one(t)) goto err; | ^~~~~~ ~ bn.c:236:5: note: declared here 236 | int bn_one(a) | ^~~~~~ bn.c:1126:12: error: too many arguments to function 'bn_num_bits'; expected 0, have 1 1126 | nm=bn_num_bits(m); | ^~~~~~~~~~~ ~ bn.c:63:5: note: declared here 63 | int bn_num_bits(a) | ^~~~~~~~~~~ bn.c:1127:14: error: too many arguments to function 'bn_lshift'; expected 0, have 3 1127 | if (!bn_lshift(t,t,nm*2)) goto err; | ^~~~~~~~~ ~ bn.c:653:5: note: declared here 653 | int bn_lshift(r, a, n) | ^~~~~~~~~ bn.c:1129:14: error: too many arguments to function 'bn_div'; expected 0, have 4 1129 | if (!bn_div(r,NULL,t,m)) goto err; | ^~~~~~ ~ bn.c:877:5: note: declared here 877 | int bn_div(dv, rem, m, d) | ^~~~~~ bn.c:1130:9: error: too many arguments to function 'bn_set_tos'; expected 0, have 1 1130 | bn_set_tos(tos); | ^~~~~~~~~~ ~~~ bn.h:190:9: note: declared here 190 | void bn_set_tos(); | ^~~~~~~~~~ bn.c:1133:9: error: too many arguments to function 'bn_set_tos'; expected 0, have 1 1133 | bn_set_tos(tos); | ^~~~~~~~~~ ~~~ bn.h:190:9: note: declared here 190 | void bn_set_tos(); | ^~~~~~~~~~ bn.c: In function 'bn_bn2ascii': bn.c:1137:7: warning: old-style function definition [-Wold-style-definition] 1137 | char *bn_bn2ascii(a) | ^~~~~~~~~~~ bn.c:1139:9: error: number of arguments doesn't match prototype 1139 | { | ^ bn.h:214:9: error: prototype declaration 214 | char * bn_bn2ascii(); | ^~~~~~~~~~~ bn.c: In function 'bn_gcd': bn.c:1165:5: warning: old-style function definition [-Wold-style-definition] 1165 | int bn_gcd(r,in_a,in_b) | ^~~~~~ bn.c:1167:9: error: number of arguments doesn't match prototype 1167 | { | ^ bn.h:215:9: error: prototype declaration 215 | int bn_gcd(); | ^~~~~~ bn.c:1176:14: error: too many arguments to function 'bn_copy'; expected 0, have 2 1176 | if (!bn_copy(a,in_a)) goto err; | ^~~~~~~ ~ bn.c:210:9: note: declared here 210 | BIGNUM *bn_copy(a, b) | ^~~~~~~ bn.c:1177:14: error: too many arguments to function 'bn_copy'; expected 0, have 2 1177 | if (!bn_copy(b,in_b)) goto err; | ^~~~~~~ ~ bn.c:210:9: note: declared here 210 | BIGNUM *bn_copy(a, b) | ^~~~~~~ bn.c:1179:13: error: too many arguments to function 'bn_cmp'; expected 0, have 2 1179 | if (bn_cmp(a,b) < 0) { t=a; a=b; b=t; } | ^~~~~~ ~ bn.c:445:5: note: declared here 445 | int bn_cmp(a, b) | ^~~~~~ bn.c:1180:11: error: too many arguments to function 'euclid'; expected 0, have 2 1180 | t=euclid(a,b); | ^~~~~~ ~ bn.c:59:16: note: declared here 59 | static BIGNUM *euclid(); | ^~~~~~ bn.c:1183:11: error: too many arguments to function 'bn_copy'; expected 0, have 2 1183 | r=bn_copy(r,t); | ^~~~~~~ ~ bn.c:210:9: note: declared here 210 | BIGNUM *bn_copy(a, b) | ^~~~~~~ bn.c:1186:9: error: too many arguments to function 'bn_set_tos'; expected 0, have 1 1186 | bn_set_tos(tos); | ^~~~~~~~~~ ~~~ bn.h:190:9: note: declared here 190 | void bn_set_tos(); | ^~~~~~~~~~ bn.c: In function 'euclid': bn.c:1191:16: warning: old-style function definition [-Wold-style-definition] 1191 | static BIGNUM *euclid(a,b) | ^~~~~~ bn.c:1206:38: error: too many arguments to function 'bn_sub'; expected 0, have 3 1206 | if (!bn_sub(a,a,b)) goto err; | ^~~~~~ ~ bn.c:532:5: note: declared here 532 | int bn_sub(r, a, b) | ^~~~~~ bn.c:1207:38: error: too many arguments to function 'bn_rshift1'; expected 0, have 2 1207 | if (!bn_rshift1(a,a)) goto err; | ^~~~~~~~~~ ~ bn.c:622:5: note: declared here 622 | int bn_rshift1(r, a) | ^~~~~~~~~~ bn.c:1208:37: error: too many arguments to function 'bn_cmp'; expected 0, have 2 1208 | if (bn_cmp(a,b) < 0) | ^~~~~~ ~ bn.c:445:5: note: declared here 445 | int bn_cmp(a, b) | ^~~~~~ bn.c:1213:38: error: too many arguments to function 'bn_rshift1'; expected 0, have 2 1213 | if (!bn_rshift1(b,b)) goto err; | ^~~~~~~~~~ ~ bn.c:622:5: note: declared here 622 | int bn_rshift1(r, a) | ^~~~~~~~~~ bn.c:1214:37: error: too many arguments to function 'bn_cmp'; expected 0, have 2 1214 | if (bn_cmp(a,b) < 0) | ^~~~~~ ~ bn.c:445:5: note: declared here 445 | int bn_cmp(a, b) | ^~~~~~ bn.c:1222:38: error: too many arguments to function 'bn_rshift1'; expected 0, have 2 1222 | if (!bn_rshift1(a,a)) goto err; | ^~~~~~~~~~ ~ bn.c:622:5: note: declared here 622 | int bn_rshift1(r, a) | ^~~~~~~~~~ bn.c:1223:37: error: too many arguments to function 'bn_cmp'; expected 0, have 2 1223 | if (bn_cmp(a,b) < 0) | ^~~~~~ ~ bn.c:445:5: note: declared here 445 | int bn_cmp(a, b) | ^~~~~~ bn.c:1228:38: error: too many arguments to function 'bn_rshift1'; expected 0, have 2 1228 | if (!bn_rshift1(a,a)) goto err; | ^~~~~~~~~~ ~ bn.c:622:5: note: declared here 622 | int bn_rshift1(r, a) | ^~~~~~~~~~ bn.c:1229:38: error: too many arguments to function 'bn_rshift1'; expected 0, have 2 1229 | if (!bn_rshift1(b,b)) goto err; | ^~~~~~~~~~ ~ bn.c:622:5: note: declared here 622 | int bn_rshift1(r, a) | ^~~~~~~~~~ bn.c:1236:22: error: too many arguments to function 'bn_lshift'; expected 0, have 3 1236 | if (!bn_lshift(a,a,shifts)) goto err; | ^~~~~~~~~ ~ bn.c:653:5: note: declared here 653 | int bn_lshift(r, a, n) | ^~~~~~~~~ bn.c: In function 'bn_inverse_modn': bn.c:1245:5: warning: old-style function definition [-Wold-style-definition] 1245 | int bn_inverse_modn(r, in_a, in_n) | ^~~~~~~~~~~~~~~ bn.c:1249:9: error: number of arguments doesn't match prototype 1249 | { | ^ bn.h:216:5: error: prototype declaration 216 | int bn_inverse_modn(); | ^~~~~~~~~~~~~~~ bn.c:1265:14: error: too many arguments to function 'bn_copy'; expected 0, have 2 1265 | if (!bn_copy(a,in_a)) goto err; | ^~~~~~~ ~ bn.c:210:9: note: declared here 210 | BIGNUM *bn_copy(a, b) | ^~~~~~~ bn.c:1266:14: error: too many arguments to function 'bn_copy'; expected 0, have 2 1266 | if (!bn_copy(n,in_n)) goto err; | ^~~~~~~ ~ bn.c:210:9: note: declared here 210 | BIGNUM *bn_copy(a, b) | ^~~~~~~ bn.c:1268:14: error: too many arguments to function 'bn_extended_euclid'; expected 0, have 5 1268 | if (!bn_extended_euclid(&d,&x1,&y1,n,a)) goto err; | ^~~~~~~~~~~~~~~~~~ ~~ bn.c:60:12: note: declared here 60 | static int bn_extended_euclid(); | ^~~~~~~~~~~~~~~~~~ bn.c:1272:22: error: too many arguments to function 'bn_add'; expected 0, have 3 1272 | if (!bn_add(y1,y1,n)) goto err; | ^~~~~~ ~~ bn.c:342:5: note: declared here 342 | int bn_add(r, a, b) | ^~~~~~ bn.c:1276:24: error: too many arguments to function 'bn_mod'; expected 0, have 3 1276 | { if (!bn_mod(t,y1,n)) goto err; } | ^~~~~~ ~ bn.c:754:5: note: declared here 754 | int bn_mod(rem, m, d) | ^~~~~~ bn.c:1280:11: error: too many arguments to function 'bn_copy'; expected 0, have 2 1280 | r=bn_copy(r,t); | ^~~~~~~ ~ bn.c:210:9: note: declared here 210 | BIGNUM *bn_copy(a, b) | ^~~~~~~ bn.c:1283:9: error: too many arguments to function 'bn_set_tos'; expected 0, have 1 1283 | bn_set_tos(tos); | ^~~~~~~~~~ ~~~ bn.h:190:9: note: declared here 190 | void bn_set_tos(); | ^~~~~~~~~~ bn.c: In function 'bn_extended_euclid': bn.c:1287:12: warning: old-style function definition [-Wold-style-definition] 1287 | static int bn_extended_euclid(rd, rx, ry, a, b) | ^~~~~~~~~~~~~~~~~~ bn.c:1299:21: error: too many arguments to function 'bn_copy'; expected 0, have 2 1299 | if (bn_copy(*rd,a) == NULL) goto err; | ^~~~~~~ ~~~ bn.c:210:9: note: declared here 210 | BIGNUM *bn_copy(a, b) | ^~~~~~~ bn.c:1300:22: error: too many arguments to function 'bn_one'; expected 0, have 1 1300 | if (!bn_one(*rx)) goto err; | ^~~~~~ ~~~ bn.c:236:5: note: declared here 236 | int bn_one(a) | ^~~~~~ bn.c:1301:17: error: too many arguments to function 'bn_zero'; expected 0, have 1 1301 | bn_zero(*ry); | ^~~~~~~ ~~~ bn.c:228:6: note: declared here 228 | void bn_zero(a) | ^~~~~~~ bn.c:1307:14: error: too many arguments to function 'bn_mod'; expected 0, have 3 1307 | if (!bn_mod(A,a,b)) goto err; | ^~~~~~ ~ bn.c:754:5: note: declared here 754 | int bn_mod(rem, m, d) | ^~~~~~ bn.c:1309:14: error: too many arguments to function 'bn_extended_euclid'; expected 0, have 5 1309 | if (!bn_extended_euclid(rd,rx,ry,b,A)) | ^~~~~~~~~~~~~~~~~~ ~~ bn.c:1287:12: note: declared here 1287 | static int bn_extended_euclid(rd, rx, ry, a, b) | ^~~~~~~~~~~~~~~~~~ bn.c:1313:14: error: too many arguments to function 'bn_div'; expected 0, have 4 1313 | if (!bn_div(A,NULL,a,b)) goto err; | ^~~~~~ ~ bn.c:877:5: note: declared here 877 | int bn_div(dv, rem, m, d) | ^~~~~~ bn.c:1318:14: error: too many arguments to function 'bn_mul'; expected 0, have 3 1318 | if (!bn_mul(B,*ry,A)) goto err; | ^~~~~~ ~ bn.h:187:9: note: declared here 187 | int bn_mul(); | ^~~~~~ bn.c:1319:14: error: too many arguments to function 'bn_sub'; expected 0, have 3 1319 | if (!bn_sub(A,tmp,B)) goto err; | ^~~~~~ ~ bn.c:532:5: note: declared here 532 | int bn_sub(r, a, b) | ^~~~~~ bn.c:1320:13: error: too many arguments to function 'bn_copy'; expected 0, have 2 1320 | if (bn_copy(tmp,A) == NULL) goto err; | ^~~~~~~ ~~~ bn.c:210:9: note: declared here 210 | BIGNUM *bn_copy(a, b) | ^~~~~~~ bn.c:1323:9: error: too many arguments to function 'bn_set_tos'; expected 0, have 1 1323 | bn_set_tos(tos); | ^~~~~~~~~~ ~~~ bn.h:190:9: note: declared here 190 | void bn_set_tos(); | ^~~~~~~~~~ bn.c:1326:9: error: too many arguments to function 'bn_set_tos'; expected 0, have 1 1326 | bn_set_tos(tos); | ^~~~~~~~~~ ~~~ bn.h:190:9: note: declared here 190 | void bn_set_tos(); | ^~~~~~~~~~ *** [bn.o] Error code 1 bmake: stopped making "all" in /tmp/work/math/p5-Math-BigInteger/work/Math-BigInteger-1.0 --- BigInteger.c --- Please specify prototyping behavior for BigInteger.xs (see perlxs manual) mv BigInteger.xsc BigInteger.c bmake: 1 error bmake: stopped making "all" in /tmp/work/math/p5-Math-BigInteger/work/Math-BigInteger-1.0 *** Error code 2 Stop. bmake[1]: stopped making "all" in /data/jenkins/workspace/pkgsrc-upstream-trunk/math/p5-Math-BigInteger *** Error code 1 Stop. bmake: stopped making "all" in /data/jenkins/workspace/pkgsrc-upstream-trunk/math/p5-Math-BigInteger