Subject: pkg/34833: databases/libgda (sys_errlist)
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: Gilles Dauphin <dauphin@enst.fr>
List: pkgsrc-bugs
Date: 10/16/2006 10:20:00
>Number: 34833
>Category: pkg
>Synopsis: databases/libgda (sys_errlist)
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Oct 16 10:20:00 +0000 2006
>Originator: Gilles Dauphin
>Release: SunOS 5.10 i86pc
>Organization:
ENST
>Environment:
System: SunOS bi.enst.fr 5.10 Generic_Patch_118844-30 i86pc
>Description:
modern system have strerror
Solaris in LP64 don't have sys_errlist
>How-To-Repeat:
bmake
>Fix:
--- libgda/gda-data-model-import.c.orig Tue Aug 29 15:23:27 2006
+++ libgda/gda-data-model-import.c Mon Oct 16 12:14:01 2006
@@ -476,7 +476,7 @@
model->priv->src.mapped.fd = open (model->priv->src.mapped.filename, O_RDONLY);
if (model->priv->src.mapped.fd < 0) {
/* error */
- add_error (model, sys_errlist [errno]);
+ add_error (model, strerror (errno));
return;
}
else {
@@ -485,7 +485,7 @@
if (fstat (model->priv->src.mapped.fd, &_stat) < 0) {
/* error */
- add_error (model, sys_errlist [errno]);
+ add_error (model, strerror (errno));
return;
}
model->priv->src.mapped.length = _stat.st_size;
@@ -494,7 +494,7 @@
model->priv->src.mapped.fd, 0);
if (model->priv->src.mapped.start == MAP_FAILED) {
/* error */
- add_error (model, sys_errlist [errno]);
+ add_error (model, strerror (errno));
model->priv->src.mapped.start = NULL;
return;
}