dhcpcd-discuss

Build error on CentOS 7

Kristopher John Gamrat

Fri Feb 08 03:17:39 2019

---------------------> PLEASE REPLY BELOW THIS MESSAGE <---------------------

I am running CentOS 7 and I have been able to successfully build dhcpcd 
v7.0.8, though I had to manually install the hooks as make failed here. With 
dhcpcd v7.1.0 and v7.1.1, I am seeing a complete failure to build. The output 
from `make` is pasted below, along with the output of `uname -a` and 
`gcc --version`. Near the bottom of make's output, you'll see a message 
related to the hooks, which is the same error I got from 7.0.8, though this I 
can work around manually if needed.

[piki@localhost]~/rpmbuild/SOURCES/dhcpcd-7.1.1% make
for x in src hooks; do cd $x; make all; cd ..; done
make[1]: Entering directory `/home/piki/rpmbuild/SOURCES/dhcpcd-7.1.1/src'
cc -O2 -std=c99 -DHAVE_CONFIG_H -DNDEBUG -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DINET -DARP -DARPING -DIPV4LL -DINET6 -DDHCP6 -DAUTH -I.. -I../src -I./crypt -c 
if-linux.c -o if-linux.o
if-linux.c: In function ‘if_opensockets_os’:
if-linux.c:318:27: error: ‘SOL_NETLINK’ undeclared (first use in this 
function)
  setsockopt(ctx->link_fd, SOL_NETLINK, NETLINK_BROADCAST_ERROR,
                           ^
if-linux.c:318:27: note: each undeclared identifier is reported only once for 
each function it appears in
make[1]: *** [if-linux.o] Error 1
make[1]: Leaving directory `/home/piki/rpmbuild/SOURCES/dhcpcd-7.1.1/src'
make[1]: Entering directory `/home/piki/rpmbuild/SOURCES/dhcpcd-7.1.1/hooks'
make[1]: *** ..//: Is a directory.  Stop.
make[1]: Leaving directory `/home/piki/rpmbuild/SOURCES/dhcpcd-7.1.1/hooks'
[piki@localhost]~/rpmbuild/SOURCES/dhcpcd-7.1.1% uname -a
Linux localhost.localdomain 4.20.6-1.el7.elrepo.x86_64 #1 SMP Thu Jan 31 
08:20:26 EST 2019 x86_64 x86_64 x86_64 GNU/Linux
[piki@localhost]~/rpmbuild/SOURCES/dhcpcd-7.1.1% gcc --version
gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-36)
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	

-- 
Kristopher Gamrat
Jabber ID: chaotickjg@xxxxxxxxxx
My OpenPGP Key Fingerprints:
CBB4 4C0B 7794 F668 D486 9B68 02C0 8EE2 7F03 0E92

May you be blessed by Our Holy Glob the FSM.

----------------------------- FRIENDLY REMINDER -----------------------------

> On Tuesday, January 02, 2666 at 12:02:46 PM, Kris said:
> > 
> > On Monday, January 01, 2666 at 13:13:13 PM, Kris' Evil Twin said:
> > > 
> > > Why do you want me to reply below quotes?
> > 
> > > On Sunday, December 31, 2665 at 10:32:46 AM, Kris said:
> > > > 
> > > > Please reply below quotes.
> > > > 
> > Because:
> >  * it helps avoid confusing email quotes like this example
> >  * it makes it easier to match the quote dates to the quotes
> >  * it makes it easier for us to truncate quotes without messing up the
> >    quote dates or the ordering of the quotes
> >  * it makes it easier for the me to see what you are replying to (because
> >    it's the very first thing I see in your message)
> >  * it makes it easier for me to reference the quote of your message when I
> >    am typing my reply (because it's the last thing in your message and
> >    immediately above where my email client has me type my message)
> > 
> > Thank you for understanding.
> > 

---------------------> PLEASE REPLY BELOW THIS MESSAGE <---------------------

Attachment: signature.asc
Description: This is a digitally signed message part.


Follow-Ups:
Re: Build error on CentOS 7Roy Marples
Re: Build error on CentOS 7Roy Marples
Archive administrator: postmaster@marples.name