After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 353729 - libgda uses sys_errlist, which should not be used directly.
libgda uses sys_errlist, which should not be used directly.
Status: RESOLVED FIXED
Product: libgda
Classification: Other
Component: general
1.9.x
Other All
: Normal normal
: ---
Assigned To: Rodrigo Moya
gnome-db Maintainers
Depends on:
Blocks:
 
 
Reported: 2006-08-31 20:03 UTC by Joseph Sacco
Modified: 2006-12-27 17:52 UTC
See Also:
GNOME target: ---
GNOME version: 2.15/2.16


Attachments
proposed patch to replace sys_err with strerror() (985 bytes, patch)
2006-08-31 20:23 UTC, Joseph Sacco
none Details | Review

Description Joseph Sacco 2006-08-31 20:03:44 UTC
libgda uses sys_errlist, which is deprecated in some distros and absent in others. Specifically, 

   libgda-1.9.102/libgda/gda-data-model-import.c


The following comment found in <stdio.h> on a current fedora/rawhide system suggests using strerror() instead:

/* Provide the declarations for `sys_errlist' and `sys_nerr' if they
   are available on this system.  Even if available, these variables
   should not be used directly.  The `strerror' function provides
   all the necessary functionality.  */

-Joseph
Comment 1 Joseph Sacco 2006-08-31 20:23:49 UTC
Created attachment 71982 [details] [review]
proposed patch to replace sys_err with strerror()

Attached is a proposed patch that replaces sys_err with strerror()

-Joseph
Comment 2 Murray Cumming 2006-12-27 17:52:42 UTC
Committed. Thanks. I guess we will see if this breaks the compilation for other systems. If so, it will need a configure check.

Please do patch the ChangeLog in future.