From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22479 invoked by alias); 20 Aug 2005 07:26:12 -0000 Mailing-List: contact glibc-bugs-regex-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Post: List-Help: , Sender: glibc-bugs-regex-owner@sources.redhat.com Received: (qmail 22374 invoked by uid 48); 20 Aug 2005 07:26:06 -0000 Date: Sat, 20 Aug 2005 07:26:00 -0000 From: "eggert at gnu dot org" To: glibc-bugs-regex@sources.redhat.com Message-ID: <20050820072603.1220.eggert@gnu.org> Reply-To: sourceware-bugzilla@sources.redhat.com Subject: [Bug regex/1220] New: regex uses old-style definitions that cause g++ to fail X-Bugzilla-Reason: CC X-SW-Source: 2005-08/txt/msg00022.txt.bz2 List-Id: regex uses old (K&R) style function definitions, which causes problems when it is compiled using g++ outside of glibc. For example: g++ -W -Wswitch -Wcomment -Wpointer-arith -Wimplicit -Wreturn-type -Wno-sign-compare -Wno-invalid-offsetof -g -DUNICODE -I. -I. -I.. -DHAVE_CONFIG_H -c regex.c In file included from regex.c:85: regex_internal.c:46: error: `reg_errcode_t re_string_allocate' redeclared as different kind of symbol regex_internal.h:383: error: previous declaration of `reg_errcode_t re_string_allocate(re_string_t*, const char*, int, int, char*, int, const re_dfa_t*)' For more details about the g++ problem, please see Sam Steingold's bug report . These days there's no longer any reason for regex to use K&R function definition syntax, so I'm installing the attached patch into gnulib. Can you please propagate this into glibc? Thanks. -- Summary: regex uses old-style definitions that cause g++ to fail Product: glibc Version: 2.3.5 Status: NEW Severity: normal Priority: P2 Component: regex AssignedTo: gotom at debian dot or dot jp ReportedBy: eggert at gnu dot org CC: glibc-bugs-regex at sources dot redhat dot com,glibc- bugs at sources dot redhat dot com http://sources.redhat.com/bugzilla/show_bug.cgi?id=1220 ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.