You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openoffice.apache.org by bu...@apache.org on 2011/11/03 20:53:52 UTC

DO NOT REPLY [Bug 118574] New: jvmwk C++ issue: 'mbstate_t' does not name a type

https://issues.apache.org/ooo/show_bug.cgi?id=118574

             Bug #: 118574
        Issue Type: DEFECT
           Summary: jvmwk C++ issue: 'mbstate_t' does not name a type
    Classification: Code
           Product: framework
           Version: version58
          Platform: PC
        OS/Version: FreeBSD
            Status: NEW
          Severity: blocker
          Priority: P5
         Component: code
        AssignedTo: tm@openoffice.org
        ReportedBy: pfg@apache.org
                CC: ooo-issues@incubator.apache.org


Created attachment 76950
  --> https://issues.apache.org/ooo/attachment.cgi?id=76950
Fix. Can it be done nicer?

Using the prepacked libxml2 in C++ brings some problems:
...

Entering /usr/ports/editors/openoffice.org-3-devel/work/ooo/main/jvmfwk/source

Making:    all_jvmfwk.dpslo
Compiling: jvmfwk/unxfbsdx.pro/misc/jvmfwk_version.c
Compiling: jvmfwk/source/framework.cxx
In file included from /usr/local/include/libxml2/libxml/encoding.h:28,
                 from /usr/local/include/libxml2/libxml/parser.h:807,
                 from
/usr/ports/editors/openoffice.org-3-devel/work/ooo/main/jvmfwk/source/elements.hxx:35,
                 from
/usr/ports/editors/openoffice.org-3-devel/work/ooo/main/jvmfwk/source/framework.cxx:43:
/usr/local/include/iconv.h:114: error: 'mbstate_t' does not name a type
dmake:  Error code 1, while making '../unxfbsdx.pro/slo/framework.obj'

1 module(s):
        jvmfwk
need(s) to be rebuilt

-- 
Configure bugmail: https://issues.apache.org/ooo/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

DO NOT REPLY [Bug 118574] jvmwk C++ issue: 'mbstate_t' does not name a type

Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=118574

Pedro Giffuni <pf...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|IRREPRODUCIBLE              |FIXED

--- Comment #8 from Pedro Giffuni <pf...@apache.org> 2012-02-21 04:16:56 UTC ---
GNU libiconv developer has acknowledged this is an issue and has solved it
for libiconv-1.14.

-- 
Configure bugmail: https://issues.apache.org/ooo/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

DO NOT REPLY [Bug 118574] jvmwk C++ issue: 'mbstate_t' does not name a type

Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=118574

Pedro Giffuni <pf...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #76972|0                           |1
        is obsolete|                            |

--- Comment #6 from Pedro Giffuni <pf...@apache.org> 2012-02-20 03:17:20 UTC ---
Created attachment 77230
  --> https://issues.apache.org/ooo/attachment.cgi?id=77230
Updated C++ defines for mstate_t

Some more includes were required at the end of the build.

-- 
Configure bugmail: https://issues.apache.org/ooo/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

DO NOT REPLY [Bug 118574] jvmwk C++ issue: 'mbstate_t' does not name a type

Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=118574

Pedro Giffuni <pf...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|WONTFIX                     |

--- Comment #5 from Pedro Giffuni <pf...@apache.org> 2012-01-20 15:17:37 UTC ---
The error mysteriously went away when updating gbuild but is now back.

-- 
Configure bugmail: https://issues.apache.org/ooo/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

DO NOT REPLY [Bug 118574] jvmwk C++ issue: 'mbstate_t' does not name a type

Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=118574

Pedro Giffuni <pf...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|STARTED                     |RESOLVED
         Resolution|                            |WONTFIX

--- Comment #4 from Pedro Giffuni <pf...@apache.org> 2011-11-08 22:23:45 UTC ---
(In reply to comment #2)
> I will commit it unless there is a nicer fix.

It looks like there is no nice fix for this.

We discussed it in -dev and we decided to keep this patch
in the FreeBSD port as it doesn't seem to be an issue for
other platforms at this time.

-- 
Configure bugmail: https://issues.apache.org/ooo/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

[Bug 118574] jvmwk C++ issue: 'mbstate_t' does not name a type

Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=118574

Pedro Giffuni <pf...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|FIXED                       |WONTFIX

--- Comment #9 from Pedro Giffuni <pf...@apache.org> ---
I think this may be related to FreeBSD libstdc++ configuration.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

DO NOT REPLY [Bug 118574] jvmwk C++ issue: 'mbstate_t' does not name a type

Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=118574

Pedro Giffuni <pf...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #76951|0                           |1
        is obsolete|                            |

--- Comment #3 from Pedro Giffuni <pf...@apache.org> 2011-11-08 13:10:06 UTC ---
Created attachment 76972
  --> https://issues.apache.org/ooo/attachment.cgi?id=76972
Same issue on other places. Updated C++ defines for mstate_t

-- 
Configure bugmail: https://issues.apache.org/ooo/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

DO NOT REPLY [Bug 118574] jvmwk C++ issue: 'mbstate_t' does not name a type

Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=118574

Pedro Giffuni <pf...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
         Resolution|                            |IRREPRODUCIBLE

--- Comment #7 from Pedro Giffuni <pf...@apache.org> 2012-02-20 03:22:36 UTC ---
In a recent build the issue seems to have vanished (again).
I did contact the GNU libiconv maintainers to make sure I am not crazy.

-- 
Configure bugmail: https://issues.apache.org/ooo/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

DO NOT REPLY [Bug 118574] jvmwk C++ issue: 'mbstate_t' does not name a type

Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=118574

Pedro Giffuni <pf...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |STARTED
         AssignedTo|tm@openoffice.org           |pfg@apache.org

--- Comment #2 from Pedro Giffuni <pf...@apache.org> 2011-11-04 03:11:04 UTC ---
I will commit it unless there is a nicer fix.

-- 
Configure bugmail: https://issues.apache.org/ooo/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

DO NOT REPLY [Bug 118574] jvmwk C++ issue: 'mbstate_t' does not name a type

Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=118574

Pedro Giffuni <pf...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #76950|0                           |1
        is obsolete|                            |

--- Comment #1 from Pedro Giffuni <pf...@apache.org> 2011-11-04 03:09:24 UTC ---
Created attachment 76951
  --> https://issues.apache.org/ooo/attachment.cgi?id=76951
Updated C++ defines for mstate_t

This patch basically adds an include to all the files that use
libxml/tree.h :

+#include <cwchar>      // for std::mbstate_t
 #include <libxml/tree.h>


It seems required by FreeBSD's compiler when using the latest
libxml.

-- 
Configure bugmail: https://issues.apache.org/ooo/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.