LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 10-18-2013, 12:14 AM   #1
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
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.

Can anyone help me fix this?
Thanks...
 
Old 10-18-2013, 02:31 AM   #2
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
Did you create this package or are you just rebuilding an existing one? .. can you post the spec?
 
Old 10-19-2013, 07:10 PM   #3
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Original Poster
Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
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)
Attached Files
File Type: txt dhcp.spec.f19.txt (97.8 KB, 174 views)
 
Old 10-19-2013, 07:34 PM   #4
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
Fedora srpm's on cent
That will be fun


i am betting that you will have to rebuild the entire dependency tree first
and hopefully ,glib will not be needed to be replaced .
 
Old 10-19-2013, 08:10 PM   #5
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Original Poster
Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
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 ... )
 
Old 10-20-2013, 05:08 PM   #6
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
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.
 
Old 10-20-2013, 07:52 PM   #7
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
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
Attached Files
File Type: txt dhcp.spec.txt (1.3 KB, 25 views)
 
Old 10-21-2013, 04:45 AM   #8
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Original Poster
Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
Thanks a lot, I'll have a play with it.
May be while till I get back though, got multiple projects on; you know how it goes...
 
Old 10-21-2013, 05:07 AM   #9
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
I do .. I do it to myself though, maybe I have ADD
 
Old 10-23-2013, 01:12 AM   #10
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Original Poster
Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
OK, I'm back on it...
Actually, I'd like to know how to read/ctrl
Code:
%{?!SDB:       %define SDB       0}
%{?!test:      %define test      0}
%{?!bind_uid:  %define bind_uid  25}
%{?!bind_gid:  %define bind_gid  25}
%{?!GSSTSIG:   %define GSSTSIG   1}
%{?!PKCS11:    %define PKCS11    1}
%{?!DEVEL:     %define DEVEL     1}
%define        bind_dir          /var/named
%define        chroot_prefix     %{bind_dir}/chroot
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Kickstart Centos 5.4 x86_64 missing files. DHCP/PXE/TFTP/HTTP. tdo896 Linux - Networking 3 12-20-2009 04:51 PM
Possibly missing /usr/include/linux header files.. how to fix? brfindla Debian 2 08-10-2009 11:21 AM
C Header files missing in /usr/include zorro_kwh Ubuntu 3 04-12-2008 06:57 PM
Mandriva 10.1 missing include (.h) files? Hosiah Mandriva 8 07-17-2005 11:06 PM
\X Windows include files missing GNUROCKS Linux - Newbie 3 06-10-2005 07:26 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 01:21 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration