[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Darwin/OSX patches to fix compile
From: |
Iain Morgan |
Subject: |
Re: Darwin/OSX patches to fix compile |
Date: |
Tue, 30 Mar 2004 16:51:29 -0800 (PST) |
On Tue Mar 23 00:16:41 2004, Mark.Burgess@iu.hio.no wrote:
>
>
> Can the Darwin users please confirm this? Since this patch came
> from Darwin users...
>
> M
>
> On 22 Mar, Cove Schneider wrote:
> > I had to add a couple of includes to get cfengine-2.1.3 to compile
> > under Panther.
> >
>
Hi Mark,
As no one seems to have replied to the list on this issue, here are my results.
Under 10.2.8, a compile of cfengine v2.1.3 fails with the following error:
gcc -DHAVE_CONFIG_H -I. -I. -I. -I/Users/imorgan/build/include -I/usr/include
-g -O2 -Wreturn-type -Wmissing-prototypes -Wuninitialized -g -O2
-I/Users/imorgan/build/include -g -O2 -I/Users/imorgan/build/include -c
image.c
image.c: In function `CopyReg':
image.c:1584: `_PATH_RSRCFORKSPEC' undeclared (first use in this function)
and
gcc -DHAVE_CONFIG_H -I. -I. -I. -I/Users/imorgan/build/include -I/usr/include
-g -O2 -Wreturn-type -Wmissing-prototypes -Wuninitialized -g -O2
-I/Users/imorgan/build/include -g -O2 -I/Users/imorgan/build/include -c
filenames.c
filenames.c: In function `MakeDirectoriesFor':
filenames.c:352: `_PATH_RSRCFORKSPEC' undeclared (first use in this function)
filenames.c:352: (Each undeclared identifier is reported only once
filenames.c:352: for each function it appears in.)
filenames.c:507: `_PATH_FORKSPECIFIER' undeclared (first use in this function)
These missign symbols can be resolved by including <sys/paths.h> (or <paths.h>).
Adding '#include <paths.h>' to image.c and filenames.c addressed the issue.
--
Iain Morgan
NAS Desktop Support Group