Menu

#87 broken compile on HP-UX HP-UX B.11.11

open
nobody
5
2005-05-06
2005-05-06
Anonymous
No

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

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.