log4cpp compilation errors

Discussion in 'C++' started by hamardk@gmail.com, Jun 15, 2007.

  1. Guest

    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, 2007
    #1
    1. Advertising

  2. On 2007-06-15 21:13, 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
     
    =?ISO-8859-1?Q?Erik_Wikstr=F6m?=, Jun 15, 2007
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Mark Goldin

    Errors, errors, errors

    Mark Goldin, Jan 17, 2004, in forum: ASP .Net
    Replies:
    2
    Views:
    973
    Mark Goldin
    Jan 17, 2004
  2. Matthieu Labour
    Replies:
    10
    Views:
    10,042
    llewelly
    Sep 9, 2003
  3. Atiz

    log4CPP

    Atiz, Nov 14, 2006, in forum: C++
    Replies:
    2
    Views:
    2,330
  4. C__chp
    Replies:
    4
    Views:
    512
    Puppet_Sock
    Feb 15, 2008
  5. log4cpp

    , Dec 10, 2008, in forum: C++
    Replies:
    3
    Views:
    1,041
Loading...

Share This Page