[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: How to get rid of sys_errlist and sys_nerr?



Michael B Allen writes:
>> Why does libldap need these symbols?

STRERROR() needs either sys_errlist + sys_nerr or strerror(), and it
prefers the former since the latter may not be thread-safe.  (Ought to
switch to use strerror_r() when someone feels like using time on it,
but...)

If you run configure on a system with sys_errlist, it'll use that.  To
prevent it, run make distclean to get rid of the old build and then (I
think)

  ./configure --<your config params> ol_cv_have_sys_errlist=no

Or distclean and then run configure on a system without the offending
symbols.

-- 
Hallvard