10:
1097532@bugs.
81feAzl7dtAFL9BnjhRocPby82
Sy7LsLhP5EdEhar3Ee7eD2rDQPr
smghBAnAwxcEQITlN/5OKV9xqM
3Hma18CE9gf+wIOM6HpCImskAvq
E0v+TgfJxwjypPgThwWxzyujo0c
wed2Zb/eHlRMzzFv3RiAAnA7RdY
1FITurPYSnzKaRiK6rHjMAJc2PH
K6GKW1svqSnwGwrAtTLYmNqDtWk
adf61e73a8af0-
0800 (
protocol="application/pgp-
009O5w-
From: syed.shahrukh@ossrevival.org
--Mlon//TzPOI2CGeN
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
Control: tags 1097532 + patch
Control: tags 1097532 + pending
> otp.c: In function ‘mrandom’:
> otp.c:168:9: error: too many arguments to function ‘o_setstate’;
expected 0, have 1
> 168 | o_setstate(rvec[i]);
> | ^~~~~~~~~~ ~~~~~~~
> otp.c:73:14: note: declared here
> 73 | extern char *o_setstate();
> | ^~~~~~~~~~
> otp.c: In function ‘main’:
> otp.c:382:9: error: too many arguments to function ‘o_initstate’;
expected 0, have 3
> 382 | o_initstate(rseed, rvec[j], RandVecL);
> | ^~~~~~~~~~~ ~~~~~
> otp.c:72:14: note: declared here
> 72 | extern char *o_initstate();
> | ^~~~~~~~~~~
> make[1]: *** [: otp.o] Error 1
> make[1]: *** Waiting for unfinished jobs....
> make[1]: Leaving directory '/build/reproducible-path/otp-1.2.2'
> dh_auto_build: error: make -j8 "INSTALL=install --strip-program=true"
returned exit code 2
> make: *** [debian/rules:4: binary] Error 25
> dpkg-buildpackage: error: debian/rules binary subprocess returned exit
status 2
The problem is due to function signature in declaration of extern
functions.
Submitted the fix in upload to mentors.
Regards,
Syed Shahrukh Hussain.
--Mlon//TzPOI2CGeN
Content-Type: text/x-diff; charset=us-ascii
Content-Disposition: attachment;
filename="0002-fixed-function-signature.patch"
Content-Transfer-Encoding: quoted-printable
From: Syed Shahrukh Hussain
Date: Wed, 5 Nov 2025 02:30:14 +0500
Subject: Fixed function signature.
Forwarded: not-needed
---
otp.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/otp.c b/otp.c
index 96ba96e..4f2a0d6 100644
--- a/otp.c
+++ b/otp.c
@@ -69,8 +69,8 @@ extern int getpid(), getppid(), gethostid();
replace these with includes of the proper header files. */
extern int32_t o_random();
-extern char *o_initstate();
-extern char *o_setstate();
+extern char *o_initstate(u_int seed, char *arg_state, int n);
+extern char *o_setstate(char *arg_state);
#define PW_LENGTH 8 /* Default password length */
--Mlon//TzPOI2CGeN--
-----BEGIN PGP SIGNATURE-----
iQIzBAABCgAdFiEEljcSQ3PBMBm+EUvM62KxBX3nqLEFAmkLLBsACgkQ62KxBX3n
qLELYRAAmzw9Sjq0NOGfRQSLa+WjJn0fP8Yfd8XpoJSRSdSqZ+KdRW8B3vCDW5Qz
j9TGLXl3n6QSTtXog4AEeUf76fgXV3kwe+GzwHbC6a9g08TfdvV9Fe7OtXa8BEUu
X85YY2qkhsXuD6yXXInxQKa0MVeJN3jShqmQEqe4KUzCjSjbt3W2ouZ4CxldgWoY
bgywqhgoF4rLy205eaGIcnmcGSviOIXnTC50I5MtG7XpHgiBRPIFeb9GTcu9+nQG
Vc7qfXJcJOoKAdnzEMWshLSu9ZVuNJNtWFq0vT6oYhuUSNett6JkUOfzgotTYITq
HufG81NbCHadArVF4Pqn7TbbbpyYYAFWuUvL0v4tqxnpnB7sTQkJBuczTxv+DnaW
wqvjpZ4O4qmpXXiRxnvfuyETZizeBCXBgt+X3VwkTf1UhHYf/nYTbcXtjoB4bsGi
8l6S54G4x5vo6yQrIFRJ7EIgrBy+nwbeo4diMhh9Sc02OXs6maav4R2G1i/4ooUJ
ktWSl0S4njFwh3UBafo9/oP3w+oXQ457RZdIbPuLqEfynlU+vzWaLdVU1y3ZEn8Z
9/2I3AgQRrwLV8fGzisbNYTUDZ2GpyGO1wbT+fSoIc+OhPLnBWGxgcVZAyaxsFnk
3I/J5HdZpOYalFH2Th9DG9GzhfUOPdFmM+H9bWIX2xOwBkekYSY=
=bncw
-----END PGP SIGNATURE-----
--- SoupGate-Win32 v1.05
* Origin: you cannot sedate... all the things you hate (1:229/2)
|