Trying to build dhcp 4.2.5 on Centos 6: missing include files
ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Trying to build dhcp 4.2.5 on Centos 6: missing include files
Hi Guys,
When using
Code:
rpmbuild -bs dhcp.spec
I end up with
Code:
.
.
.
In file included from ../includes/dhcpd.h:95,
from comapi.c:43:
../includes/omapip/isclib.h:64:24: error: dns/client.h: No such file or directory
In file included from ../includes/dhcpd.h:95,
from bpf.c:35:
../includes/omapip/isclib.h:64:24: error: dns/client.h: No such file or directory
In file included from ../includes/dhcpd.h:95,
from alloc.c:36:
../includes/omapip/isclib.h:64:24: error: dns/client.h: No such file or directory
In file included from ../includes/dhcpd.h:95,
from conflex.c:35:
../includes/omapip/isclib.h:64:24: error: dns/client.h: No such file or directory
../includes/omapip/isclib.h:77:22: error: dns/tsec.h: No such file or directory
.
.
.
The 2 files dns/client.h & dns/tsec.h do not appear to be in the include dirs in Centos 6 and I do have bind-devel-9.8.2-0.17.rc1.el6_4.6.x86_64
installed.
Ah yes, guess I didn't make that clear.
We got it from the f19 source.
I know that's ahead of the Centos repos, but we wanted as up to date a version as possible, and even then we're going to add some inhouse patches.
I'm just trying to get the official release code to build before I do that....
I'm not very experienced in this area, so I'm learning as I go.
At the moment, it looks like we'll need to first download/build 'bind-lite-devel' as mentioned in the F19 spec (see attached). It seems the bind-devel on Centos 6.4 doesn't include the 'lite' content and its not in the usual repos.
I'm off to do some reading on this whole area (imagine the book reading icon here)
Yeah, me too (glib). I can't see us going that far...
The target is definitely RHEL/Centos v6.x for prod use.
Actually, it should really just be the ISC issued dhcpd server plus any RH patches.
We may have to backup a bit version wise, but the only way to really know is to try.
Shame about the bind-lite-devel thing; it appears to be the only issue atm (of course when I get past that ... )
It's probably worth doing some reading .. sometimes the packages take advantage of new features which may not be present on your CentOS 6 box. I'd try compiling from source first to work out exactly what options you want to use, if I get time today I'll have a play and let you know if I find anything useful.
I built one from scratch that you should be able to modify as required, you'll need to add init scripts and tidy up descriptions etc... it's obviously not as polished as a Fedora/RHEL package so YMMV
macros (I think they're called?).
I can't easily google it; don't know the terminology for that.
At the moment, I want to exclude a lot of the build content from being built. I'm sure I should be able to turn it off at the top, but atm, I'm just commenting out lots of lines further down.
I'm building a pre-req pkg first, so we get Centos compatible FC libs, which I'll then give to the target dhcp build to use.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.