Hello,<div>I try to compile nis-utils-1.4.1 on rhel-6 and got this error:</div><div>I hope to get the right inputs to fix this problem. </div><div>Thanks in advance.</div><div><br></div><div>below is the error log:</div><div>
<br></div><div><br></div><div><div>make[3]: Leaving directory `/root/nis-utils-1.4.1/lib/nisdb'</div><div>Making all in key_common</div><div>make[3]: Entering directory `/root/nis-utils-1.4.1/lib/key_common'</div>
<div>gcc -DHAVE_CONFIG_H -I. -I. -I../..   -I/usr/local/include  -W -Wall -Wbad-function-cast -Wcast-align -Wcast-qual -Winline -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wshadow -Wstrict-prototypes -Wundef -g -O2 -D_REENTRANT -c generic.c</div>
<div>generic.c:30:16: error: mp.h: No such file or directory</div><div>generic.c: In function âgenkeysâ:</div><div>generic.c:79: error: âMINTâ undeclared (first use in this function)</div><div>generic.c:79: error: (Each undeclared identifier is reported only once</div>
<div>generic.c:79: error: for each function it appears in.)</div><div>generic.c:79: error: âpkâ undeclared (first use in this function)</div><div>generic.c:79: warning: implicit declaration of function âitomâ</div><div>generic.c:79: warning: nested extern declaration of âitomâ</div>
<div>generic.c:80: error: âskâ undeclared (first use in this function)</div><div>generic.c:81: error: âtmpâ undeclared (first use in this function)</div><div>generic.c:82: error: âbaseâ undeclared (first use in this function)</div>
<div>generic.c:83: error: ârootâ undeclared (first use in this function)</div><div>generic.c:84: error: âmodulusâ undeclared (first use in this function)</div><div>generic.c:84: warning: implicit declaration of function âxtomâ</div>
<div>generic.c:84: warning: nested extern declaration of âxtomâ</div><div>generic.c:94: warning: implicit declaration of function âmultâ</div><div>generic.c:94: warning: nested extern declaration of âmultâ</div><div>generic.c:95: warning: implicit declaration of function âmaddâ</div>
<div>generic.c:95: warning: nested extern declaration of âmaddâ</div><div>generic.c:96: warning: implicit declaration of function âmfreeâ</div><div>generic.c:96: warning: nested extern declaration of âmfreeâ</div><div>generic.c:99: warning: implicit declaration of function âmdivâ</div>
<div>generic.c:99: warning: nested extern declaration of âmdivâ</div><div>generic.c:101: warning: implicit declaration of function âpowâ</div><div>generic.c:101: warning: incompatible implicit declaration of built-in function âpowâ</div>
<div>generic.c:101: error: too many arguments to function âpowâ</div><div>generic.c:102: warning: implicit declaration of function âmtoxâ</div><div>generic.c:102: warning: nested extern declaration of âmtoxâ</div><div>make[3]: *** [generic.o] Error 1</div>
<div>make[3]: Leaving directory `/root/nis-utils-1.4.1/lib/key_common'</div><div>make[2]: *** [all-recursive] Error 1</div><div>make[2]: Leaving directory `/root/nis-utils-1.4.1/lib'</div><div>make[1]: *** [all-recursive] Error 1</div>
<div>make[1]: Leaving directory `/root/nis-utils-1.4.1'</div><div>make: *** [all-recursive-am] Error 2</div><div>root@devbox:~/nis-utils-1.4.1>which gcc</div><div>/usr/bin/gcc</div></div><div><br></div>