[uClibc]syscall in nfs-utils package
admin at emicovero.com
admin at emicovero.com
Fri Jul 12 19:28:06 UTC 2002
package is nfs-utils-0.3.3 and uClibc is built with portmapper support
The error is as follows:
Making all in exportfs
gcc -L../../support/lib -o exportfs exportfs.o -lexport -lnfs
../../support/lib/libnfs.a(nfsctl.o): In function `nfsctl':
/home/konrads/myrouter/nfs-utils-0.3.3/support/nfs/nfsctl.c:22: undefined
reference to `syscall'
collect2: ld returned 1 exit status
make[2]: *** [exportfs] Error 1
make[1]: *** [all] Error 2
make: *** [all] Error 2
and the nfsctl.c is here:
#include "config.h"
#include <unistd.h>
#include <asm/unistd.h>
#include "nfslib.h"
/* compatibility hack... */
#ifndef __NR_nfsctl
#define __NR_nfsctl __NR_nfsservctl
#endif
int
nfsctl (int cmd, struct nfsctl_arg * argp, union nfsctl_res * resp)
{
return syscall (__NR_nfsctl, cmd, argp, resp);
}
I am somewhat clueless at this point. Perhaps the big libc makes a #define
from some arcane __sycall99(..) , kind of "alias" if we may call it so.
More information about the uClibc
mailing list