Please take our Survey
logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

Re: Building on Mac OS/X 10.3: msg#00025

apache.logging.log4cxx.user

Subject: Re: Building on Mac OS/X 10.3

Hi all,

I've just downloaded and compiled the latest release (0.9.7) on OSX 10.3. I've seen the same problems and found that the "getLogger()" and "getRootLogger()" calls cause segfaults unless I call

BasicConfigurator::configure();

first. So, for example delayedloop can be fixed like this:

int main(int argc, char **argv) {
BasicConfigurator::configure();
DelayedLoop::logger = Logger::getLogger(_T("DelayedLoop"));
...
}

(with logger made public).

This is a bit awkward, because with this it is not possible to assign a static logger globally. I don't have another platform available for testing but I assume that calling "getLogger()" on other platforms works even without having configured first.

I haven't investigated the cause of the crash any further. I recently had a problem with code that ran on Linux and crashed on OSX where the cause was an uninitialized variable. If I remember correctly, the variable was automatically assigned 0 on Linux and uninitialized use was 'safe' there while it was containing garbage on OSX and cause a crash. As initialization seems to be the problem here, perhaps this might give a lead on what's wrong.

HTH,
Sven

Michaël CATANZARITI wrote:

Hello Curt,

The serversocket.cpp file was fixed in the CVS repository in May.
I had many problems running the delayedloop example, without finding a solution.
If you can help ...

Regards,

Curt Arnold wrote:

> I ran into a few minor gotchas while trying to build log4cxx-0.9.7 on > Mac OS/X. Since nobody else has reported their Mac build experiences, I > thought I pass along mine. > > autogen.sh calls libtoolize which is appears to be called glibtoolize on > Mac OS/X. > > src/serversocket.cpp needs to include <sys/types.h> or there will be > compilation failures in <netinet/in.h> due to in_addr_t and other types > not being defined.




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

Recently Viewed:
version-control...    qnx.openqnx.dev...    redhat.rhn.user...    ietf.openpgp/20...    mail.mutt.user/...    web.microformat...    java.sync4j.use...    education.ezpro...    user-groups.blu...    solaris.manager...    org.fitug.debat...    technology.erps...    politics.activi...    linux.redhat.fe...    bug-tracking.ma...    xfce.user/2004-...    hams/2004-11/ms...    kde.users.pim/2...    culture.cooking...    freebsd.devel.x...    gnu.m4.adhoc/20...    ngpt.user/2002-...    apple.fink.deve...   
Home | 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

Navigation