<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to 87: broken compile on HP-UX HP-UX  B.11.11 </title><link href="https://sourceforge.net/p/log4cpp/bugs/87/" rel="alternate"/><link href="https://sourceforge.net/p/log4cpp/bugs/87/feed.atom" rel="self"/><id>https://sourceforge.net/p/log4cpp/bugs/87/</id><updated>2005-05-06T07:53:07Z</updated><subtitle>Recent changes to 87: broken compile on HP-UX HP-UX  B.11.11 </subtitle><entry><title>broken compile on HP-UX HP-UX  B.11.11 </title><link href="https://sourceforge.net/p/log4cpp/bugs/87/" rel="alternate"/><published>2005-05-06T07:53:07Z</published><updated>2005-05-06T07:53:07Z</updated><author><name>Anonymous</name><uri>https://sourceforge.net/u/userid-None/</uri></author><id>https://sourceforge.net3e137a5f6cf7302066045a3f96464917227dfc62</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Error occurred during compilation:&lt;/p&gt;
&lt;p&gt;g++ -DHAVE_CONFIG_H -I. -I. -I../include -I../include&lt;br /&gt;
-g -O2 -Wall -pedantic -c RemoteSyslogAppender.cpp &lt;br /&gt;
-fPIC -DPIC -o RemoteSyslogAppender.o&lt;br /&gt;
In file included from /usr/include/netdb.h:69,&lt;br /&gt;
from RemoteSyslogAppender.cpp:23:&lt;br /&gt;
/usr/include/sys/socket.h:484: syntax error before `('&lt;br /&gt;
token&lt;br /&gt;
/usr/include/sys/socket.h:486: syntax error before `('&lt;br /&gt;
token&lt;/p&gt;
&lt;p&gt;Fixe: &lt;/p&gt;
&lt;p&gt;in source  of RemoteSyslogAppender.cpp:&lt;/p&gt;
&lt;p&gt;adding two typedef lines: &lt;br /&gt;
typedef long  sbsize_t;&lt;br /&gt;
typedef unsigned long bsize_t;&lt;/p&gt;
&lt;p&gt;/*&lt;br /&gt;
* RemoteSyslogAppender.cpp&lt;br /&gt;
*&lt;br /&gt;
* Copyright 2001, LifeLine Networks BV&lt;br /&gt;
(www.lifeline.nl). All rights reserved.&lt;br /&gt;
* Copyright 2001, Walter Stroebel. All rights reserved.&lt;br /&gt;
*&lt;br /&gt;
* See the COPYING file for the terms of usage and&lt;br /&gt;
distribution.&lt;br /&gt;
*/&lt;/p&gt;
&lt;p&gt;#include "PortabilityImpl.hh"&lt;/p&gt;
&lt;p&gt;#ifdef LOG4CPP_HAVE_UNISTD_H&lt;br /&gt;
#    include &amp;lt;unistd.h&amp;gt;&lt;br /&gt;
#endif&lt;br /&gt;
#include &amp;lt;cstdlib&amp;gt;&lt;br /&gt;
#include &amp;lt;cstdio&amp;gt;&lt;br /&gt;
#include &amp;lt;cstring&amp;gt;&lt;br /&gt;
#include &amp;lt;sys/types.h&amp;gt;&lt;br /&gt;
#include &amp;lt;sys/stat.h&amp;gt;&lt;br /&gt;
#include &amp;lt;fcntl.h&amp;gt;&lt;br /&gt;
#include &amp;lt;log4cpp/RemoteSyslogAppender.hh&amp;gt;&lt;br /&gt;
#ifdef WIN32&lt;br /&gt;
#include &amp;lt;winsock2.h&amp;gt;&lt;br /&gt;
#else&lt;br /&gt;
typedef long  sbsize_t;&lt;br /&gt;
typedef unsigned long bsize_t;&lt;br /&gt;
#include &amp;lt;netdb.h&amp;gt;&lt;br /&gt;
#include &amp;lt;sys/socket.h&amp;gt;&lt;br /&gt;
#include &amp;lt;netinet/in.h&amp;gt;&lt;br /&gt;
#include &amp;lt;arpa/inet.h&amp;gt;&lt;br /&gt;
#endif&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>