Return-Path: Delivered-To: apmail-stdcxx-dev-archive@www.apache.org Received: (qmail 90228 invoked from network); 7 Feb 2008 00:47:42 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 7 Feb 2008 00:47:42 -0000 Received: (qmail 31524 invoked by uid 500); 7 Feb 2008 00:47:34 -0000 Delivered-To: apmail-stdcxx-dev-archive@stdcxx.apache.org Received: (qmail 31507 invoked by uid 500); 7 Feb 2008 00:47:34 -0000 Mailing-List: contact dev-help@stdcxx.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@stdcxx.apache.org Delivered-To: mailing list dev@stdcxx.apache.org Received: (qmail 31498 invoked by uid 99); 7 Feb 2008 00:47:34 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Feb 2008 16:47:34 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of msebor@gmail.com designates 209.85.198.191 as permitted sender) Received: from [209.85.198.191] (HELO rv-out-0910.google.com) (209.85.198.191) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Feb 2008 00:47:04 +0000 Received: by rv-out-0910.google.com with SMTP id k15so1946893rvb.23 for ; Wed, 06 Feb 2008 16:47:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:organization:user-agent:mime-version:to:subject:references:in-reply-to:content-type:content-transfer-encoding:sender; bh=Nnes3tfMK6pICXCOMC0cYPlbWfbIqYmqvgNbFtIGbF0=; b=GrI3HuyAtvBYrAuuFUxuDwtCh2SGTRgRA9puzETtDUPww5xxlxvev74jrPmE7kOxdOIpBg6bVs7qWPAreYL36XN820Nf6rVFiwo5AtRjgVeUNlTn1XHhA2cqFPqEwJNMLonqhB6annGnsV98PBrzcSpnEgsfzQ1aKZksNEhz+ZY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:organization:user-agent:mime-version:to:subject:references:in-reply-to:content-type:content-transfer-encoding:sender; b=oEwltWx3hm29lkB08B0FWTvL7t6MJUN9Jd9hEeaZ0ahJLDnKjToZf1PigS08v2Ci9i5AQqZswqXCPAtrJoj27o1bn7OWEXSUV8u2K+Db1dRjMrjJcqXTrnC7rH9Cls/CIH68nGa5QPY+WnpJo0KaHA7E22EI+/DxSFw0b9zvE9k= Received: by 10.141.13.16 with SMTP id q16mr7146082rvi.99.1202345229615; Wed, 06 Feb 2008 16:47:09 -0800 (PST) Received: from localhost.localdomain ( [71.229.200.170]) by mx.google.com with ESMTPS id f42sm13181365rvb.13.2008.02.06.16.47.06 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 06 Feb 2008 16:47:07 -0800 (PST) Message-ID: <47AA5509.20309@roguewave.com> Date: Wed, 06 Feb 2008 17:47:05 -0700 From: Martin Sebor Organization: Rogue Wave Software, Inc. User-Agent: Thunderbird 2.0.0.9 (X11/20071115) MIME-Version: 1.0 To: dev@stdcxx.apache.org Subject: Re: HP-UX 11.23 aCC 3.73 References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: Martin Sebor X-Virus-Checked: Checked by ClamAV on apache.org Scott Zhong wrote: > Hi while compiling executables with stdcxx I ran into the following > warnings during linking with +nostl flag: > > ld: (Warning) Unsatisfied symbol "ostream::operator <<(const char *)" in > file /usr/lib/pa20_64/libstd.sl > ld: (Warning) Unsatisfied symbol "Class tables [Vtable] for type > "bad_alloc"" in file /usr/lib/pa20_64/libstd.sl > ld: (Warning) Unsatisfied symbol "Class tables [Vtable] dependent on key > function: "exception::~exception()"" in file /usr/lib/pa20_64/libstd.sl > ld: (Warning) Unsatisfied symbol "typeid" in file > /usr/lib/pa20_64/libstd.sl > ld: (Warning) Unsatisfied symbol "exception::~exception()" in file > /usr/lib/pa20_64/libstd.sl > ld: (Warning) Unsatisfied symbol "istream::do_ipfx(int)" in file > /usr/lib/pa20_64/libstd.sl > > after some research, I found that the compile lines needed +nostl as > well to not include the stl that was shipped with HP-UX compiler. But > doing this I ran into compiler issues such as these: > > # aCC +DD64 -D_RWSTD_USE_CONFIG -D_RWCONFIG=11d -I/build/include -AA -g > -DRWDEBUG +nostl +w +W229 +W361 +W392 +W431 +W655 +W684 +W818 +W819 > +W849 +W889 +W887 +W921 -D_RWSTDDEBUG -c sizeof.cpp > Error 112: "sizeof.cpp", line 4 # Include file not found. > #include > ^^^^^^^^^ > Error 328: "sizeof.cpp", line 16 # Function 'printf' has not been > defined yet; cannot call. > printf ("/**/\n#undef RW_SIZEOF\n"); > ^^^^^^ > Error 328: "sizeof.cpp", line 44 # Function 'size_t' has not been > defined yet; cannot call. > do_print ( (size_t)(0), "SIZE_T"); > ^^^^^^ > > After some searching, this macro seems to be the cause of the error: > > _RWSTD_NO_DEPRECATED_C_HEADERS > > It is defined in the file include/rw/_config-acc.h. Is there any reason > behind the definition for that macro on HP UX platform or was it simply > being defined because hp compiler ships with a version of stdcxx > library? There is a reason. There is some (brief) background in STDCXX-501: http://issues.apache.org/jira/browse/STDCXX-501 Martin >