Error while compiling ipsec tools...What does PATH_IPSEC_H actually mean?
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
#incl开发者_如何学Goude 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:
#include "config.h"
#include <sys/types.h>
#include <sys/param.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include PATH_IPSEC_H
This indicates either that PATH_IPSEC_H
is defined by config.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.h
file 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.
精彩评论