Like I said in the title. I’m trying to compile libipsec right now and am having a world of difficulty (not using the C library it was intended to be compiled on). Many of my errors are caused from the line
#include PATH_IPSEC_H,but path_ipsec_h is never declared anywhere and It does not seem like a C keyword…
What does PATH_IPSEC_H actually mean? Would this line be equivalent to #include <ipsec.h>?
If I did not provide the correct information…sorry..I’m still new to this. Just tell me what you need to know.
Look for a file named
config.h, it is very likely to define this symbol to the proper value for your environment. I took a quick look in a randomly-chosen ipsec file, and it starts:This indicates either that
PATH_IPSEC_His defined byconfig.h, or passed in on the command line when compiling this file. The presence of the#include "config.h"line makes that (in my opinion, without any prior knowledge of this particular library) the most likely choice.Update: also, it’s very likely that this
config.hfile is created by some build-tool, i.e. it’s probably not there unless you’ve run the proper tool to generate it, typically after analyzing your environment.