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: log4cxx-CVS with stlport-4.6 application build fails: msg#00043

apache.logging.log4cxx.user

Subject: Re: log4cxx-CVS with stlport-4.6 application build fails

David,

I would be interested in running a build test :-)
I run Debian GNU/Linux 3.1, but lets see if I can
reproduce the issue.

Can you provide some more information how you configured
log4cxx? Do you use the ant build (and if so, how do you
integrate stlport) or the automake approach (and also,
if so, how do you integrate stlport)?

Regards,

Andreas

David Sewell wrote:
I am trying to integrate log4cxx-CVS with an application that uses
stlport-4.6 on Linux (redhat es3) using g++ (3.2.3), however when I
add the stlport support to the compile line, the build fails with
"undefined reference" errors from the log4cxx library.

I have rebuilt both log4cxx and stlport numerous times, as a test
case I have used the BasicConfigurator example from the log4cxx
documentation. This compiles and runs without the
'-I../stlport/stlport' flag but fails with the below error when the
flag is present. I can compile and run other applications using
stlport with no problems.

I have searched all bug/support archives for both log4cxx and
stlport, the only documented issues that reference both libraries
don't seem to be relevant. I'm now at a loss as to what to do.

Can someone confirm if log4cxx-CVS is known to work with stlport-4.6
on Linux?

Any suggestions for what may be wrong and how I can resolve the
problem would be appreciated.

I can include my test case source code and makefile if anyone has a
suitable environment and is interested in running a build test.

Thanks, David

Example Compile Failure:

g++ -g -Wall -DLINUX -Wno-ctor-dtor-privacy -I../log4cxx/include
-I../stlport/stlport -L../log4cxx/build/debug/shared -llog4cxx -o
log4cxx_sample main.o com/foo/bar.o -L../stlport/lib -lstlport_gcc main.o(.text+0x97): In function `main': ../log4cxx/include/log4cxx/helpers/objectptr.h:88: undefined
reference to
`log4cxx::Logger::forcedLog(log4cxx::helpers::ObjectPtrT<log4cxx::Level>
const&, _STL::basic_string<char, _STL::char_traits<char>,
_STL::allocator<char> > const&, log4cxx::spi::LocationInfo const&)' main.o(.text+0x1a0): In function `main': /disk2/data/eclipse/workspace/log4cxx_sample/main.cpp:23: undefined
reference to
`log4cxx::Logger::forcedLog(log4cxx::helpers::ObjectPtrT<log4cxx::Level>
const&, _STL::basic_string<char, _STL::char_traits<char>,
_STL::allocator<char> > const&, log4cxx::spi::LocationInfo const&)' com/foo/bar.o(.text+0x87): In function `com::foo::Bar::doIt()': ../log4cxx/include/log4cxx/helpers/objectptr.h:88: undefined
reference to
`log4cxx::Logger::forcedLog(log4cxx::helpers::ObjectPtrT<log4cxx::Level>
const&, _STL::basic_string<char, _STL::char_traits<char>,
_STL::allocator<char> > const&, log4cxx::spi::LocationInfo const&)' collect2: ld returned 1 exit status make: *** [log4cxx_sample] Error
1






--
Andreas Fester
mailto:Andreas.Fester@xxxxxx
WWW: http://littletux.homelinux.org
ICQ: 326674288



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

Recently Viewed:
user-groups.jax...    php.zend.framew...    os.solaris.open...    web.quixote.use...    java.openjdk.ho...    ietf.secmech/20...    gnu.glpk/2004-0...    recreation.cars...    network.smokepi...    linux.drivers.i...    cms.opencms.dev...    fonts.gfontview...    text.xml.soap.u...    voip.nist-sip/2...    debian.ports.hp...    xfree86.interna...    science.biology...    qnx.openqnx.dev...    mail.sylpheed.c...    busybox/bios/20...    emulators.kvm.s...    hardware.openco...    apple.fink.begi...    kde.german/2006...   
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