dhcpcd-discuss

Re: compile error dhcpcd 6.3.2

Roy Marples

Thu Apr 17 10:07:12 2014

Hi

On 17/04/2014 10:27, Olaf Westrik wrote:
Trying to update to 6.3.2 I ran into following trouble:
make[1]: Entering directory `/usr/src/dhcpcd-6.3.2'
cc  -Os -march=i486 -mtune=pentium -pipe -fomit-frame-pointer -Wall
-Wextra -std=c99 -D_BSD_SOURCE -D_XOPEN_SOURCE=700 -DINET -DINET6
-DPLUGIN_DEV -I./crypt -c common.c -o common.o
cc  -Os -march=i486 -mtune=pentium -pipe -fomit-frame-pointer -Wall
-Wextra -std=c99 -D_BSD_SOURCE -D_XOPEN_SOURCE=700 -DINET -DINET6
-DPLUGIN_DEV -I./crypt -c control.c -o control.o
cc  -Os -march=i486 -mtune=pentium -pipe -fomit-frame-pointer -Wall
-Wextra -std=c99 -D_BSD_SOURCE -D_XOPEN_SOURCE=700 -DINET -DINET6
-DPLUGIN_DEV -I./crypt -c dhcpcd.c -o dhcpcd.o
dhcpcd.c: In function 'main':
dhcpcd.c:1374: error: 'O_CLOEXEC' undeclared (first use in this function)
dhcpcd.c:1374: error: (Each undeclared identifier is reported only once
dhcpcd.c:1374: error: for each function it appears in.)
make[1]: *** [dhcpcd.o] Error 1


Some poking around tells me O_CLOEXEC is there, but needs __USE_GNU.
However for reasons beyond me, looks like configure thinks I have BSD?

_BSD_SOURCE is defined so that the BSD UDP header definitons are used.
Can you try adding this line in the include section at the top of dhcpcd.c please?

#include <fcntl.h>

Help. My autoconf/automake foo is barred away somewhere :-)

It's not auto anything. I rolled it myself.

Thanks

Roy

Follow-Ups:
Re: compile error dhcpcd 6.3.2Olaf Westrik
Re: compile error dhcpcd 6.3.2Olaf Westrik
References:
compile error dhcpcd 6.3.2Olaf Westrik
Archive administrator: postmaster@marples.name