From ler@lerlaptop.lerctr.org  Sat Nov  9 10:50:54 2002
Return-Path: <ler@lerlaptop.lerctr.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 83E0737B401
	for <FreeBSD-gnats-submit@freebsd.org>; Sat,  9 Nov 2002 10:50:54 -0800 (PST)
Received: from lerlaptop.lerctr.org (lerlaptop.lerctr.org [207.158.72.14])
	by mx1.FreeBSD.org (Postfix) with ESMTP id EBCC643E3B
	for <FreeBSD-gnats-submit@freebsd.org>; Sat,  9 Nov 2002 10:50:53 -0800 (PST)
	(envelope-from ler@lerlaptop.lerctr.org)
Received: from lerlaptop.lerctr.org (localhost [127.0.0.1])
	by lerlaptop.lerctr.org (8.12.6/8.12.6) with ESMTP id gA9IorYb000735
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 9 Nov 2002 12:50:53 -0600 (CST)
	(envelope-from ler@lerlaptop.lerctr.org)
Received: (from ler@localhost)
	by lerlaptop.lerctr.org (8.12.6/8.12.6/Submit) id gA9Ioq22000734;
	Sat, 9 Nov 2002 12:50:52 -0600 (CST)
	(envelope-from ler)
Message-Id: <200211091850.gA9Ioq22000734@lerlaptop.lerctr.org>
Date: Sat, 9 Nov 2002 12:50:52 -0600 (CST)
From: Larry Rosenman <ler@lerctr.org>
Reply-To: Larry Rosenman <ler@lerctr.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: libm.so.2  Undefined symbol "__stderrp" on uvscan
X-Send-Pr-Version: 3.113
X-GNATS-Notify: ler@lerctr.org

>Number:         45167
>Category:       bin
>Synopsis:       libm.so.2  Undefined symbol "__stderrp" on uvscan
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Nov 09 11:00:05 PST 2002
>Closed-Date:    Sun Nov 10 01:58:44 MST 2002
>Last-Modified:  Sun Nov 10 09:40:06 PST 2002
>Originator:     Larry Rosenman
>Release:        FreeBSD 4.7-STABLE i386
>Organization:
LERCTR Consulting
>Environment:
System: FreeBSD lerlaptop.lerctr.org 4.7-STABLE FreeBSD 4.7-STABLE #16: Sat Nov 9 12:23:25 CST 2002 ler@lerlaptop.lerctr.org:/usr/obj/usr/src/sys/LERLAPTOP i386


	
>Description:
I just cvsup'd and re-compiled world.  After the reboot, McAfee's UVSCAN
no longer runs, it gives me the following:

lerlaptop# uvscan --version
/usr/libexec/ld-elf.so.1: /usr/lib/libm.so.2: Undefined symbol "__stderrp"
lerlaptop# 

This will prevent me from deploying this release to my virus scanning 
server. 

I'm wondering if the following commit broke it:

imp         2002/11/09 00:07:21 PST

  Modified files:        (Branch: RELENG_4)
    include              stdio.h 
  Log:
  Forced commit:
  
  MFC:
  
  Change __sF to __std{in,out,err}p in #defines for std{in,out,err}.
  This should help us with our compatibility problems over the long
  haul.  I hope that this is the right thing to do.
  
  std{in,out,err} are no longer compile time constants.  -current has
  had this for 14 months now, and other systems do this.  I've fixed all
  the places in the -stable tree that assumed that they were compile
  time constants.
  
  Reviewed by: arch@
  
  Revision  Changes    Path
  1.24.2.5  +0 -0      src/include/stdio.h


	
>How-To-Repeat:
See Above
>Fix:
Back out what ever commit broke it. 
>Release-Note:
>Audit-Trail:

