bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Regex Hangs


From: Stepan Kasal
Subject: Re: Regex Hangs
Date: Fri, 3 Jan 2003 15:07:37 +0100
User-agent: Mutt/1.2.5.1i

Hello,

On Sat, Dec 28, 2002 at 07:57:56PM +0200, Khamis Siksek wrote:
> I think I found a bug in the Regex library 0.12 (glibc version 1.2.10
> on RedHat 7.2), [...]

this version is relatively old.  It's much better to get a version from
newer glibc.

To get the current one from CVS:
cvs -z3 -d:pserver:address@hidden:/cvs/glibc co libc/posix

then copy all libc/posix/reg* files to your source directory,
apply the patch  glibc_regex_h.patch  (attached to this mail),
compile as follows:

gcc -Wall -c regex.c

and use the resulting regex.o .

>  <<TestReg.c>> 
> address@hidden

I've tried

gcc -Wall -c TestReg.c
gcc -o TestReg regex.o TestReg.o

and the resulting binary works without any problem.

HTH,
        Stepan Kasal

Attachment: glibc_regex_h.patch
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]