Re: Problem compiling beta2 under Linux

From: Roberto Lumbreras Pastor <rover@dont-contact.us>
Date: Wed, 18 Sep 1996 02:03:45 +0200 (MET DST)

On Tue, 17 Sep 1996, Stephane Bortzmeyer wrote:

: Date: Tue, 17 Sep 96 14:59:35 +0200
: From: Stephane Bortzmeyer <bortzmeyer@pasteur.fr>
: To: Lars Marowsky-Bree <lmb@pointer.in-minden.de>
: Cc: squid-users@nlanr.net
: Subject: Re: Problem compiling beta2 under Linux
: Resent-Date: Tue, 17 Sep 1996 06:00:21 -0700 (PDT)
: Resent-From: squid-users@nlanr.net
:
: On Tuesday 17 September 96, at 7 h 26, the keyboard of Lars Marowsky-Bree
: <lmb@pointer.in-minden.de> wrote:
:
: > util.c: In function xstrerror':
: > util.c:444: sys_errlist' undeclared (first use this function)
:
: I didn't check Squid code but sys_errlist is declared on most (all?)
: Unices in /usr/include/errno.h. The Linux boxes have it, unless badly
: scrambled.
:
: In Squid 1.1 alpha, lib/util.c included errno.h. Check if it is still the
: case.
:

Here is my /usr/include/errno.h:

---
#ifndef _ERRNO_H
#define _ERRNO_H
#include <features.h>
#include <linux/errno.h>
#ifdef  __USE_BSD
extern int sys_nerr;
extern char *sys_errlist[];
#endif
#ifdef  __USE_GNU
extern int _sys_nerr;
extern char *_sys_errlist[];
#endif
---
And in /usr/include/features.h:
---
...
#ifdef  _BSD_SOURCE
#define __USE_BSD       1
#endif
...
#ifdef  _GNU_SOURCE
#define __USE_GNU       1
#endif
...
---
I think both _BSD_SOURCE and _GNU_SOURCE aren't defined, so
__USE_BSD or __USE_GNU aren't defined in <features.h>... and then
sys_errlist is not declared in <errno.h> :-(
My includes are broken or _BSD_SOURCE and/or _GNU_SOURCE are missing
in squid?
Greetings,
--
Roberto Lumbreras Pastor                mailto:rover@lander.es
Lander Internet - Spain                 http://www.lander.es/
Tel +34 1 556.28.83                     Fax +34 1 556.30.01
Received on Tue Sep 17 1996 - 17:04:48 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:33:02 MST