From: Larry Rosenman <ler@lerctr.org>
To: bug-followup@freebsd.org
Cc: imp@freebsd.org
Subject: bin/45167
Date: Sat, 09 Nov 2002 13:16:17 -0600

 I think the commit referenced needs to be backed out, or we need a Version 
 Number Bump on libm.so.2, and the
 OLD libm.so.2 available for the compat libc.so.3.
 
 I believe the problem comes from the following lines in 
 /usr/src/lib/msun/k_standard.c:
 
  21 #ifndef _USE_WRITE
      22 #include <stdio.h>                      /* fputs(), stderr */
      23 #define WRITE2(u,v)     fputs(u, stderr)
      24 #else   /* !defined(_USE_WRITE) */
 
 when used with /usr/lib/compat/libc.so.3
 
 
 
 -- 
 Larry Rosenman                     http://www.lerctr.org/~ler
 Phone: +1 972-414-9812                 E-Mail: ler@lerctr.org
 US Mail: 1905 Steamboat Springs Drive, Garland, TX 75044-6749
 

From: "M. Warner Losh" <imp@bsdimp.com>
To: ler@lerctr.org
Cc: bug-followup@freebsd.org
Subject: Re: bin/45167
Date: Sat, 09 Nov 2002 12:23:59 -0700 (MST)

 In message: <45080000.1036869377@lerlaptop.lerctr.org>
             Larry Rosenman <ler@lerctr.org> writes:
 : I think the commit referenced needs to be backed out, or we need a Version 
 : Number Bump on libm.so.2, and the
 : OLD libm.so.2 available for the compat libc.so.3.
 : 
 : I believe the problem comes from the following lines in 
 : /usr/src/lib/msun/k_standard.c:
 : 
 :  21 #ifndef _USE_WRITE
 :      22 #include <stdio.h>                      /* fputs(), stderr */
 :      23 #define WRITE2(u,v)     fputs(u, stderr)
 :      24 #else   /* !defined(_USE_WRITE) */
 : 
 : when used with /usr/lib/compat/libc.so.3
 
 Strange.  I build world on two different machines w/o a problem.
 
 Warner

From: Larry Rosenman <ler@lerctr.org>
To: "M. Warner Losh" <imp@bsdimp.com>
Cc: bug-followup@freebsd.org
Subject: Re: bin/45167
Date: Sat, 09 Nov 2002 13:26:04 -0600

 The problem isn't buildworld, the problem is /usr/lib/compat/libc.so.3 
 doesn't define the extern FILE *__stderrp
 so /usr/lib/libm.so.2 can't find them, so the rt-loader doesn't allow it to 
 run.
 
 It's a Backwards Compatibility thing.
 
 LER
 
 
 --On Saturday, November 09, 2002 12:23:59 -0700 "M. Warner Losh" 
 <imp@bsdimp.com> wrote:
 
 > In message: <45080000.1036869377@lerlaptop.lerctr.org>
 >             Larry Rosenman <ler@lerctr.org> writes:
 > : I think the commit referenced needs to be backed out, or we need a
 > Version  : Number Bump on libm.so.2, and the
 > : OLD libm.so.2 available for the compat libc.so.3.
 > :
 > : I believe the problem comes from the following lines in
 > : /usr/src/lib/msun/k_standard.c:
 > :
 > :  21 #ifndef _USE_WRITE
 > :      22 #include <stdio.h>                      /* fputs(), stderr */
 > :      23 #define WRITE2(u,v)     fputs(u, stderr)
 > :      24 #else   /* !defined(_USE_WRITE) */
 > :
 > : when used with /usr/lib/compat/libc.so.3
 >
 > Strange.  I build world on two different machines w/o a problem.
 >
 > Warner
 
 
 -- 
 Larry Rosenman                     http://www.lerctr.org/~ler
 Phone: +1 972-414-9812                 E-Mail: ler@lerctr.org
 US Mail: 1905 Steamboat Springs Drive, Garland, TX 75044-6749
 

From: "M. Warner Losh" <imp@bsdimp.com>
To: ler@lerctr.org
Cc: bug-followup@freebsd.org
Subject: Re: bin/45167
Date: Sat, 09 Nov 2002 12:26:11 -0700 (MST)

 What kind of binary is uvscan?  what does ldd on it say?
 
 Warner

