Re: make buildworld for RELENG_5 failing on RELENG_5_3 in /usr/src/usr.sbin/syslogd, _PATH_LOG_PRIV not defined

From: Kris Kennaway (kris_at_obsecurity.org)
Date: 01/16/05

  • Next message: Jason Morgan: "Re: USB mouse not working"
    Date: Sun, 16 Jan 2005 09:37:58 -0800
    To: Steve Hodgson <steve@acidy.com>
    
    
    

    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 compile the
    > RELENG_5 sources. I've been cvsupping now for about a week and continuing to
    > get the same error when we get to syslogd.
    >
    > /usr/src/usr.sbin/syslogd/syslogd.c:141: error: `_PATH_LOG_PRIV' undeclared
    > here (not in a function)
    > /usr/src/usr.sbin/syslogd/syslogd.c:141: error: initializer element is not
    > constant
    > /usr/src/usr.sbin/syslogd/syslogd.c:141: error: (near initialization for
    > `funix_secure.name')
    > /usr/src/usr.sbin/syslogd/syslogd.c:142: error: initializer element is not
    > constant
    > /usr/src/usr.sbin/syslogd/syslogd.c:142: error: (near initialization for
    > `funix_secure.next')
    >
    > If I apply the following patch then buildworld continues to completion. Note
    > the same error appears in libc and the patch fixes that as well. Judging by
    > the build logs and lack of others complaining I'm the only one with this
    > problem, so clearly this isn't the correct solution, but it works for me.
    >
    > --- /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, mark
    > */
    > #define TTYMSGTIME 1 /* timeout passed to ttymsg */
    > +#define _PATH_LOG_PRIV "/var/run/logpriv"
    >
    > #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 @@
    >
    > #include "libc_private.h"
    >
    > +#define _PATH_LOG_PRIV "/var/run/logpriv"
    > +
    > static int LogFile = -1; /* fd for log */
    > static int status; /* connection status */
    > static int opened; /* have done openlog() */
    >
    > Any ideas on what could be wrong with my system? FYI In general I use ccache
    > but i've disabled it for this run, by editing out the commands
    > in /etc/make.conf.

    Try

    make cleandir
    make cleandir
    make buildworld

    Kris

    
    


    • application/pgp-signature attachment: stored

  • Next message: Jason Morgan: "Re: USB mouse not working"

    Relevant Pages

    • Re: make buildworld for RELENG_5 failing on RELENG_5_3 in /usr/src/usr.sbin/syslogd, _PATH_LOG_PRIV
      ... On Sunday 16 January 2005 17:37, Kris Kennaway wrote: ... >> If I apply the following patch then buildworld continues to completion. ... >> Note the same error appears in libc and the patch fixes that as well. ... > make cleandir ...
      (freebsd-stable)
    • Re: Cannot rebuild Sendmail (with sasl2)
      ... Running the 'make cleandir' twice seems to have gotten us past that hangup. ... Now the buildworld and buildkernel and installkernel all worked. ... building Sendmail from /usr/src/usr.sbin/sendmail gives the old error message ... > newmail# cvsup standard-supfile ...
      (freebsd-questions)
    • Re: Cannot rebuild Sendmail (with sasl2) **FIXED**
      ... I will probably be putting FBSD in where I have other linux installations as the hardware gets replaced. ... Cannot rebuild Sendmail ... last buildworld and stored in /usr/obj) you have to set in your shell's ...
      (freebsd-questions)
    • Re: segfaults when building world
      ... > src I grabbed the first time. ... and another time while `make cleandir` in ... when I buildworld it will exit at different points. ... > I was sure it was a hardware issue, now I am completely out of options! ...
      (freebsd-questions)
    • Re: Strange make buildworld behaviour with 5.4-RELEASE ( amd64 )
      ... know how to best go about fixing it. ... Shouldn't it have been deleted by make cleandir or ... make cleanworld? ... Im running another buildworld to test with the file deleted. ...
      (freebsd-stable)