Menu

#2 uClibc compatibility

open
nobody
None
5
2006-08-30
2006-08-30
No

I've attempted to compile diald-1.0-r1 in a uClibc and
it doesn't compile (attempted on a uClibc Gentoo).
Currently the compilation failure relates to the following:
log.c: In function `xstrerror':
log.c:23: error: `sys_nerr' undeclared (first use in
this function)
log.c:24: error: `sys_errlist' undeclared (first use in
this function)

uClibc's stdlib.h has the following related entries:
#ifdef __UCLIBC_HAS_SYS_ERRLIST__
/* These variables normally should not be used
directly. The `strerror'
function provides all the needed functionality. */
#ifdef __USE_BSD
extern int sys_nerr;
extern __const char *__const sys_errlist[];
#endif
#endif /* __UCLIBC_HAS_SYS_ERRLIST__ */

Most uClibc systems are built without
__UCLIBC_HAS_SYS_ERRLIST__ . This may be just one of
many incompatibilities, but if it is the only
incompatibility, replacing (as suggested above) with
strerror may produce full compatibility, which would be
a great new feature for diald.

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.