From: Larry Rosenman <ler@lerctr.org>
To: "M. Warner Losh" <imp@bsdimp.com>
Cc: bug-followup@freebsd.org
Subject: Re: bin/45167
Date: Sat, 09 Nov 2002 13:27:29 -0600

 It's a native FreeBSD binary:
 
 $ ldd `whence uvscan`
 /usr/local/bin/uvscan:
 	libbsdfv.so.4 => /usr/local/lib/libbsdfv.so.4 (0x4807a000)
 	libm.so.2 => /usr/lib/libm.so.2 (0x48273000)
 	libc.so.3 => /usr/lib/compat/libc.so.3 (0x4828e000)
 $
 
 
 --On Saturday, November 09, 2002 12:26:11 -0700 "M. Warner Losh" 
 <imp@bsdimp.com> wrote:
 
 > What kind of binary is uvscan?  what does ldd on it say?
 >
 > Warner
 
 
 -- 
 Larry Rosenman                     http://www.lerctr.org/~ler
 Phone: +1 972-414-9812                 E-Mail: ler@lerctr.org
 US Mail: 1905 Steamboat Springs Drive, Garland, TX 75044-6749
 

From: "M. Warner Losh" <imp@bsdimp.com>
To: ler@lerctr.org
Cc: bug-followup@freebsd.org
Subject: Re: bin/45167
Date: Sat, 09 Nov 2002 12:32:49 -0700 (MST)

 In message: <55070000.1036869964@lerlaptop.lerctr.org>
             Larry Rosenman <ler@lerctr.org> writes:
 : The problem isn't buildworld, the problem is /usr/lib/compat/libc.so.3 
 : doesn't define the extern FILE *__stderrp
 : so /usr/lib/libm.so.2 can't find them, so the rt-loader doesn't allow it to 
 : run.
 : 
 : It's a Backwards Compatibility thing.
 
 OK.  I'll have to think about what to do.  It might be to add
 __std{in,out,err}p to the 3.x compat library.  Since there is no .2
 version to worry about because that was a.out and a.out isn't
 changing...  We had a similar problem with 5 -> 4.
 
 Warner

From: Larry Rosenman <ler@lerctr.org>
To: "M. Warner Losh" <imp@bsdimp.com>
Cc: bug-followup@freebsd.org
Subject: Re: bin/45167
Date: Sat, 09 Nov 2002 13:39:31 -0600

 --On Saturday, November 09, 2002 12:32:49 -0700 "M. Warner Losh" 
 <imp@bsdimp.com> wrote:
 
 > In message: <55070000.1036869964@lerlaptop.lerctr.org>
 >             Larry Rosenman <ler@lerctr.org> writes:
 > : The problem isn't buildworld, the problem is /usr/lib/compat/libc.so.3
 > : doesn't define the extern FILE *__stderrp
 > : so /usr/lib/libm.so.2 can't find them, so the rt-loader doesn't allow
 > it to  : run.
 > :
 > : It's a Backwards Compatibility thing.
 >
 > OK.  I'll have to think about what to do.  It might be to add
 > __std{in,out,err}p to the 3.x compat library.  Since there is no .2
 > version to worry about because that was a.out and a.out isn't
 > changing...  We had a similar problem with 5 -> 4.
 I don't know if that's the right thing(TM).
 
 I do know that I'd like to see a fix quickly, or the commit backed out until
 this is hashed out.
 
 LER
 
 >
 > Warner
 
 
 -- 
 Larry Rosenman                     http://www.lerctr.org/~ler
 Phone: +1 972-414-9812                 E-Mail: ler@lerctr.org
 US Mail: 1905 Steamboat Springs Drive, Garland, TX 75044-6749
 

From: "M. Warner Losh" <imp@bsdimp.com>
To: ler@lerctr.org
Cc: bug-followup@freebsd.org
Subject: Re: bin/45167
Date: Sat, 09 Nov 2002 12:41:00 -0700 (MST)

 In message: <68550000.1036870771@lerlaptop.lerctr.org>
             Larry Rosenman <ler@lerctr.org> writes:
 : I don't know if that's the right thing(TM).
 : 
 : I do know that I'd like to see a fix quickly, or the commit backed out until
 : this is hashed out.
 
 I plan on resolving the issue today sometime, one way or the other.
 
 Warner
State-Changed-From-To: open->closed 
State-Changed-By: imp 
State-Changed-When: Sun Nov 10 01:57:52 MST 2002 
State-Changed-Why:  
Larry, 
you just need to install the compat libs from -current and 
your problems should go away. 


