supervision - discussion about system services, daemon supervision, init, runlevel management, and tools such as s6 and runit
 help / color / mirror / Atom feed
From: Joan Picanyol i Puig <lists-supervision@biaix.org>
Subject: ucspilogd does not compile on FreeBSD 4.11
Date: Wed, 2 Feb 2005 17:57:58 +0100	[thread overview]
Message-ID: <20050202165757.GA13501@grummit.biaix.org> (raw)

Hi,

It fails with:

./compile ucspilogd.c
In file included from ucspilogd.c:2:
/usr/include/syslog.h:88: `NULL' undeclared here (not in a function)
/usr/include/syslog.h:88: initializer element is not constant
/usr/include/syslog.h:88: (near initialization for `prioritynames[12].c_name')
/usr/include/syslog.h:153: `NULL' undeclared here (not in a function)
/usr/include/syslog.h:153: initializer element is not constant
/usr/include/syslog.h:153: (near initialization for `facilitynames[24].c_name')
*** Error code 1

Stop in /fs/apps/mount/usr/local/package/admin/ucspilogd-0.35/compile/ucspilogd.

Including <stdio.h> before <syslog.h> does the trick; FYI NULL is
defined in the following places on FreeBSD 4.11:

537,p0,0$ grep -Rl '#define[[:space:]]*NULL[[:space:]]*0' /usr/include/
/usr/include/sys/param.h
/usr/include/stddef.h
/usr/include/stdio.h
/usr/include/stdlib.h
/usr/include/string.h
/usr/include/time.h
/usr/include/unistd.h
/usr/include/wchar.h
/usr/include/stand.h
/usr/include/dirent.h
/usr/include/locale.h

qvb
-- 
pica


             reply	other threads:[~2005-02-02 16:57 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-02-02 16:57 Joan Picanyol i Puig [this message]
2005-02-03  0:01 ` Laurent Bercot

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20050202165757.GA13501@grummit.biaix.org \
    --to=lists-supervision@biaix.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).