Error occurred during compilation:
g++ -DHAVE_CONFIG_H -I. -I. -I../include -I../include
-g -O2 -Wall -pedantic -c RemoteSyslogAppender.cpp
-fPIC -DPIC -o RemoteSyslogAppender.o
In file included from /usr/include/netdb.h:69,
from RemoteSyslogAppender.cpp:23:
/usr/include/sys/socket.h:484: syntax error before `('
token
/usr/include/sys/socket.h:486: syntax error before `('
token
Fixe:
in source of RemoteSyslogAppender.cpp:
adding two typedef lines:
typedef long sbsize_t;
typedef unsigned long bsize_t;
/*
* RemoteSyslogAppender.cpp
*
* Copyright 2001, LifeLine Networks BV
(www.lifeline.nl). All rights reserved.
* Copyright 2001, Walter Stroebel. All rights reserved.
*
* See the COPYING file for the terms of usage and
distribution.
*/
#include "PortabilityImpl.hh"
#ifdef LOG4CPP_HAVE_UNISTD_H
# include <unistd.h>
#endif
#include <cstdlib>
#include <cstdio>
#include <cstring>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <log4cpp/RemoteSyslogAppender.hh>
#ifdef WIN32
#include <winsock2.h>
#else
typedef long sbsize_t;
typedef unsigned long bsize_t;
#include <netdb.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#endif