public inbox for glibc-bugs-regex@sourceware.org
help / color / mirror / Atom feed
* [Bug regex/1220] New: regex uses old-style definitions that cause g++ to fail
@ 2005-08-20  7:26 eggert at gnu dot org
  2005-08-20  7:26 ` [Bug regex/1220] " eggert at gnu dot org
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: eggert at gnu dot org @ 2005-08-20  7:26 UTC (permalink / raw)
  To: glibc-bugs-regex

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
<http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00096.html>.

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.


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2006-04-25 18:01 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-08-20  7:26 [Bug regex/1220] New: regex uses old-style definitions that cause g++ to fail eggert at gnu dot org
2005-08-20  7:26 ` [Bug regex/1220] " eggert at gnu dot org
2005-08-20  7:28 ` eggert at gnu dot org
2005-08-20  7:32 ` eggert at gnu dot org
2005-08-21  0:25 ` eggert at gnu dot org
2005-08-23 18:28 ` eggert at gnu dot org
2005-08-31 22:43 ` eggert at gnu dot org
2005-09-06 18:04 ` drepper at redhat dot com
2005-09-06 18:11 ` drepper at redhat dot com
2006-04-19 17:43 ` bruno at clisp dot org
2006-04-19 17:44 ` bruno at clisp dot org
2006-04-25 18:01 ` drepper at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).