Bug 12577

Summary: Can't link code using catopen
Product: Base System Reporter: sorban <sorban>
Component: miscAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Unspecified   
Hardware: Any   
OS: Any   

Description sorban 1999-07-09 16:10:00 UTC
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 );
}
Comment 1 dirk freebsd_committer freebsd_triage 2000-11-10 23:56:10 UTC
State Changed
From-To: open->closed

Can't reproduce the problem on 4.2-BETA. So the bug seems to have gone...