logo       

nfsutils-1.0.1 : undefined reference to `syscall' under i386 flatform: msg#00194

lib.uclibc.general

Subject: nfsutils-1.0.1 : undefined reference to `syscall' under i386 flatform


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@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-


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise