dhcpcd-discuss

compile error dhcpcd 6.3.2

Olaf Westrik

Thu Apr 17 09:27:12 2014

Hi,


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?


Configure output:
configure args: --prefix=/usr --sysconfdir=/etc --dbdir=/var/run
Deriving operating system from ... i686-unknown-linux
Configuring dhcpcd for ... linux
Using compiler .. cc
cc (GCC) 4.4.5
dhcpcd-definitions.conf will be embedded in dhcpcd itself
Testing for getifaddrs ... yes
Testing for arc4random ... no
Testing for closefrom ... no
Testing for getline ... yes
Testing for strlcpy ... no
Testing for TAILQ_FOREACH_SAFE ... no
Testing for TAILQ_CONCAT ...yes
Testing for posix_spawn ... yes
Testing for pollts ... no
Testing for ppoll ... yes
Testing for MD5Init ... no
Checking for libudev ... yes
Checking udev_monitor_filter_add_match_subsystem_devtype ... yes
Checking udev_device_get_is_initialized ... yes
Checking for ntpd ... /usr/bin/ntpd (50-ntp.conf)
Checking for ypind ... not found

   SYSCONFDIR =         /etc
   SBINDIR =            /usr/sbin
   LIBDIR =             /usr/lib
   LIBEXECDIR =         /usr/libexec
   DBDIR =              /var/run
   RUNDIR =             /var/run
   MANDIR =             /usr/share/man
   HOOKSCRIPTS =        50-ntp.conf



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


Olaf


Follow-Ups:
Re: compile error dhcpcd 6.3.2Roy Marples
Archive administrator: postmaster@marples.name