http://www.freebsd.org/cgi/query-pr.cgi?pr=45167 

From: Larry Rosenman <ler@lerctr.org>
To: bug-followup@freebsd.org
Cc:  
Subject: bin/45167
Date: Sun, 10 Nov 2002 05:47:14 -0600

 Why aren't they done by default from CVSup?
 
 Do I need a new /etc/make.conf flag?
 
 I am running -STABLE, a new MAKE WORLD broke it.
 
 What exact libraries do I need to install?
 
 I disagree with this closure.
 
 
 -- 
 Larry Rosenman                     http://www.lerctr.org/~ler
 Phone: +1 972-414-9812                 E-Mail: ler@lerctr.org
 US Mail: 1905 Steamboat Springs Drive, Garland, TX 75044-6749
 
 
 

From: "M. Warner Losh" <imp@bsdimp.com>
To: ler@lerctr.org
Cc: bug-followup@freebsd.org
Subject: Re: bin/45167
Date: Sun, 10 Nov 2002 08:45:07 -0700 (MST)

 I've committed the right libraries to -stable.
 
 Warner

From: Larry Rosenman <ler@lerctr.org>
To: "M. Warner Losh" <imp@bsdimp.com>
Cc: bug-followup@freebsd.org
Subject: Re: bin/45167
Date: Sun, 10 Nov 2002 09:46:22 -0600

 Thank You. I'll rebuild world and shut up as soon as the cvsup mirrors pick 
 it up.
 
 LER
 
 
 --On Sunday, November 10, 2002 08:45:07 -0700 "M. Warner Losh" 
 <imp@bsdimp.com> wrote:
 
 > I've committed the right libraries to -stable.
 >
 > Warner
 
 
 
 -- 
 Larry Rosenman                     http://www.lerctr.org/~ler
 Phone: +1 972-414-9812                 E-Mail: ler@lerctr.org
 US Mail: 1905 Steamboat Springs Drive, Garland, TX 75044-6749
 
 
 

From: "M. Warner Losh" <imp@bsdimp.com>
To: ler@lerctr.org
Cc: bug-followup@freebsd.org
Subject: Re: bin/45167
Date: Sun, 10 Nov 2002 08:46:50 -0700 (MST)

 In message: <4930000.1036943182@lerlaptop.lerctr.org>
             Larry Rosenman <ler@lerctr.org> writes:
 : Thank You. I'll rebuild world and shut up as soon as the cvsup mirrors pick 
 : it up.
 
 Lemme know if I botched it.  It seems to work for me here.
 
 Warner

From: Larry Rosenman <ler@lerctr.org>
To: "M. Warner Losh" <imp@bsdimp.com>
Cc: bug-followup@freebsd.org
Subject: Re: bin/45167
Date: Sun, 10 Nov 2002 11:25:47 -0600

 Works great.  Thanks for the fast fix....
 
 LER
 
 
 --On Sunday, November 10, 2002 08:46:50 -0700 "M. Warner Losh" 
 <imp@bsdimp.com> wrote:
 
 > In message: <4930000.1036943182@lerlaptop.lerctr.org>
 >             Larry Rosenman <ler@lerctr.org> writes:
 > : Thank You. I'll rebuild world and shut up as soon as the cvsup mirrors
 > pick  : it up.
 >
 > Lemme know if I botched it.  It seems to work for me here.
 >
 > Warner
 
 
 
 -- 
 Larry Rosenman                     http://www.lerctr.org/~ler
 Phone: +1 972-414-9812                 E-Mail: ler@lerctr.org
 US Mail: 1905 Steamboat Springs Drive, Garland, TX 75044-6749
 
 
 

From: "M. Warner Losh" <imp@bsdimp.com>
To: ler@lerctr.org
Cc: bug-followup@freebsd.org
Subject: Re: bin/45167
Date: Sun, 10 Nov 2002 10:32:38 -0700 (MST)

 In message: <1120000.1036949147@lerlaptop.lerctr.org>
             Larry Rosenman <ler@lerctr.org> writes:
 : Works great.  Thanks for the fast fix....
 
 You are welcome.
 
 Warner
>Unformatted:
