|
|
Sponsor |
Compiling on NetBSD and MSYS: msg#00046apache.logging.log4cxx.user
Hi, I am having problems compiling the log4cxx latest release (0.9.7) in either MSYS or NetBSD. I noticed that there were a few posts before about compiling on a BSD system, and someone made a patch to do so. Has this patch been merged into a 0.9.7 release? If so, is there any chance of releasing the tarball that includes it? As for the MSYS problem, well i just thought i would post this message and see if there are any solutions out there for getting this to work. Thanks, Brendon. ----------------------------------------------------------------------- When compiling on NetBSD, i get the following error messages: bcosta@tb4:~/ideas/log4cxx-0.9.7$make Making all in docs Making all in src if /bin/bash ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I../include/log4cxx -I../include -I/usr/pkg/include/libxml2 -D_REENTRANT -g -O2 -MT appenderattachableimpl.lo -MD -MP -MF ".deps/appenderattachableimpl.Tpo" -c -o appenderattachableimpl.lo appenderattachableimpl.cpp; then mv -f ".deps/appenderattachableimpl.Tpo"".deps/appenderattachableimpl.Plo"; else rm -f ".deps/appenderattachableimpl.Tpo"; exit 1; fi g++ -DHAVE_CONFIG_H -I. -I. -I../include/log4cxx -I../include -I/usr/pkg/include/libxml2 -D_REENTRANT -g -O2 -MT appenderattachableimpl.lo -MD -MP -MF .deps/appenderattachableimpl.Tpo -c appenderattachableimpl.cpp -fPIC -DPIC -o .libs/appenderattachableimpl.o In file included from appenderattachableimpl.cpp:17: ../include/log4cxx/helpers/tchar.h: In static member function `static void Convert::int64ToString(wchar_t*, unsigned int, const __int64_t&)': ../include/log4cxx/helpers/tchar.h:50: error: `swprintf' undeclared (first use this function) ../include/log4cxx/helpers/tchar.h:50: error: (Each undeclared identifier is reported only once for each function it appears in.) In file included from appenderattachableimpl.cpp:17: ../include/log4cxx/helpers/tchar.h:87:28: alloca.h: No such file or directory *** Error code 1 Stop. make: stopped in /home/bcosta/ideas/log4cxx-0.9.7/src *** Error code 1 Stop. make: stopped in /home/bcosta/ideas/log4cxx-0.9.7 ----------------------------------------------------------------------- and when i tried in MSYS i got this message: $ make Making all in docs make[1]: Entering directory `/c/dev/log4cxx-0.9.7/docs' make[1]: Nothing to be done for `all'. make[1]: Leaving directory `/c/dev/log4cxx-0.9.7/docs' Making all in src make[1]: Entering directory `/c/dev/log4cxx-0.9.7/src' if /bin/sh ../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I../include/log4cxx -I../include -g -O2 -MT appenderattachableimpl.lo -MD -MP -MF ".deps/appenderattachableimpl.Tpo" \ -c -o appenderattachableimpl.lo `test -f 'appenderattachableimpl.cpp' || echo './'`appenderattachableimpl.cpp; \ then mv ".deps/appenderattachableimpl.Tpo" ".deps/appenderattachableimpl.Plo"; \ else rm -f ".deps/appenderattachableimpl.Tpo"; exit 1; \ fi g++ -DHAVE_CONFIG_H -I. -I. -I../include/log4cxx -I../include -g -O2 -MT appenderattachableimpl.lo -MD -MP -MF .deps/appenderattachableimpl.Tpo -c appenderattachableimpl.cpp -DDLL_EXPORT -DPIC -o .libs/appenderattachableimpl.o In file included from appenderattachableimpl.cpp:17: ../include/log4cxx/helpers/tchar.h:45: parse error before `&' token ../include/log4cxx/helpers/tchar.h:54: parse error before `&' token ../include/log4cxx/helpers/tchar.h:55: `static void Convert::int64ToString(...) ' and `static void Convert::int64ToString(...)' cannot be overloaded ../include/log4cxx/helpers/tchar.h: In static member function `static void Convert::int64ToString(...)': ../include/log4cxx/helpers/tchar.h:48: `dst' undeclared (first use this function) ../include/log4cxx/helpers/tchar.h:48: (Each undeclared identifier is reported only once for each function it appears in.) ../include/log4cxx/helpers/tchar.h:48: `maxlen' undeclared (first use this function) ../include/log4cxx/helpers/tchar.h:48: `ll' undeclared (first use this function) ../include/log4cxx/helpers/tchar.h: At global scope: ../include/log4cxx/helpers/tchar.h:68: parse error before `&' token ../include/log4cxx/helpers/tchar.h:69: `std::basic_ostream<_CharT, _Traits>& std::operator<<(...)' must have an argument of class or enumerated type ../include/log4cxx/helpers/tchar.h:69: `std::basic_ostream<_CharT, _Traits>& std::operator<<(...)' must take exactly two arguments In file included from appenderattachableimpl.cpp:20: ../include/log4cxx/spi/loggingevent.h:109: ISO C++ forbids declaration of ` int64_t' with no type ../include/log4cxx/spi/loggingevent.h:109: parse error before `(' token ../include/log4cxx/spi/loggingevent.h: In member function `const log4cxx::LevelPtr& log4cxx::spi::LoggingEvent::getLevel() const': ../include/log4cxx/spi/loggingevent.h:93: `level' undeclared (first use this function) ../include/log4cxx/spi/loggingevent.h: In member function `const log4cxx::String& log4cxx::spi::LoggingEvent::getMessage() const': ../include/log4cxx/spi/loggingevent.h:100: `message' undeclared (first use this function) ../include/log4cxx/spi/loggingevent.h: At global scope: ../include/log4cxx/spi/loggingevent.h:114: ISO C++ forbids defining types within return type ../include/log4cxx/spi/loggingevent.h:114: long, short, signed or unsigned invalid for `getThreadId' ../include/log4cxx/spi/loggingevent.h:114: non-member function ` log4cxx::spi::LoggingEvent log4cxx::spi::getThreadId()' cannot have `const' method qualifier ../include/log4cxx/spi/loggingevent.h:114: semicolon missing after declaration of `class log4cxx::spi::LoggingEvent' ../include/log4cxx/spi/loggingevent.h: In function `int log4cxx::spi::getThreadId()': ../include/log4cxx/spi/loggingevent.h:114: `threadId' undeclared (first use this function) ../include/log4cxx/spi/loggingevent.h: At global scope: ../include/log4cxx/spi/loggingevent.h:117: syntax error before `(' token ../include/log4cxx/spi/loggingevent.h:122: non-member function `char* log4cxx::getFile()' cannot have `const' method qualifier ../include/log4cxx/spi/loggingevent.h: In function `char* log4cxx::getFile()': ../include/log4cxx/spi/loggingevent.h:122: `file' undeclared (first use this function) ../include/log4cxx/spi/loggingevent.h: At global scope: ../include/log4cxx/spi/loggingevent.h:126: non-member function `int log4cxx::getLine()' cannot have `const' method qualifier ../include/log4cxx/spi/loggingevent.h: In function `int log4cxx::getLine()': ../include/log4cxx/spi/loggingevent.h:126: `line' undeclared (first use this function) ../include/log4cxx/spi/loggingevent.h: At global scope: ../include/log4cxx/spi/loggingevent.h:133: non-member function `const log4cxx::String& log4cxx::getNDC()' cannot have `const' method qualifier ../include/log4cxx/spi/loggingevent.h:136: non-member function `void log4cxx::write(log4cxx::helpers::SocketOutputStreamPtr&)' cannot have `const ' method qualifier ../include/log4cxx/spi/loggingevent.h:138: non-member function `void log4cxx::writeLevel(log4cxx::helpers::SocketOutputStreamPtr&)' cannot have ` const' method qualifier ../include/log4cxx/spi/loggingevent.h:158: non-member function `log4cxx::String log4cxx::getMDC(const log4cxx::String&)' cannot have `const' method qualifier ../include/log4cxx/spi/loggingevent.h:167: non-member function ` std::set<log4cxx::String, std::less<log4cxx::String>, std::allocator<log4cxx::String> > log4cxx::getMDCKeySet()' cannot have ` const' method qualifier ../include/log4cxx/spi/loggingevent.h:173: non-member function `void log4cxx::getMDCCopy()' cannot have `const' method qualifier ../include/log4cxx/spi/loggingevent.h:178: non-member function `log4cxx::String log4cxx::getProperty(const log4cxx::String&)' cannot have `const' method qualifier ../include/log4cxx/spi/loggingevent.h:185: non-member function ` std::set<log4cxx::String, std::less<log4cxx::String>, std::allocator<log4cxx::String> > log4cxx::getPropertyKeySet()' cannot have `const' method qualifier ../include/log4cxx/spi/loggingevent.h:192: parse error before `public' ../include/log4cxx/spi/loggingevent.h:245: 'int64_t' is used as a type, but is not defined as a type. ../include/log4cxx/spi/loggingevent.h:248: `char*log4cxx::file' used prior to declaration ../include/log4cxx/spi/loggingevent.h:252: `int log4cxx::line' used prior to declaration ../include/log4cxx/spi/loggingevent.h:259: syntax error before `;' token ../include/log4cxx/spi/loggingevent.h:261: parse error before `}' token make[1]: *** [appenderattachableimpl.lo] Error 1 make[1]: Leaving directory `/c/dev/log4cxx-0.9.7/src' make: *** [all-recursive] Error 1
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | RE: ErrorHandler problem (was ODBCppender problem), thomas.hawker |
|---|---|
| Next by Date: | Re: Compiling on NetBSD and MSYS, Curt Arnold |
| Previous by Thread: | RE: ErrorHandler problem (was ODBCppender problem), thomas.hawker |
| Next by Thread: | Re: Compiling on NetBSD and MSYS, Curt Arnold |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Free MagazinesCisco NewsReceive 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 |
Home | sitemap
| advertise | OSDir is
an inevitable website.
|