From dgilbert@trooper.velocet.ca  Sun Jan 31 17:09:58 1999
Received: from trooper.velocet.ca (host-034.canadiantire.ca [209.146.201.34])
          by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id RAA24559
          for <FreeBSD-gnats-submit@freebsd.org>; Sun, 31 Jan 1999 17:09:56 -0800 (PST)
          (envelope-from dgilbert@trooper.velocet.ca)
Received: (from dgilbert@localhost)
	by trooper.velocet.ca (8.8.7/8.8.7) id UAA28851;
	Sun, 31 Jan 1999 20:09:54 -0500 (EST)
Message-Id: <199902010109.UAA28851@trooper.velocet.ca>
Date: Sun, 31 Jan 1999 20:09:54 -0500 (EST)
From: David Gilbert <dgilbert@velocet.net>
Reply-To: dgilbert@velocet.net
To: FreeBSD-gnats-submit@freebsd.org
Subject: mknod missing from c_r
X-Send-Pr-Version: 3.2

>Number:         9849
>Category:       bin
>Synopsis:       mknod is missing from libc_r
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jan 31 17:10:01 PST 1999
>Closed-Date:    Thu Jul 29 04:54:36 PDT 1999
>Last-Modified:  Thu Jul 29 04:56:31 PDT 1999
>Originator:     David Gilbert
>Release:        FreeBSD 3.0-RELEASE i386
>Organization:
>Environment:

	I'm running FreeBSD 3.0-RELEASE as installed by the installation.

>Description:

	When I compile software with -pthread that required mknod(2),
the link will fail.

>How-To-Repeat:

cat >test1.c <<EOF
#include <unistd.h>

main()
{
        mknod("foo",3,1);
}
EOF

[2:11:311]dgilbert@trooper:~/devel2> gcc -pthread -o test1 test1.c
/tmp/ccT288091.o: In function `main':
/tmp/ccT288091.o(.text+0xd): undefined reference to `mknod'
[2:12:312]dgilbert@trooper:~/devel2> gcc -o test1 test1.c

>Fix:
	
I would assume adding this function to libc_r would fix things,
but I don't know if there's a problem with that.



>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: deischen 
State-Changed-When: Thu Jul 29 04:54:36 PDT 1999 
State-Changed-Why:  
mknod was added some time ago to libc_r. 

bash-2.02$ nm /usr/lib/libc_r.so.3 | grep mknod 
00037f50 T _mknod 
00037f50 W mknod 

>Unformatted:
