trouble compiling 4.1.0p1

Chris Buxton cbuxton at menandmice.com
Fri Aug 7 18:06:28 UTC 2009


On Aug 7, 2009, at 4:22 AM, Ruben Laban wrote:
> On Friday 07 August 2009 at 09:07 (CET), Chris Buxton wrote:
>> I'm having a devil of a time compiling DHCP 4.1.0p1 on Ubuntu Linux.
>> It's a stock install of Ubuntu 9.04 (32-bit). The toolchain is the
>> standard for this distro version, based around gcc-4.3.3.
>>
>> Here's what I'm executing:
>>
>>      ./configure \
>>          --prefix=/usr \
>>          --sysconfdir=/etc \
>>          --localstatedir=/var \
>>          --with-srv-lease-file=/var/dhcp4/dhcpd.leases \
>>          --with-srv6-lease-file=/var/dhcp4/dhcpd6.leases \
>>          --with-cli-lease-file=/var/dhcp4/dhclient.leases \
>>          --with-cli6-lease-file=/var/dhcp4/dhclient6.leases
>>      make
>
> I ran into this as well. After lots of searching on google I found the
> following solution/workaround:
>
> CFLAGS="-D_GNU_SOURCE" ./configure --your-params
> make
>
> This results in a successful built for me. Been meaning to give it a  
> try to
> package it for Debian/Ubuntu, but haven't had the time yet.

Thanks for the tip. While that does work, setting CFLAGS means you  
completely override the default CFLAGS (-g -O2  -Wall -Werror -fno- 
strict-aliasing) with the new value (-D_GNU_SOURCE). I'm uncomfortable  
with this.

I'll give the beta version a try, as suggested by Luka.

Chris Buxton
Professional Services
Men & Mice




More information about the dhcp-users mailing list