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]: *** [<builtin>: 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.
From: Syed Shahrukh Hussain <[email protected]> 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 */
signature.asc
Description: PGP signature

