Re: Dhcpcd 6.11.5 - did not receive 2 announcements after 3 unanswered probes (as RFC 5227)
Roy Marples
Fri Jan 11 12:41:16 2019
On 11/01/2019 11:32, Joakim Tjernlund wrote:
This is passed to configure: --includedir=/usr/include
That is exactly what the compiler then complains about.
So fix the build environment .... how I have no idea, but good luck!
> | ./configure: WARNING: unknown option --exec_prefix
> | ./configure: WARNING: unknown option --sharedstatedir
> | ./configure: WARNING: unknown option --oldincludedir
> | ./configure: WARNING: unknown option --with-libtool-sysroot
I think you have old autotool/libtool which was used to generate this configure.
--with-libtool-sysroot is a modern libtool feature, needed for cross building.
This is hand rolled configure - it's not GNU configure, autotool or libtool.
The way dhcpcd is configured and built works fine in Gentoo Portage
which is a cross build environment - all you really need to do is
specify your cross compiler with the CC env var or --CC= configure option.
These are not supported and passing --includedir=/usr/include may rely
on them working .... so yeah, remove --includedir=/usr/include from the
configure
Yes, why add /usr/include in the first place?
dhcpcd doesn't set it at all, it has to come from the outside.
netbsd$ pwd
/home/roy/src/dhcpcd
netbsd$ grep -ER "\/include|includedir|INCLUDEDIR" *
configure:INCLUDEDIR=
configure: -I|--includedir) INCLUDEDIR="$INCLUDEDIR${INCLUDEDIR:+
}-I$var";;
configure: --includedir=DIR C header files [PREFIX/include]
configure:if [ -n "$INCLUDEDIR" ]; then
configure: echo "CPPFLAGS+= $INCLUDEDIR" >>$CONFIG_MK
configure: if [ -e /usr/include/sha2.h ]; then
configure: elif [ -e /usr/include/sha256.h ]; then
netbsd$
> | ./configure: WARNING: unknown option --with-udev
You can't turn udev on explicitly, you can only turn it off.
"On" should be an option too and configure should fail if it doesn't find udev
As you wish:
https://roy.marples.name/git/dhcpcd.git/commit/?id=2baa28fe39f3c1e780f8b1585c0ca518241f9677
Roy
Archive administrator: postmaster@marples.name