[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug-grep] [bugs #12187] old lib/error.c garbles error messages on some
From: |
anonymous |
Subject: |
[bug-grep] [bugs #12187] old lib/error.c garbles error messages on some systems |
Date: |
Wed, 2 Mar 2005 03:22:49 +0000 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; rv:1.7.3) Gecko/20040914 Firefox/0.10 |
URL:
<http://savannah.gnu.org/bugs/?func=detailitem&item_id=12187>
Summary: old lib/error.c garbles error messages on some
systems
Project: grep
Submitted by: None
Submitted on: Tue 03/01/2005 at 22:22
Category: None
Severity: 5 - Average
Item Group: None
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
_______________________________________________________
Details:
lib/error.c contains old configuration checks for strerror_r, and it assumes
that strerror_r should return char*, while now the standard is to return
int.
This conjunction can cause a conflict with the strerror_r provided by the
host, and error messages printed through the error() function can get
garbled, because the return value of strerror_r is passed to printf to fill a
%s.
The quick solution is to remove references to lib/error.c and lib/error.h in
the package, and use the functions already available in the system.
A better solution for the long term would be to fix the configure script and
update from gnulib.
Claudio
_______________________________________________________
This item URL is:
<http://savannah.gnu.org/bugs/?func=detailitem&item_id=12187>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [bug-grep] [bugs #12187] old lib/error.c garbles error messages on some systems,
anonymous <=