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
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