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...

Apache Log4cxx build fails with gcc 2.95 under Solaris 8: msg#00074

apache.logging.log4cxx.user

Subject: Apache Log4cxx build fails with gcc 2.95 under Solaris 8



bash-2.03$ make
Making all in docs
Making all in src
source='appenderattachableimpl.cpp' object='appenderattachableimpl.lo'
libtool=yes \
DEPDIR=.deps depmode=gcc /bin/bash ../depcomp \
/bin/bash ../libtool --mode=compile --tag=CXX g++ -DHAVE_CONFIG_H -I. -I.
-I../include/log4cxx -I../include -D_REENTRANT -g -O2 -c -o
appenderattachableimpl.lo appenderattachableimpl.cpp
g++ -DHAVE_CONFIG_H -I. -I. -I../include/log4cxx -I../include -D_REENTRANT
-g -O2 -c appenderattachableimpl.cpp
-Wp,-MD,.deps/appenderattachableimpl.TPlo -fPIC -DPIC -o
.libs/appenderattachableimpl.o
In file included from appenderattachableimpl.cpp:17:
../include/log4cxx/helpers/tchar.h:29: streambuf: No such file or directory
*** Error code 1

Since it says error in streambuf, I have commented out that line from
tchar.h file (because sstream was already included in the same file just 3
lines earlier), and now I get some more errors:

bash-2.03$ make
Making all in docs
Making all in src
source='appenderattachableimpl.cpp' object='appenderattachableimpl.lo'
libtool=yes \
DEPDIR=.deps depmode=gcc /bin/bash ../depcomp \
/bin/bash ../libtool --mode=compile --tag=CXX g++ -DHAVE_CONFIG_H -I. -I.
-I../include/log4cxx -I../include -D_REENTRANT -g -O2 -c -o
appenderattachableimpl.lo appenderattachableimpl.cpp
g++ -DHAVE_CONFIG_H -I. -I. -I../include/log4cxx -I../include -D_REENTRANT
-g -O2 -c appenderattachableimpl.cpp
-Wp,-MD,.deps/appenderattachableimpl.TPlo -fPIC -DPIC -o
.libs/appenderattachableimpl.o
In file included from appenderattachableimpl.cpp:17:
../include/log4cxx/helpers/tchar.h:45: parse error before `&'
../include/log4cxx/helpers/tchar.h:54: parse error before `&'
../include/log4cxx/helpers/tchar.h:55: `Convert::int64ToString(...)' has
already been declared in `Convert'
../include/log4cxx/helpers/tchar.h: In function `static void
Convert::int64ToString(...)':
../include/log4cxx/helpers/tchar.h:50: `dst' undeclared (first use this
function)
../include/log4cxx/helpers/tchar.h:50: (Each undeclared identifier is
reported only once
../include/log4cxx/helpers/tchar.h:50: for each function it appears in.)
../include/log4cxx/helpers/tchar.h:50: `maxlen' undeclared (first use this
function)
../include/log4cxx/helpers/tchar.h:50: `ll' undeclared (first use this
function)
../include/log4cxx/helpers/tchar.h: At top level:
../include/log4cxx/helpers/tchar.h:67: syntax error before `&'
../include/log4cxx/helpers/tchar.h:68: `basic_ostream' was not declared in
this scope
../include/log4cxx/helpers/tchar.h:68: `_CharT' was not declared in this
scope
../include/log4cxx/helpers/tchar.h:68: `_Traits' was not declared in this
scope
../include/log4cxx/helpers/tchar.h:68: `os' was not declared in this scope
../include/log4cxx/helpers/tchar.h:68: parse error before `&'
../include/log4cxx/helpers/tchar.h:69: ANSI C++ forbids declaration
`operator <<' with no type
../include/log4cxx/helpers/tchar.h:69: `operator <<(...)' must have an
argument of class or enumerated type
../include/log4cxx/helpers/tchar.h:69: `operator <<(...)' must take exactly
two arguments

etc ... etc ...

*** Error code 1


I am using gcc 2.95.3.

What can be the error and how to resolve these?



<<attachment: winmail.dat>>

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

Recently Viewed:
qplus.devel/200...    network.jabber....    debian.qa-packa...    encryption.gpg....    python.dabo.dev...    uclinux.devel/2...    science.mathema...    recreation.pesc...    kernel.ck/2004-...    mozilla.devel.e...    tex.latex.prosp...    ietf.multi6/200...    bbc.cvs/2002-11...    xfree86.newbie/...    jakarta.taglibs...    altlinux.hardwa...    comedi/2002-05/...    horde.bugs/2004...    games.diplomacy...    finance.e-gold....    web.dom.test-su...    lang.ruby.rails...    os.netbsd.devel...    video.gstreamer...   
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