log4cpp compilation errors

H

hamardk

Hi,

I'm trying to compile log4cpp-0.3.5rc3
on :
SunOS belaurora 5.9 Generic_118558-11 sun4u sparc SUNW,Ultra-4
I'm having compilation issues which are:

In file included from PortabilityImpl.hh:12,
from Appender.cpp:10:
.../include/log4cpp/Portability.hh:40: syntax error before `('
In file included from ../include/log4cpp/Layout.hh:14,
from ../include/log4cpp/Appender.hh:22,
from Appender.cpp:11:
.../include/log4cpp/LoggingEvent.hh:46: type specifier omitted for
parameter
.../include/log4cpp/LoggingEvent.hh:46: parse error before `::'
.../include/log4cpp/LoggingEvent.hh:59: syntax error before `::'
.../include/log4cpp/LoggingEvent.hh:68: syntax error before `;'
In file included from ../include/log4cpp/Appender.hh:22,
from Appender.cpp:11:
.../include/log4cpp/Layout.hh:35: parse error before `&'
In file included from Appender.cpp:11:
.../include/log4cpp/Appender.hh:74: parse error before `&'
.../include/log4cpp/Appender.hh:100: `Layout' was not declared in this
scope
.../include/log4cpp/Appender.hh:100: `layout' was not declared in this
scope
.../include/log4cpp/Appender.hh:100: virtual outside class declaration
.../include/log4cpp/Appender.hh:100: variable or field `setLayout'
declared void
.../include/log4cpp/Appender.hh:114: `Priority' was not declared in
this scope
.../include/log4cpp/Appender.hh:114: parse error before `::'
.../include/log4cpp/Appender.hh:120: warning: ANSI C++ forbids
declaration `Priority' with no type
.../include/log4cpp/Appender.hh:120: `Priority' declared as a `virtual'
field
.../include/log4cpp/Appender.hh:120: parse error before `::'
.../include/log4cpp/Appender.hh:125: `Filter' was not declared in this
scope
.../include/log4cpp/Appender.hh:125: `filter' was not declared in this
scope
.../include/log4cpp/Appender.hh:125: virtual outside class declaration
.../include/log4cpp/Appender.hh:125: variable or field `setFilter'
declared void
.../include/log4cpp/Appender.hh:131: warning: ANSI C++ forbids
declaration `Filter' with no type
.../include/log4cpp/Appender.hh:131: `Filter' declared as a `virtual'
field
.../include/log4cpp/Appender.hh:131: parse error before `*'
.../include/log4cpp/Appender.hh:137: warning: ANSI C++ forbids
declaration `threading' with no type
.../include/log4cpp/Appender.hh:137: parse error before `::'
.../include/log4cpp/Appender.hh:147: `Appender' was not declared in
this scope
.../include/log4cpp/Appender.hh:147: parse error before `>'
Appender.cpp:14: syntax error before `::'
Appender.cpp:15: syntax error before `::'
Appender.cpp:18: syntax error before `::'
Appender.cpp:25: syntax error before `*'
Appender.cpp:27: syntax error before `&'
Appender.cpp:28: syntax error before `::'
Appender.cpp:32: syntax error before `::'
Appender.cpp:35: `appender' was not declared in this scope
Appender.cpp:35: warning: ANSI C++ forbids declaration
`_getAllAppenders' with no type
Appender.cpp:35: `appender' was not declared in this scope
Appender.cpp:35: assignment (not initialization) in declaration
Appender.cpp:36: parse error before `}'
Appender.cpp:38: syntax error before `::'
Appender.cpp:40: warning: ANSI C++ forbids declaration
`_getAllAppenders' with no type
Appender.cpp: In function `int _getAllAppenders()':
Appender.cpp:40: parse error before `.'
Appender.cpp:43: syntax error before `::'
Appender.cpp:45: confused by earlier errors, bailing out
*** Error code 1
clearmake: Error: Build script failed for "Appender.lo"
========================================================

*** Error code 1
make: Fatal error: Command failed for target `all-recursive'

Do you have any idea why?

BTW, I was able to compile it on linux and not on Solaris

Thanks

Kamel
 
?

=?ISO-8859-1?Q?Erik_Wikstr=F6m?=

Hi,

I'm trying to compile log4cpp-0.3.5rc3
on :
SunOS belaurora 5.9 Generic_118558-11 sun4u sparc SUNW,Ultra-4
I'm having compilation issues which are:

Sorry, this group is for C++ language issues only, questions about third
party libraries should be posted in a group dedicated to them. As to the
problem at hand: you are aware that all 0.3.x releases are development
releases and not considered stable, and especially so with a RC3.
Besides that, have you followed the instructions for Solaris on the
projects homepage?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,763
Messages
2,569,562
Members
45,038
Latest member
OrderProperKetocapsules

Latest Threads

Top