By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
432,441 Members | 979 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 432,441 IT Pros & Developers. It's quick & easy.

log4cpp compilation errors

P: n/a
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

Jun 15 '07 #1
Share this Question
Share on Google+
1 Reply


P: n/a
On 2007-06-15 21:13, ha*****@gmail.com wrote:
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?

--
Erik Wikström
Jun 15 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.