[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: cfengine-1.5.3 pthread compilation problem (FreeBSD 4.2)
From: |
Mark . Burgess |
Subject: |
Re: cfengine-1.5.3 pthread compilation problem (FreeBSD 4.2) |
Date: |
Fri, 12 Jan 2001 00:18:16 +0100 (MET) |
On 11 Jan, senanu wrote:
> I am trying to compile cfengine-1.5.3.these are the relevant details.
> uname -a
> FreeBSD 4.2-RELEASE FreeBSD 4.2-RELEASE #0: Mon Nov 20 13:02:55 GMT
> 2000 address@hidden:/usr/src/sys/compile/GENERIC i386
>
>
> pth-config --version
> GNU Pth 1.3.7 (29-Jul-2000)
>
> I am getting the following errors.
>
> gcc -c -I/usr/local/include -pthread -DHAVE_CONFIG_H cfd.c
> cfd.c: In function `SpawnConnection':
> cfd.c:533: `_SC_THREAD_STACK_MIN' undeclared (first use in this
> function)
> cfd.c:533: (Each undeclared identifier is reported only once
> cfd.c:533: for each function it appears in.)
> cfd.c: In function `BusyWithConnection':
> cfd.c:790: structure has no member named `__pthread_connect'
> cfd.c:836: structure has no member named `__pthread_connect'
> cfd.c: In function `CfGetFile':
> cfd.c:1756: structure has no member named `__pthread_connect'
> cfd.c:1759: structure has no member named `__pthread_connect'
> cfd.c:1775: structure has no member named `__pthread_connect'
> cfd.c:1779: structure has no member named `__pthread_connect'
> cfd.c:1786: structure has no member named `__pthread_connect'
> cfd.c:1790: structure has no member named `__pthread_connect'
> cfd.c:1791: structure has no member named `__pthread_connect'
> cfd.c:1799: structure has no member named `__pthread_connect'
> cfd.c:1800: structure has no member named `__pthread_connect'
> cfd.c:1807: structure has no member named `__pthread_connect'
> *** Error code 1
>
> Stop in /usr/local/src/cfengine/cfengine-1.5.3/src.
> *** Error code 1
>
> Stop in /usr/local/src/cfengine/44
>
> I am wondering whether anyone has had similar errors.
> If this is the case then what could I be doing wrong
> and is there a fix?
First of all, you shouldn't be trying to compile 1.5.3
at all. The latest version is 1.6.1 and 1.5.3 has a
nasty bug.
Someone told me that you need CFLAGS -pthread for FreeBSD,
but I'm not sure about this.
Look at http://www.iu.hio.no/cfengine
Mark
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Work: +47 22453272 Email: address@hidden
Fax : +47 22453205 WWW : http://www.iu.hio.no/~mark
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~