From nobody  Sun Nov 24 21:58:57 1996
Received: (from nobody@localhost)
          by freefall.freebsd.org (8.7.5/8.7.3) id VAA06559;
          Sun, 24 Nov 1996 21:58:57 -0800 (PST)
Message-Id: <199611250558.VAA06559@freefall.freebsd.org>
Date: Sun, 24 Nov 1996 21:58:57 -0800 (PST)
From: hosokawa@mt.cs.keio.ac.jp
To: freebsd-gnats-submit@freebsd.org
Subject: Missing asprintf()/vasprintf() on 2.1.6-RELEASE
X-Send-Pr-Version: www-1.0

>Number:         2098
>Category:       misc
>Synopsis:       Missing asprintf()/vasprintf() on 2.1.6-RELEASE
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Nov 24 22:00:01 PST 1996
>Closed-Date:    Sat Jan 11 13:00:43 PST 1997
>Last-Modified:  Sun Jan 26 16:10:01 PST 1997
>Originator:     Tatsumi Hosokawa
>Release:        2.1.6-RELEASE
>Organization:
Keio University
>Environment:
FreeBSD ryukyu.mt.cs.keio.ac.jp 2.1.6-RELEASE FreeBSD 2.1.6-RELEASE #0: Mon Nov
25 12:46:38 JST 1996     hosokawa@ryukyu.mt.cs.keio.ac.jp:/usr1/src/sys/compile/
RYUKYU  i386
>Description:
I can compile following C program on 2.2-ALPHA, but not on 2.1.6-RELEASE.

#include <stdio.h>

main()
{
        char *p;

        asprintf(&p, "Hello, World!");
        printf("%s\n", p);
}

Error message follows.

% cc hoge.c
/var/tmp/cc0139781.o: Undefined symbol `_asprintf' referenced from text segment


>How-To-Repeat:
Compile any C programs which has asprintf() and/or vasprintf().
>Fix:
I have no idea. Sorry.
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: mpp 
State-Changed-When: Sat Jan 11 13:00:43 PST 1997 
State-Changed-Why:  
The asprintf & vasprint exist in -current, and 2.2-BETA, 
and there isn't anything that can be done now that 2.1.6 is 
out the door (although the 2.1.6 system I have access to 
has the functions). 

From: john hood <cgull@smoke.marlboro.vt.us>
To: freebsd-gnats-submit@freebsd.org
Cc:  Subject: misc/2098: gdb problem in 2.1.6
Date: Sun, 26 Jan 1997 19:07:16 -0500 (EST)

 John Brann writes:
  > Hi,
  > 
  > I've just moved my laptop to 2.1.6.  When I try to invoke gdb I get:
  > 
  > ld.so: Undefined symbol "_vasprintf" called from gdb:gdb at 0x92344
  > 
  > This happens both with the installed copy and the one on the CD live
  > filesystem.  I'm guessing that one of my system shared libraries is hosed,
  > any idea which one?
 
 You installed the compatibility libraries, right?
 
 I had this problem too; turns out that one of the compat2x libraries
 stomps on /usr/lib/libc.so.2.2 with an incompatible(!) library missing
 _vasprintf.
 
 The fix is easy: restore that library from the bin distribution.
 
 [I've tagged this onto a related PR.]
 
   --jh
 
 
 -- 
 John Hood				cgull@smoke.marlboro.vt.us
 
 Predictably, they all eventually wandered away, rubbing their bruises
 and brushing mud out of their hair.  Some went off to work for the
 ESA, launching much smaller rockets into low orbits, while others
 elected to sit on their front porches drinking Jim Beam from the
 bottle and launching bottle rockets from the empties. [Jordan Hubbard]
 
 
 --SAA20077.854323193/smoke.marlboro.vt.us--
>Unformatted:
