From: mathan (mathan@hotpop.com)
Date: Mon Jul 12 2004 - 06:01:23 EDT
Hello All,
I am trying to bulild swish++-6.0.1 on HP-UX 11.11 platfoem, I got the following error message while buildinf the swish++-6.0.1 source. Please help me to solve this error. Thanks in advance
swish++ - 6.0.1
HP-UX - PA 11.11
gcc - 3.3.2
# gcc -v
Reading specs from /usr/local/lib/gcc-lib/hppa2.0n-hp-hpux11.00/3.3.2/specs
Configured with: ./configure : (reconfigured) ./configure : (reconfigured) ./configure : (reconfigured) ./configure : (reconfigured) ./configure : (reconfigured) ./configure : (reconfigured) ./configure : (reconfigured) ./configure : (reconfigured) ./configure : (reconfigured) ./configure : (reconfigured) ./configure : (reconfigured) ./configure : (reconfigured) ./configure : (reconfigured) ./configure : (reconfigured) ./configure : (reconfigured) ./configure : (reconfigured) ./configure
Thread model: single
gcc version 3.3.2
#
# gmake
g++ -I. -DCHARSET_utf7 -DCHARSET_utf8 -DCHARSET_utf16 -DENCODING_base64 -DENCODING_quoted_printable -DIMPLEMENT_DECODING -DMOD_html -DMOD_id3 -DMOD_latex -DMOD_mail -DMOD_man -DMOD_rtf -DFEATURE_word_pos -DSEARCH_DAEMON -DMULTI_THREADED -D_REENTRANT -D_XOPEN_SOURCE=500 -O2 -fomit-frame-pointer -D_BSD_SOURCE -fno-exceptions -c -o conf_var.o conf_var.c
In file included from /usr/local/include/c++/3.3.2/cstring:49,
from conf_var.c:24:
/usr/local/include/c++/3.3.2/cstddef:53: error: `size_t' not declared
In file included from /usr/local/include/c++/3.3.2/bits/stl_algobase.h:69,
from /usr/local/include/c++/3.3.2/memory:54,
from /usr/local/include/c++/3.3.2/string:48,
from /usr/local/include/c++/3.3.2/bits/locale_classes.h:47,
from /usr/local/include/c++/3.3.2/bits/ios_base.h:47,
from /usr/local/include/c++/3.3.2/ios:49,
from /usr/local/include/c++/3.3.2/ostream:45,
from /usr/local/include/c++/3.3.2/iostream:45,
from conf_var.c:25:
/usr/local/include/c++/3.3.2/new:82: error: `size_t' undeclared in namespace `
std'
/usr/local/include/c++/3.3.2/new:82: error: declaration of `operator new' as
non-function
/usr/local/include/c++/3.3.2/new:82: error: invalid declarator
/usr/local/include/c++/3.3.2/new:83: error: `size_t' undeclared in namespace `
std'
/usr/local/include/c++/3.3.2/new:83: error: declaration of `operator new []' as
non-function
/usr/local/include/c++/3.3.2/new:83: error: invalid declarator
/usr/local/include/c++/3.3.2/new:86: error: `size_t' undeclared in namespace `
std'
/usr/local/include/c++/3.3.2/new:86: error: parse error before `::' token
/usr/local/include/c++/3.3.2/new:86: error: `operator new' takes type `size_t'
(`long unsigned int') as first parameter
/usr/local/include/c++/3.3.2/new:87: error: `size_t' undeclared in namespace `
std'
/usr/local/include/c++/3.3.2/new:87: error: parse error before `::' token
/usr/local/include/c++/3.3.2/new:87: error: `operator new' takes type `size_t'
(`long unsigned int') as first parameter
/usr/local/include/c++/3.3.2/new:92: error: `size_t' undeclared in namespace `
std'
/usr/local/include/c++/3.3.2/new:92: error: parse error before `*' token
/usr/local/include/c++/3.3.2/new:92: error: `operator new' takes type `size_t'
(`long unsigned int') as first parameter
/usr/local/include/c++/3.3.2/new: In function `void* operator new(long unsigned
int, ...)':
/usr/local/include/c++/3.3.2/new:92: error: `__p' undeclared (first use this
function)
/usr/local/include/c++/3.3.2/new:92: error: (Each undeclared identifier is
reported only once for each function it appears in.)
/usr/local/include/c++/3.3.2/new: At global scope:
/usr/local/include/c++/3.3.2/new:93: error: `size_t' undeclared in namespace `
std'
/usr/local/include/c++/3.3.2/new:93: error: parse error before `*' token
/usr/local/include/c++/3.3.2/new:93: error: `operator new' takes type `size_t'
(`long unsigned int') as first parameter
In file included from /usr/local/include/c++/3.3.2/memory:55,
from /usr/local/include/c++/3.3.2/string:48,
from /usr/local/include/c++/3.3.2/bits/locale_classes.h:47,
from /usr/local/include/c++/3.3.2/bits/ios_base.h:47,
from /usr/local/include/c++/3.3.2/ios:49,
from /usr/local/include/c++/3.3.2/ostream:45,
from /usr/local/include/c++/3.3.2/iostream:45,
from conf_var.c:25:
/usr/local/include/c++/3.3.2/bits/stl_alloc.h: In static member function `
static void* std::__new_alloc::allocate(long unsigned int)':
/usr/local/include/c++/3.3.2/bits/stl_alloc.h:108: error: call of overloaded `
operator new(size_t&)' is ambiguous
<internal>:108: error: candidates are: void* operator new(long unsigned int)
/usr/local/include/c++/3.3.2/new:92: error: void* operator
new(long unsigned int, ...)
In file included from /usr/local/include/c++/3.3.2/string:48,
from /usr/local/include/c++/3.3.2/bits/locale_classes.h:47,
from /usr/local/include/c++/3.3.2/bits/ios_base.h:47,
from /usr/local/include/c++/3.3.2/ios:49,
from /usr/local/include/c++/3.3.2/ostream:45,
from /usr/local/include/c++/3.3.2/iostream:45,
from conf_var.c:25:
/usr/local/include/c++/3.3.2/memory: In function `std::pair<_Tp*, ptrdiff_t>
std::__get_temporary_buffer(long int, _Tp*)':
/usr/local/include/c++/3.3.2/memory:80: error: parse error before `*' token
In file included from conf_var.c:33:
util.h: In function `char* new_strdup(const char*)':
util.h:295: error: call of overloaded `operator new [](long unsigned int)' is
ambiguous
<internal>:295: error: candidates are: void* operator new [](long unsigned int)
/usr/local/include/c++/3.3.2/new:93: error: void* operator new
[](long unsigned int, ...)
gmake: *** [conf_var.o] Error 1
#
Thanks,
Mathan
-- ---> Please post QUESTIONS and SUMMARIES only!! <--- To subscribe/unsubscribe to this list, contact majordomo@dutchworks.nl Name: hpux-admin@dutchworks.nl Owner: owner-hpux-admin@dutchworks.nl Archives: ftp.dutchworks.nl:/pub/digests/hpux-admin (FTP, browse only) http://www.dutchworks.nl/htbin/hpsysadmin (Web, browse & search)
This archive was generated by hypermail 2.1.7 : Sat Apr 12 2008 - 11:02:41 EDT