Katharina Maurer | 19 Jun 11:25

problems with building log4cxx-0-10.0. in threadcxx.cpp


Hi, everybody!

I want to build log4cxx-0-10.0.

I have: 
- MinGW-5.1.3.
- Msys-1.0.10.
- msysDTK-1.0.1.
- Python-2.5.1.
- apr (apr_20080408042052)
- apr-util (apr-util_20080408042135)
- expat-2.0.1.
- cppunit-1.12.1.

I have no problems with building apr, apr-util, expat and cppunit. 

I use following code:

autogen.sh
pwd
./configure  --with-apr=../apr --with-apr-util=../apr-util --with-cppunit=../cppunit-1.12.1 
--with-expat=../expat-2.0.1 --with-logchar=wchar_t
make 
make install

And I get this error:

threadcxx.cpp: In member function `void log4cxx::helpers::Thread::run(void*(*)(apr_thread_t*,
void*), void*)':
(Continue reading)

Curt Arnold | 20 Jun 00:22

Re: problems with building log4cxx-0-10.0. in threadcxx.cpp


On Jun 19, 2008, at 4:27 AM, Katharina Maurer wrote:

>
> Hi, everybody!
>
>
> I want to build log4cxx-0-10.0.
>
> I have:
> - MinGW-5.1.3.
> - Msys-1.0.10.
> - msysDTK-1.0.1.
> - Python-2.5.1.
> - apr (apr_20080408042052)
> - apr-util (apr-util_20080408042135)
> - expat-2.0.1.
> - cppunit-1.12.1.
>
>
> I have no problems with building apr, apr-util, expat and cppunit.
>
> I use following code:
>
> autogen.sh
> pwd
> ./configure  --with-apr=../apr --with-apr-util=../apr-util --with- 
> cppunit=../cppunit-1.12.1  --with-expat=../expat-2.0.1 --with- 
> logchar=wchar_t
> make
(Continue reading)

lakshmikanth | 2 Jul 18:37

Re: problems with building log4cxx-0-10.0. in threadcxx.cpp


Curt Arnold-3 wrote:
> 
> 
> Or possibly the calling convention  
> (LOG4CXX_THREAD_FUNC in log4cxx/thread.h) is slightly different than  
> in the APR header.
> 
> Don't have that MinGW environment handy, so can't give you a quick  
> workaround.
> 
> 

The above is the reason why its happening, quick and dirty work around is 
to remove the following set of lines from thread.h, that will get you going:

#if !defined(LOG4CXX_THREAD_FUNC)
#if defined(_WIN32)
#define LOG4CXX_THREAD_FUNC __stdcall
#else
#define LOG4CXX_THREAD_FUNC
#endif
#endif

and add this instead:

#if !defined(LOG4CXX_THREAD_FUNC)
#define LOG4CXX_THREAD_FUNC
#endif

(Continue reading)

Katharina Maurer | 4 Jul 16:44

Re: problems with building log4cxx-0-10.0. in threadcxx.cpp


Thank you very much for your support!!! 

I changed the lines and now it is working till the end. But now I have other question. Maybe you can help me
again. I have to say that  am very unexperienced with log4cxx and deeply grateful for all suggestions..

I'm worry about following messages I get twice:

*** Warning: This system can not link to static lib archive /d/soft/apr-util/libaprutil-1.la.
*** I have the capability to make that library automatically link in when
*** you link to this library.  But I can only do this if you have a
*** shared version of the library, which you do not appear to have.

*** Warning: This system can not link to static lib archive /d/soft/apr/libapr-1.la.
*** I have the capability to make that library automatically link in when
*** you link to this library.  But I can only do this if you have a
*** shared version of the library, which you do not appear to have

Do I have to change the apr and apr-util installation or configure options for log4cxx configuration?

Thanks a lot again and have a good weekend!

Katharina

-------- Original-Nachricht --------
> Datum: Wed, 2 Jul 2008 09:37:43 -0700 (PDT)
> Von: lakshmikanth <ibelieveicantouchthesky <at> gmail.com>
> An: log4cxx-user <at> logging.apache.org
> Betreff: Re: problems with building log4cxx-0-10.0. in threadcxx.cpp

(Continue reading)

lakshmikanth | 4 Jul 21:18

Re: problems with building log4cxx-0-10.0. in threadcxx.cpp


You would need to give us the following information:

What is the configure command that you gave for apr, aprutil, and log4cxx,
and all other related dependencies? 

By the symptom it looks like you did not do a "make install" on the
dependencies and hence your app is trying to link to something that libtool
generates temporarily (.la). I maybe wrong. But please do a "make install"
on all ur dependencies.

Try to build everything from scratch one more time and the wiki page to do
that is here:
http://wiki.apache.org/logging-log4cxx/MSWindowsBuildInstructions

Thanks
L.K

Katharina Maurer wrote:
> 
> 
> Thank you very much for your support!!! 
> 
> I changed the lines and now it is working till the end. But now I have
> other question. Maybe you can help me again. I have to say that  am very
> unexperienced with log4cxx and deeply grateful for all suggestions..
> 
> I'm worry about following messages I get twice:
> 
> *** Warning: This system can not link to static lib archive
(Continue reading)


Gmane