Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 16 Jan 2005 09:37:58 -0800
From:      Kris Kennaway <kris@obsecurity.org>
To:        Steve Hodgson <steve@acidy.com>
Cc:        freebsd-stable@freebsd.org
Subject:   Re: make buildworld for RELENG_5 failing on RELENG_5_3 in /usr/src/usr.sbin/syslogd, _PATH_LOG_PRIV not defined
Message-ID:  <20050116173758.GA70598@xor.obsecurity.org>
In-Reply-To: <200501161422.05929.steve@acidy.com>
References:  <200501161422.05929.steve@acidy.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--2fHTh5uZTiUOsy+g
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Sun, Jan 16, 2005 at 02:22:05PM +0000, Steve Hodgson wrote:
> I'm getting the following error on a RELENG_5_3 box when trying to compil=
e the=20
> RELENG_5 sources. I've been cvsupping now for about a week and continuing=
 to=20
> get the same error when we get to syslogd.
>=20
> /usr/src/usr.sbin/syslogd/syslogd.c:141: error: `_PATH_LOG_PRIV' undeclar=
ed=20
> here (not in a function)
> /usr/src/usr.sbin/syslogd/syslogd.c:141: error: initializer element is no=
t=20
> constant
> /usr/src/usr.sbin/syslogd/syslogd.c:141: error: (near initialization for=
=20
> `funix_secure.name')
> /usr/src/usr.sbin/syslogd/syslogd.c:142: error: initializer element is no=
t=20
> constant
> /usr/src/usr.sbin/syslogd/syslogd.c:142: error: (near initialization for=
=20
> `funix_secure.next')
>=20
> If I apply the following patch then buildworld continues to completion. N=
ote=20
> the same error appears in libc and the patch fixes that as well. Judging =
by=20
> the build logs and lack of others complaining I'm the only one with this=
=20
> problem, so clearly this isn't the correct solution, but it works for me.
>=20
> --- /usr/src/usr.sbin/syslogd/syslogd.c.old       Sun Jan 16 12:16:25 2005
> +++ /usr/src/usr.sbin/syslogd/syslogd.c   Sun Jan 16 12:17:53 2005
> @@ -74,6 +74,7 @@
>  #define DEFSPRI                (LOG_KERN|LOG_CRIT)
>  #define TIMERINTVL     30              /* interval for checking flush, m=
ark=20
> */
>  #define TTYMSGTIME     1               /* timeout passed to ttymsg */
> +#define       _PATH_LOG_PRIV  "/var/run/logpriv"
>=20
>  #include <sys/param.h>
>  #include <sys/ioctl.h>
> --- /usr/src/lib/libc/gen/syslog.c.old    Sun Jan 16 14:12:49 2005
> +++ /usr/src/lib/libc/gen/syslog.c        Sun Jan 16 13:03:41 2005
> @@ -60,6 +60,8 @@
>=20
>  #include "libc_private.h"
>=20
> +#define       _PATH_LOG_PRIV  "/var/run/logpriv"
> +
>  static int     LogFile =3D -1;           /* fd for log */
>  static int     status;                 /* connection status */
>  static int     opened;                 /* have done openlog() */
>=20
> Any ideas on what could be wrong with my system? FYI In general I use cca=
che=20
> but i've disabled it for this run, by editing out the commands=20
> in /etc/make.conf.

Try

make cleandir
make cleandir
make buildworld

Kris
--2fHTh5uZTiUOsy+g
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (FreeBSD)

iD8DBQFB6qZ2Wry0BWjoQKURAuAPAKCSaui8R84rwzyK+BRBsXA2a1omYwCg9u6a
3HVBbbc1s/1nN8rAKBIRpHI=
=uYS8
-----END PGP SIGNATURE-----

--2fHTh5uZTiUOsy+g--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050116173758.GA70598>