logging-log4cxx-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexandre Gacon" <alexandre.ga...@masagroup.net>
Subject RE : Help: build log4cxx failure
Date Fri, 08 Jul 2005 06:39:00 GMT
Andrea Fester answers to the same problem yesterday. Here is a copy of its
answer:

David,

I feel somehow guilty for that issue ;-)

For the moment, it would be best if you use my daily dist-tarball from
http://littletux.homelinux.org/log4cxx/. It is identical to the CVS head,
but contains some additional patches, and also already contains the
configure script (no need to run autogen.sh). After unpacking, a

$ ./configure --with-apr=pathToApr --with-aprutil=pathToAprUtil
--with-logchar=wchar_t

should properly configure the package (at least one other log4cxx user
succeeded with that approach). Then, simply run "make".

The @ are used to define replacement patterns in .in files
and are usually replaced by "configure". Currently one of them is missed and
makes its way into the final .h file ....

Best Regards,

	Andreas

Steck, David wrote:
[...]
 > preprocessor expressions ../include/log4cxx/logstring.h:36:5: token  >
"@" is not valid in preprocessor expressions make[1]: *** [action.lo]  >
Error 1  >

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


Alexandre Gacon

-----Message d'origine-----
De : james [mailto:ldapmaster@yahoo.com] 
Envoyé : vendredi 8 juillet 2005 08:26
À : log4cxx-user@logging.apache.org
Objet : Help: build log4cxx failure


hi
   all
   I have cvs check out the newest code of  log4cxx
from cvs repository,and also with apr-1.1.1.tar.gz and
apr-util-1.1.2.tar.gz.
    Then , in logging-log4cxx path,
    1. ./autogen.sh
    2. ./configure  --prefix=/usr/local/log4cxx
--with-apr=/path_to/apr-1.1.1 --with-apr-util=/path_to/apr-util-1.1.2
    the above 2 steps are ok!
    3. make, but found a error:
=======================================================
In file included from
../include/log4cxx/logstring.h:21,
                 from
../include/log4cxx/helpers/object.h:20,
                 from ../include/log4cxx/helpers/objectimpl.h:20,
                 from
../include/log4cxx/rolling/action.h:21,
                 from action.cpp:17:
../include/log4cxx/log4cxx.h:28:5: "@" is not valid in
#if expressions
In file included from
../include/log4cxx/helpers/object.h:20,
                 from ../include/log4cxx/helpers/objectimpl.h:20,
                 from
../include/log4cxx/rolling/action.h:21,
                 from action.cpp:17:
../include/log4cxx/logstring.h:23:33: "@" is not valid
in #if expressions
../include/log4cxx/logstring.h:36:5: "@" is not valid
in #if expressions
make[1]: *** [action.lo] Error 1
========================================================
 ./include/log4cxx/logstring.h:
#ifndef _LOG4CXX_STRING_H
#define _LOG4CXX_STRING_H

#include <string>
#include <log4cxx/log4cxx.h>

#if LOG4CXX_LOGCHAR_IS_WCHAR &&
LOG4CXX_LOGCHAR_IS_UTF8
#error only one of LOG4CXX_LOGCHAR_IS_WCHAR and LOG4CXX_LOGCHAR_IS_UTF8 may
be true #endif


namespace log4cxx {

#if LOG4CXX_LOGCHAR_IS_WCHAR
   typedef wchar_t logchar;
#define LOG4CXX_STR(str) L ## str

#endif

#if LOG4CXX_LOGCHAR_IS_UTF8
   typedef char logchar;
#define LOG4CXX_STR(str) str

#endif

   typedef std::basic_string<logchar> LogString;


}


#if !defined(LOG4CXX_EOL)
#if defined(_WIN32)
#define LOG4CXX_EOL LOG4CXX_STR("\x0D\x0A")
#else
#define LOG4CXX_EOL LOG4CXX_STR("\x0A")
#endif
#endif


#endif //_LOG4CXX_STRING_H


logstring.h has been 2 months old in cvs repository,
so  it may be find, but what worng?
Thanks! 






		
__________________________________ 
Discover Yahoo! 
Stay in touch with email, IM, photo sharing and more. Check it out! 
http://discover.yahoo.com/stayintouch.html


Mime
View raw message