Project

Project ifchk

ifchk

Advisory 2005-0503
05/03/2005: ifchk-0.95b4 Linux Build Failure

Updates
06/18/2005: Added addendum to Solution section, below

Overview
I have received a report of ifchk-0.95b4 failing to compile under the following build environment:

Test Environment
Arch:   x86
Dist:   Gentoo Linux
Kernel: 2.4.28 (gentoo-sources-2.4.28-r8)
CC:     gcc 3.3.5-20050130
Libc:   glibc 2.3.4
Note that other hardware/software combinations may also exhibit compilation failure. I have not, however, received any other such reports.

Description
make(1) output, detailing the failed build, is available here.
If you are seeing this output, or something similar, follow the instructions in the "Solution" section, directly below.

Solution
Insert the <linux/types.h> include directive, highlighted below, at line 58 of the ~/ifchk-0.95b4/linux.h header file:
<... lines removed ...>
#include <sys/socket.h>
#include <net/if.h>
#include <linux/types.h> <--- insert the #include here (linux.h:line 58:)
#include <linux/rtnetlink.h>
<... lines removed ...>
If your build still fails, insert the <linux/types.h> include directive at line 53, instead:
<... lines removed ...>
#include <errno.h>
#include <sys/stat.h>
#include <linux/types.h> <--- insert the #include here (linux.h:line 53:)
#include <sys/types.h>
<... lines removed ...>
Make no other modifications to the file.
Once the above include directive has been added, do `make clean` and then `make` from within the ~/ifchk-0.95b4 directory, to recompile.

If your build still fails, please send a detailed description of the problem(s) you have having to engineer@noorg.org.

About | Contact | FAQ | Publications | Resume | Software | Speaking | Noorg

Copyright © 1998-2008 Noorg, Inc.
All Rights Reserved.