From owner-freebsd-stable Wed Oct 10 7:16: 9 2001 Delivered-To: freebsd-stable@freebsd.org Received: from whale.sunbay.crimea.ua (whale.sunbay.crimea.ua [212.110.138.65]) by hub.freebsd.org (Postfix) with ESMTP id AD2D437B408; Wed, 10 Oct 2001 07:15:55 -0700 (PDT) Received: (from ru@localhost) by whale.sunbay.crimea.ua (8.11.6/8.11.2) id f9AE6p244445; Wed, 10 Oct 2001 17:06:51 +0300 (EEST) (envelope-from ru) Date: Wed, 10 Oct 2001 17:06:50 +0300 From: Ruslan Ermilov To: Roland Jesse , Daniel Eischen Cc: FreeBSD-Stable List Subject: libc_r hidden syscalls (was: Re: buildworld fails in sbin/mount_nfs) Message-ID: <20011010170650.C33404@sunbay.com> References: <4hofnfd6ib.fsf@mail.cs.uni-magdeburg.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <4hofnfd6ib.fsf@mail.cs.uni-magdeburg.de>; from jesse@mail.CS.Uni-Magdeburg.De on Wed, Oct 10, 2001 at 02:27:56PM +0200 Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Wed, Oct 10, 2001 at 02:27:56PM +0200, Roland Jesse wrote: > Hi, > > just wanted to let you know that a buildworld with freshly cvsup'ed > sources (RELENG_4) fails here with: > > ... > cc -nostdinc -mcpu=i686 -march=i386 -pthread -march=pentiumpro -march=pentiumpro -DNFS -I/usr/src/sbin/mount_nfs/../mount -I/usr/src/sbin/mount_nfs/../../usr.sbin/rpc.umntall -I/usr/obj/usr/src/i386/usr/include -static -o mount_nfs mount_nfs.o getmntopts.o mounttab.o ^^^^^^^^ > mount_nfs.o: In function `main': > mount_nfs.o(.text+0xca7): undefined reference to `nfssvc' > *** Error code 1 > > Stop in /usr/src/sbin/mount_nfs. > *** Error code 1 > You apparently have -pthread set globally in your /etc/make.conf. But libc_r hides the nfssvc(2) syscall without providing a wrapper. Similarly for sigreturn(2). nanosleep(2) was removed yet in 1998. This patch is for RELENG_4: Index: Makefile =================================================================== RCS file: /home/ncvs/src/lib/libc_r/Makefile,v retrieving revision 1.24.2.3 diff -u -r1.24.2.3 Makefile --- Makefile 2000/11/09 23:45:57 1.24.2.3 +++ Makefile 2001/10/10 14:04:46 @@ -31,10 +31,10 @@ flock.o fpathconf.o fstat.o fstatfs.o fsync.o getdirentries.o \ getlogin.o getpeername.o getsockname.o getsockopt.o ioctl.o \ kevent.o listen.o \ - msync.o nanosleep.o nfssvc.o open.o poll.o read.o readv.o recvfrom.o \ + msync.o nanosleep.o open.o poll.o read.o readv.o recvfrom.o \ recvmsg.o sched_yield.o select.o sendfile.o sendmsg.o sendto.o \ setsockopt.o shutdown.o sigaction.o sigaltstack.o \ - signanosleep.o sigpending.o sigprocmask.o sigreturn.o sigsetmask.o \ + sigpending.o sigprocmask.o sigsetmask.o \ sigsuspend.o socket.o \ socketpair.o wait4.o write.o writev.o This one is for HEAD: Index: namespace.h =================================================================== RCS file: /home/ncvs/src/lib/libc/include/namespace.h,v retrieving revision 1.5 diff -u -p -r1.5 namespace.h --- namespace.h 2001/08/29 13:52:26 1.5 +++ namespace.h 2001/10/10 14:07:20 @@ -142,7 +142,6 @@ #define sendfile _sendfile #define shutdown _shutdown #define sigaltstack _sigaltstack -#define signanosleep _signanosleep #define sigpending _sigpending #define sigreturn _sigreturn #define sigsetmask _sigsetmask Index: un-namespace.h =================================================================== RCS file: /home/ncvs/src/lib/libc/include/un-namespace.h,v retrieving revision 1.4 diff -u -p -r1.4 un-namespace.h --- un-namespace.h 2001/08/29 13:52:26 1.4 +++ un-namespace.h 2001/10/10 14:07:20 @@ -113,7 +113,6 @@ #undef sendfile #undef shutdown #undef sigaltstack -#undef signanosleep #undef sigpending #undef sigreturn #undef sigsetmask Cheers, -- Ruslan Ermilov Oracle Developer/DBA, ru@sunbay.com Sunbay Software AG, ru@FreeBSD.org FreeBSD committer, +380.652.512.251 Simferopol, Ukraine http://www.FreeBSD.org The Power To Serve http://www.oracle.com Enabling The Information Age To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message