Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 04-26-2006, 12:58 PM   #1
LQ Newbie
Registered: Apr 2006
Posts: 1

Rep: Reputation: 0
compilation question


I'm using IPSec features on Linux (redhat I'm doing include of "pfkeyv2.h" and some other IPsec related files. Now these files are part of rpm 2.6.9-11.EL-i686 on one my linux host and rpm 2.6.9-5.EL-i686 on other linux host. Thus after installing correspondent rpms on one host I need to give the compiler the directory
on the other host.
Of course I want to compile with the same makefile on all hosts. Now the question is how I merge the contents of
to the standard /usr/include directories.
Old 04-26-2006, 05:50 PM   #2
Registered: May 2003
Location: S.F. Bay Area
Distribution: Ubuntu 9.04 AMD64
Posts: 595

Rep: Reputation: 30
Well, you could make symlinks in /usr/include to the IPsec kernel headers, but having kernel headers in /usr/include for user programs isn't advocated or promoted and definitely discouraged.

I would suggest dealing with this in the makefile and have a macro for the kernel release so your gcc flag reads something like:


Then set KERNELVERSION to 2.6.9-11 or 2.6.9-5 in the makefile. Or you could do it through the environment, like this:

$ KERLNELVERSION=2.6.9-11 make blah

You get the idea.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Cross-Compilation Question lucky6969b Linux - Software 0 12-01-2005 08:31 PM
kernel compilation question plisken Linux - General 12 12-09-2004 03:04 PM
Kernel compilation question spotz78 Linux - Newbie 2 10-07-2004 09:47 AM
ask one question about the compilation china_forrest Programming 12 12-18-2003 11:01 PM
Compilation question. noelcantona Linux - Newbie 2 09-23-2003 12:22 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:05 AM.

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