Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Oct 2001 17:06:50 +0300
From:      Ruslan Ermilov <ru@FreeBSD.org>
To:        Roland Jesse <jesse@mail.CS.Uni-Magdeburg.De>, Daniel Eischen <deischen@FreeBSD.org>
Cc:        FreeBSD-Stable List <freebsd-stable@FreeBSD.org>
Subject:   libc_r hidden syscalls (was: Re: buildworld fails in sbin/mount_nfs)
Message-ID:  <20011010170650.C33404@sunbay.com>
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 %2B0200
References:  <4hofnfd6ib.fsf@mail.cs.uni-magdeburg.de>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011010170650.C33404>