logo       

Re: build problem on solaris: msg#00018

Subject: Re: build problem on solaris
Hi,
Thank you. I have just got it to compile by installing the sources on a
Linux machine and generating the configure script there so it probably
boils down to the same thing. I do get the feeling that the package is not
stable at all on Solaris. The following core dumps (I am new to log4cxx so
might be me making a mistake but the same works on Linux)

#include <log4cxx/logger.h>
#include <log4cxx/basicconfigurator.h>
#include <log4cxx/propertyconfigurator.h>
#include <log4cxx/helpers/exception.h>

using namespace log4cxx;
using namespace log4cxx::helpers;

LoggerPtr logger = Logger::getLogger(_T("MyApp"));

int main(int argc, char **argv)
{
    int result = EXIT_SUCCESS;
    try
    {
        if (argc > 1)
        {
            // BasicConfigurator replaced with PropertyConfigurator.
            PropertyConfigurator::configure(argv[1]);
        }
        else
        {
            BasicConfigurator::configure();
        }

        LOG4CXX_FATAL(logger, "Entering application.");
        LOG4CXX_FATAL(logger, "Exiting application.");
    }
    catch(Exception&)
    {
        result = EXIT_FAILURE;
    }

    return result;
}

tiaan@dev:/export/home/tiaan/testlog$ ./test
You have tried to set a null level to root.
Segmentation Fault (core dumped)

and also

tiaan@dev:/export/home/tiaan/testlog$ ./test socketServer1.properties
You have tried to set a null level to root.
Segmentation Fault (core dumped)

Regards
Tiaan


> Hi,
>
> you can try using this package:
>
> http://littletux.homelinux.org/debian/log4cxx/log4cxx_0.9.7.orig.tar.gz
>
> it is identical to log4cxx_0.9.7,tar.gz from the apache site, but
> already contains the configure script so that it can be built with
> the usual ./configure; make without calling automake.
> I havent tried it on Solaris yet, if you have any problems
> contact me, I have a Solaris 9 machine available ...
>
> Regards,
>
>       Andreas
>
> tiaan@xxxxxxxxxxxxxxx wrote:
>> Hi,
>> I am desperately struggling to build log4cxx on Solaris 9 with fairly
>> recent versions of automake/autoconf/libtool.
> [...]
>
>




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
science.linguis...    culture.sf.lite...    video.mplayer.c...    yellowdog.gener...    ietf.rfc822/199...    emacs.help/2002...    redhat.release....    kernel.speakup/...    java.openejb.de...    debian.devel.gt...    xfree86.newbie/...    bug-tracking.ma...    pam/2003-05/msg...    games.devel.ope...    user-groups.lin...    music.pancham/2...    network.mq.deve...    web.html.genera...    arklinux.bugs/2...    linux.ecasound/...    qnx.openqnx.dev...    org.user-groups...    file-systems.sf...    trustix.contrib...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe