Return-Path: Delivered-To: apmail-incubator-stdcxx-dev-archive@www.apache.org Received: (qmail 93515 invoked from network); 19 Dec 2007 18:07:35 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 19 Dec 2007 18:07:35 -0000 Received: (qmail 60942 invoked by uid 500); 19 Dec 2007 18:07:25 -0000 Delivered-To: apmail-incubator-stdcxx-dev-archive@incubator.apache.org Received: (qmail 60882 invoked by uid 500); 19 Dec 2007 18:07:24 -0000 Mailing-List: contact stdcxx-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: stdcxx-dev@incubator.apache.org Delivered-To: mailing list stdcxx-dev@incubator.apache.org Received: (qmail 60871 invoked by uid 99); 19 Dec 2007 18:07:24 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 19 Dec 2007 10:07:24 -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 Farid_Zaripov@epam.com designates 217.21.63.3 as permitted sender) Received: from [217.21.63.3] (HELO EPMSA009.epam.com) (217.21.63.3) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 19 Dec 2007 18:07:03 +0000 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: [PATCH] using dllexport/dllimport directives where they are supported Date: Wed, 19 Dec 2007 20:07:04 +0200 Message-ID: <7BDB2168BEAEF14C98F1901FD2DE64380165B256@epmsa009.minsk.epam.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [PATCH] using dllexport/dllimport directives where they are supported Thread-Index: AchCafWvEP5PYv7OQCatSSiaOCfIOQ== From: "Farid Zaripov" To: X-Virus-Checked: Checked by ClamAV on apache.org The patch is attached here: https://issues.apache.org/jira/secure/attachment/12371951/dllexport.patc h I've tried to build the stdcxx with this patch on aCC/HP-UX. --------------------------- $ uname -a HP-UX td194 B.11.31 U ia64 3426292962 unlimited-user license $ aCC -V aCC: HP C/aC++ B3910B A.06.14 [Feb 22 2007] -------------------------- The library itself is build successfully, but many examples are failed (I suppose that they are failed because of internal compiler error). The error test (the build log for the localedef utility is here: https://issues.apache.org/jira/secure/attachment/12371955/gmake.log ) ----------- Signal 11, code 2 (invalid permissions for object) (0) 0x0000000005bc8520 term_on_signal + 0x3c0 [/opt/aCC/lbin/ecom] (1) 0xe000000108756900 ---- Signal 11 (SIGSEGV) delivered ---- (2) 0x00000000066ad990 $cold_define_one_virtual_function_table + 0xd0 [/opt/aCC/lbin/ecom] (3) 0x0000000005c3d6d0 f_define_virtual_function_tables + 0x210 [/opt/aCC/lbin/ecom] (4) 0x0000000005c3d820 f_define_virtual_function_tables + 0x360 [/opt/aCC/lbin/ecom] (5) 0x0000000005c3de30 define_virtual_function_tables + 0x110 [/opt/aCC/lbin/ecom] (6) 0x0000000005c3dfc0 define_scope_virtual_function_tables + 0x120 [/opt/aCC/lbin/ecom] (7) 0x0000000005c3e090 define_scope_virtual_function_tables + 0x1f0 [/opt/aCC/lbin/ecom] (8) 0x0000000004ce56f0 lower_il_memory_region + 0x1d0 [/opt/aCC/lbin/ecom] (9) 0x0000000005bc2cf0 file_scope_il_wrapup_part_3 + 0xa0 [/opt/aCC/lbin/ecom] (10) 0x0000000005bc3250 wrap_up_file_scopes + 0x1b0 [/opt/aCC/lbin/ecom] (11) 0x0000000005b53c30 fe_wrapup + 0xf0 [/opt/aCC/lbin/ecom] (12) 0x0000000005bae170 cfe_main + 0x1f0 [/opt/aCC/lbin/ecom] (13) 0x0000000005bab230 main + 0x30 [/opt/aCC/lbin/ecom] (14) 0x60000000c004e550 main_opd_entry + 0x50 [/usr/lib/hpux32/dld.so] Compilation terminated. ---------- Another issue is dropping the dllexport attribute in case when the some class is declared as _RWSTD_EXPORT, but the class member definition doesn't have the _RWSTD_EXPORT attribute: ---------- "/house/FZaripov/trunk/include/loc/_ctype.h", line 329: warning #3397-D: dllexport/dllimport conflict with "std::ctype::narrow" (declared at line 264); dllimport/dllexport dropped ctype::narrow (char_type __c, char __dfault) const ---------- The MSVC doesn't requires to specify the dllexport attribute in function or class member definition if this function or class is declared with this attribute. Farid.