From nobody@FreeBSD.ORG Fri Jul  9 08:08:58 1999
Return-Path: <nobody@FreeBSD.ORG>
Received: by hub.freebsd.org (Postfix, from userid 32767)
	id 06EA014D28; Fri,  9 Jul 1999 08:08:57 -0700 (PDT)
Message-Id: <19990709150857.06EA014D28@hub.freebsd.org>
Date: Fri,  9 Jul 1999 08:08:57 -0700 (PDT)
From: sorban@iss.net
Sender: nobody@FreeBSD.ORG
To: freebsd-gnats-submit@freebsd.org
Subject: Can't link code using catopen
X-Send-Pr-Version: www-1.0

>Number:         12577
>Category:       misc
>Synopsis:       Can't link code using catopen
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jul  9 08:10:00 PDT 1999
>Closed-Date:    Fri Nov 10 15:56:10 PST 2000
>Last-Modified:  Fri Nov 10 15:57:07 PST 2000
>Originator:     Scott Orban
>Release:        3.1 & 2.2.6
>Organization:
ISS
>Environment:
FreeBSD test 3.1-RELEASE FreeBSD 3.1-RELEASE #0: Wed Jul  7 14:47:33 EDT 1999
>Description:
Get the following error linking the following code snippet
using g++ test.cpp.  Since I know catopen is defined in the standard c library, I also tried forcing it by using g++ test.cpp -lc 

ERROR RECVD:
/var/tmp/ccGSl4qm.o: In function `main':
/var/tmp/ccGSl4qm.o(.text+0xe): undefined reference to `catopen(char const *, int)'
/var/tmp/ccGSl4qm.o(.text+0x1f): undefined reference to `catclose(void *)'
collect2: ld returned 1 exit status

CODE SNIPPET:
#include <nl_types.h>

void main()
{
    nl_catd s_nlCatd = catopen("test", NL_CAT_LOCALE);

    catclose( s_nlCatd );
}

>How-To-Repeat:

>Fix:


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: dirk 
State-Changed-When: Fri Nov 10 15:56:10 PST 2000 
State-Changed-Why:  
Can't reproduce the problem on 4.2-BETA. So the bug seems to have gone... 

http://www.freebsd.org/cgi/query-pr.cgi?pr=12577 
>Unformatted:
