This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug regex/1220] New: regex uses old-style definitions that cause g++ to fail


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]