Saturday, January 10, 2009

LFS 6.4 surprises

Due to LFS 6.4 using gcc-4.3.2 and glibc-2.8 there are surprises when compiling many tried and true packages. Devs and hackers are unperturbed by this.

Good old dhcpcd-2.0.8 was able to compile with some patch motivated by glibc-2.8 / gcc-4.3 build failures like this:
(cat << EOF
Patch to resolve per
dhcpcd.c:182: error: 'LONG_MAX' undeclared (first use in this function)
dhcpcd.c:182: error: (Each undeclared identifier is reported only once
dhcpcd.c:182: error: for each function it appears in.)
dhcpcd.c:182: error: 'LONG_MIN' undeclared (first use in this function)
dhcpcd.c:183: error: 'INT_MAX' undeclared (first use in this function)
dhcpcd.c:183: error: 'INT_MIN' undeclared (first use in this function)

*** a/src/dhcpcd.c 2009-01-10 16:11:40.000000000 -0500
--- b/src/dhcpcd.c 2009-01-10 16:13:17.000000000 -0500
***************
*** 36,37 ****
--- 36,38 ----
#include <ctype.h>
+ #include <limits.h>
#include "pathnames.h"
EOF
) | patch -Np1

But instead, I installed dhcpcd-4.0.7. The configurations are in different places, but worked fine as installed by the instructions from Development BLFS.
project page for dhcpcd

1 Comments:

Blogger Unknown said...

It worked!!!!

Thanks a lot!

December 12, 2011 at 4:14 PM  

Post a Comment

Subscribe to Post Comments [Atom]

Click blog title for the latest post