Subject: lib/1849: -lcompat breaks regcomp()
To: None <>
From: None <>
List: netbsd-bugs
Date: 12/18/1995 21:00:49
>Number:         1849
>Category:       lib
>Synopsis:       linking with -lcompat breaks regcomp()
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    lib-bug-people (Library Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Dec 18 16:20:04 1995
>Originator:     Monoadm
>Release:        oct/95
System: NetBSD 1.0A NetBSD 1.0A (_SUN4C+DDB_) #10: Tue Oct 10 13:12:41 BST 1995 sparc

	Linking with -lcompat breaks any use of the new regex functions.
	This really sucks if you need anything else in -lcompat :)


	Compile & run the following with
	'gcc -o check check.c ; ./check' and you get 0. no problem there.

	Compile & run with
	'gcc -o check check.c -lcompat; ./check' and you get 32768. Ahh no,
	not what was expected.

#include <sys/types.h>
#include <regex.h>

    regex_t preg;
    int	val;

	Probably someone needs to rename some things inside libcompat...