incubator-stdcxx-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Farid Zaripov" <Farid_Zari...@epam.com>
Subject [PATCH] using dllexport/dllimport directives where they are supported
Date Wed, 19 Dec 2007 18:07:04 GMT
  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<char>::narrow" (declared
at line 264); dllimport/dllexport dropped
  ctype<char>::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.

Mime
View raw message