LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   NIS installation generic error (https://www.linuxquestions.org/questions/linux-software-2/nis-installation-generic-error-239759/)

emailssent 10-07-2004 06:08 AM

NIS installation generic error
 
I am trying to configure NIS server on Mandrake 9.2

#i run the ./configure command
and then make

and it gives me error


generic.c:30:16: mp.h: No such file or directory
generic.c: In function `genkeys':
generic.c:79: error: `MINT' undeclared (first use in this function)
generic.c:79: error: (Each undeclared identifier is reported only once
generic.c:79: error: for each function it appears in.)
generic.c:79: error: `pk' undeclared (first use in this function)
generic.c:79: warning: implicit declaration of function `itom'
generic.c:80: error: `sk' undeclared (first use in this function)
generic.c:81: error: `tmp' undeclared (first use in this function)
generic.c:82: error: `base' undeclared (first use in this function)
generic.c:83: error: `root' undeclared (first use in this function)
generic.c:84: error: `modulus' undeclared (first use in this function)
generic.c:84: warning: implicit declaration of function `xtom'
generic.c:94: warning: implicit declaration of function `mult'
generic.c:95: warning: implicit declaration of function `madd'
generic.c:96: warning: implicit declaration of function `mfree'
generic.c:99: warning: implicit declaration of function `mdiv'
generic.c:101: warning: implicit declaration of function `pow'
generic.c:102: warning: implicit declaration of function `mtox'
generic.c:102: warning: assignment makes pointer from integer without a cast
generic.c:104: warning: assignment makes pointer from integer without a cast
make[3]: *** [generic.o] Error 1
make[3]: Leaving directory `/home/emailssent/opt/nis/nis-utils-1.4/lib/key_common'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/emailssent/opt/nis/nis-utils-1.4/lib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/emailssent/opt/nis/nis-utils-1.4'
make: *** [all-recursive-am] Error 2

So, when checked generic.c file (a partial generic.c file is given below)

void genkeys (char *public, char *secret, char *pass)
{
unsigned int i;

#define BASEBITS (8*sizeof(short) - 1)
#define BASE (1 << BASEBITS)

MINT *pk = itom (0); ///line 79
MINT *sk = itom (0);
MINT *tmp;
MINT *base = itom (BASE);
MINT *root = itom (PROOT);
MINT *modulus = xtom (HEXMODULUS);
unsigned short r;
unsigned short seed[KEYSIZE / BASEBITS + 1];
char *xkey;

getseed ((char *) seed, sizeof (seed), (u_char *) pass);
for (i = 0; i < KEYSIZE / BASEBITS + 1; ++i)
{
r = seed[i] % ((unsigned short) BASE);
tmp = itom (r);

As above error say error at line 79 in generic.c "undecleared MINT", so how to declare it or what to do to solve the problem


All times are GMT -5. The time now is 03:19 AM.