supervision - discussion about system services, daemon supervision, init, runlevel management, and tools such as s6 and runit
 help / color / mirror / Atom feed
* ucspilogd does not compile on FreeBSD 4.11
@ 2005-02-02 16:57 Joan Picanyol i Puig
  2005-02-03  0:01 ` Laurent Bercot
  0 siblings, 1 reply; 2+ messages in thread
From: Joan Picanyol i Puig @ 2005-02-02 16:57 UTC (permalink / 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


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: ucspilogd does not compile on FreeBSD 4.11
  2005-02-02 16:57 ucspilogd does not compile on FreeBSD 4.11 Joan Picanyol i Puig
@ 2005-02-03  0:01 ` Laurent Bercot
  0 siblings, 0 replies; 2+ messages in thread
From: Laurent Bercot @ 2005-02-03  0:01 UTC (permalink / raw)


> 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

 Ah, the joy of non-self-contained header files. FreeBSD, my love.

 Thanks for the report ; I'll release a new ucspilogd version soon.

-- 
 Ska


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-02-03  0:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-02-02 16:57 ucspilogd does not compile on FreeBSD 4.11 Joan Picanyol i Puig
2005-02-03  0:01 ` Laurent Bercot

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).