[uClibc]nfsutils-1.0.1 : undefined reference to `syscall' under i386 flatform

vuph at cable.net.tw vuph at cable.net.tw
Thu Mar 27 08:03:43 UTC 2003


Hi all,

I have some problems when compile nfs-utils-1.0.1 by uclibc-0.9.12 under
i386 flatform.
Please give me an advice.


Error messages:
Making all in exportfs
gcc  -L../../support/lib -o exportfs exportfs.o -lexport -lnfs
../../support/lib/libnfs.a(nfsctl.o): In function `nfsctl':
/home/vuph/thinserver/current/nfs/nfs-utils-1.0.1/support/nfs/nfsctl.c:24:
undefined reference to `syscall'
collect2: ld returned 1 exit status
make[2]: *** [exportfs] Error 1
make[1]: *** [all] Error 2
make: *** [all] Error 2

I have checked in libc.a but can find any "syscall" symbol,

[vuph at vuph nfs-utils-1.0.1]$ nm -A /usr/i386-linux-uclibc/lib/libc.a | grep
"syscall"
/usr/i386-linux-uclibc/lib/libc.a:__uClibc_syscall.o:         U
__errno_location
/usr/i386-linux-uclibc/lib/libc.a:__uClibc_syscall.o:00000000 T
__uClibc_syscall

Did uclibc-0.9.12 support "syscall" ?

My uclibc's Config have turn on UNIFIED_SYSCALL

# If you want to collect common syscall code into one function, set to this
to
# `true'.  Set it to false otherwise.
# On i386 this saves about than 2.8k over all syscalls.
# The idea came from the implementation in dietlibc.
# At present, only affects i386.
UNIFIED_SYSCALL = true


-Pham Huy Vu-




More information about the uClibc mailing list