To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=88160
                 Issue #|88160
                 Summary|64bit: sw/source/core/doc/dbgoutsw.cxx breaks with --e
                        |nable-dbgutil on amd64
               Component|porting
                 Version|DEV300m5
                Platform|Opteron/x86_64
                     URL|
              OS/Version|FreeBSD
                  Status|UNCONFIRMED
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|PATCH
                Priority|P3
            Subcomponent|code
             Assigned to|mh
             Reported by|saperski





------- Additional comments from [EMAIL PROTECTED] Fri Apr 11 02:29:24 +0000 
2008 -------
My --enable-debug --enable-symbols=TRUE --enable-dbgutil build on FreeBSD/amd64
7.0 failed with:

------------------------------
Making: ../../../unxfbsdx/slo/dbgoutsw.obj
ccache c++  -fmessage-length=0 -c -g  -O0   -fvisibility=hidden -I. 
-I../../../unxfbsdx/inc/doc -I../inc -I../../../inc/pch -I../../../inc
-I../../../unx/inc -I../../../unxfbsdx/inc -I.
-I/usr/obj/usr/ports/editors/openoffice.org-3-devel/work/DEV300_m5/solver/300/unxfbsdx/inc/stl
-I/usr/obj/usr/ports/editors/openoffice.org-3-devel/work/DEV300_m5/solver/300/unxfbsdx/inc/external
-I/usr/obj/usr/ports/editors/openoffice.org-3-devel/work/DEV300_m5/solver/300/unxfbsdx/inc
-I/usr/obj/usr/ports/editors/openoffice.org-3-devel/work/DEV300_m5/solenv/unxfbsdx/inc
-I/usr/obj/usr/ports/editors/openoffice.org-3-devel/work/DEV300_m5/solenv/inc
-I/usr/obj/usr/ports/editors/openoffice.org-3-devel/work/DEV300_m5/res
-I/usr/obj/usr/ports/editors/openoffice.org-3-devel/work/DEV300_m5/solver/300/unxfbsdx/inc/stl
-I/usr/obj/usr/ports/editors/openoffice.org-3-devel/work/DEV300_m5/solenv/inc/Xp31
-I/usr/local/jdk1.5.0/include -I/usr/local/jdk1.5.0/include/freebsd
-I/usr/local/jdk1.5.0/include/bsd -I/usr/local/jdk1.5.0/include/linux
-I/usr/local/jdk1.5.0/include/native_threads/include -I/usr/local/include    
-I/usr/obj/usr/ports/editors/openoffice.org-3-devel/work/DEV300_m5/solver/300/unxfbsdx/inc/offuh
-I. -I../../../res -I. -pipe  -fvisibility-inlines-hidden -g -Wall -Wextra
-Wendif-labels -Wshadow -Wno-ctor-dtor-privacy     -Wno-non-virtual-dtor   -fpic
-DFREEBSD -DUNX -DVCL -DGCC -DC341 -DX86_64 -D_STLP_DEBUG -DCVER=C341 -DX86_64 
-D_PTHREADS -D_REENTRANT -DNEW_SOLAR -D_USE_NAMESPACE=1 -DSTLPORT_VERSION=450
-DHAVE_GCC_VISIBILITY_FEATURE -D__DMAKE -DUNIX -DCPPU_ENV=gcc3
-DGXX_INCLUDE_PATH=/usr/include/c++/4.2 -DSUPD=300 -DDEBUG -DDBG_UTIL
-DOSL_DEBUG_LEVEL=2 -DCUI -DSOLAR_JAVA -DDEV300=DEV300   -DACCESSIBLE_LAYOUT
-DSW_DLLIMPLEMENTATION -DSHAREDLIB -D_DLL_   -fexceptions -fno-enforce-eh-specs
-DEXCEPTIONS_ON  -o ../../../unxfbsdx/slo/dbgoutsw.o
/usr/obj/usr/ports/editors/openoffice.org-3-devel/work/DEV300_m5/sw/source/core/doc/dbgoutsw.cxx

/usr/obj/usr/ports/editors/openoffice.org-3-devel/work/DEV300_m5/sw/source/core/doc/dbgoutsw.cxx:
In function 'const String lcl_dbg_out(const SfxItemSet&)':
/usr/obj/usr/ports/editors/openoffice.org-3-devel/work/DEV300_m5/sw/source/core/doc/dbgoutsw.cxx:299:
error: cast from 'const SfxPoolItem*' to 'sal_uInt32' loses precision
dmake:  Error code 1, while making '../../../unxfbsdx/slo/dbgoutsw.obj'

ERROR: Error 65280 occurred while making
/usr/obj/usr/ports/editors/openoffice.org-3-devel/work/DEV300_m5/sw/source/core/doc

Quick patch that works for me:

--- sw/source/core/doc/dbgoutsw.cxx.orig        2008-04-11 03:19:13.586159454 
+0200
+++ sw/source/core/doc/dbgoutsw.cxx     2008-04-11 03:48:29.485837934 +0200
@@ -296,7 +296,7 @@
         if (!bFirst)
             aStr += String(", ", RTL_TEXTENCODING_ASCII_US);
 
-        if ((sal_uInt32)pItem != 0xffffffff)
+        if ((sal_uIntPtr)pItem != ~0UL)
             aStr += lcl_dbg_out(*pItem);
         else
             aStr += String("invalid", RTL_TEXTENCODING_ASCII_US);

What can we do to make this patch portable? (How do I make portable -1? :-)

---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to