syslog-node.c:2:10: fatal error: config.h: No such file or directory #include “config.h”
^~~~~~~~~~
compilation terminated.
1)Do you think there is some issue with the GO code where I need to add some flag to point it to the config.h?
2)Can you please guide me in the right direction to fix this compilation issue, as in where am i missing the piece of link ?
Here it includes the folder include but this doesn’t show then you ls above. Maybe you could change this path to point to the parent folder ./syslog-ng-3.6.2 or move config.h into a folder called include
In file included from /usr/local/include/syslog-ng/apphook.h:28:0,
from syslog-node.c:3:
/usr/local/include/syslog-ng/syslog-ng.h:58:14: error: unknown type name ‘gchar’
extern const gchar *module_path;
^~~~~
In file included from syslog-node.c:3:0:
/usr/local/include/syslog-ng/apphook.h:40:37: error: unknown type name ‘gint’; did you mean ‘uint’?
typedef void (*ApplicationHookFunc)(gint type, gpointer user_data);
^~~~
uint
/usr/local/include/syslog-ng/apphook.h:40:48: error: unknown type name ‘gpointer’
typedef void (*ApplicationHookFunc)(gint type, gpointer user_data);
^~~~~~~~
/usr/local/include/syslog-ng/apphook.h:42:32: error: unknown type name ‘gint’; did you mean ‘uint’?
void register_application_hook(gint type, ApplicationHookFunc func, gpointer user_data);
^~~~
uint
/usr/local/include/syslog-ng/apphook.h:42:43: error: unknown type name ‘ApplicationHookFunc’
void register_application_hook(gint type, ApplicationHookFunc func, gpointer user_data);
^~~~~~~~~~~~~~~~~~~
/usr/local/include/syslog-ng/apphook.h:42:69: error: unknown type name ‘gpointer’
void register_application_hook(gint type, ApplicationHookFunc func, gpointer user_data);
^~~~~~~~
In file included from syslog-node.c:5:0:
/usr/local/include/syslog-ng/tags.h:30:9: error: unknown type name ‘guint16’
typedef guint16 LogTagId;
^~~~~~~
/usr/local/include/syslog-ng/tags.h:43:37: error: unknown type name ‘gchar’
LogTagId log_tags_get_by_name(const gchar *name);
^~~~~
/usr/local/include/syslog-ng/tags.h:44:7: error: unknown type name ‘gchar’
const gchar *log_tags_get_by_id(LogTagId id);
^~~~~
In file included from /usr/local/include/syslog-ng/gsockaddr.h:29:0,
from /usr/local/include/syslog-ng/logmsg.h:29,
from syslog-node.c:6:
/usr/local/include/syslog-ng/atomic.h:31:3: error: unknown type name ‘gint’
gint counter;
^~~~
/usr/local/include/syslog-ng/atomic.h:40:15: error: unknown type name ‘gboolean’
static inline gboolean
^~~~~~~~
/usr/local/include/syslog-ng/atomic.h:46:15: error: unknown type name ‘gint’
static inline gint
…
…
Can you please guide me as in which library I am missing here and what needs to be done in this case?