Apache OpenOffice (AOO) Bugzilla – Issue 103736
DEV300_m53: sd and starmath Two global resources have the same identifier.
Last modified: 2009-09-10 14:32:26 UTC
FreeBSD 7.2+DEV300_m53 of build fails at starmath and sd like following. sd: Preprocessor commandline: -I. -I. -I../../../unxfbsdi.pro/inc/app -I/work/OOO/debussy7i386/DEV300_m53/ports/editors/openoffice.org-3-devel/work/DEV300_m53/solver/300/unxfbsdi.pro/inc/offuh -I../inc -I../../../inc/pch -I../../../inc -I../../../unx/inc -I../../../unxfbsdi.pro/inc -I. -I/work/OOO/debussy7i386/DEV300_m53/ports/editors/openoffice.org-3-devel/work/DEV300_m53/solver/300/unxfbsdi.pro/inc/stl -I/work/OOO/debussy7i386/DEV300_m53/ports/editors/openoffice.org-3-devel/work/DEV300_m53/solver/300/unxfbsdi.pro/inc/external -I/work/OOO/debussy7i386/DEV300_m53/ports/editors/openoffice.org-3-devel/work/DEV300_m53/solver/300/unxfbsdi.pro/inc -I/work/OOO/debussy7i386/DEV300_m53/ports/editors/openoffice.org-3-devel/work/DEV300_m53/solenv/unxfbsdi/inc -I/work/OOO/debussy7i386/DEV300_m53/ports/editors/openoffice.org-3-devel/work/DEV300_m53/solenv/inc -I/work/OOO/debussy7i386/DEV300_m53/ports/editors/openoffice.org-3-devel/work/DEV300_m53/res -I/work/OOO/debussy7i386/DEV300_m53/ports/editors/openoffice.org-3-devel/work/DEV300_m53/solver/300/unxfbsdi.pro/inc/stl -I/work/OOO/debussy7i386/DEV300_m53/ports/editors/openoffice.org-3-devel/work/DEV300_m53/solenv/inc/Xp31 -I/usr/local/openjdk6/include -I/usr/local/openjdk6/include/freebsd -I/usr/local/openjdk6/include/bsd -I/usr/local/openjdk6/include/linux -I/usr/local/openjdk6/include/native_threads/include -I/usr/local/include -I/work/OOO/debussy7i386/DEV300_m53/ports/editors/openoffice.org-3-devel/work/DEV300_m53/solver/300/unxfbsdi.pro/inc/offuh -I. -I../../../res -I. -DUNX -DVCL -DGCC -DC341 -DSOLAR_JAVA -DPRODUCT -DPRODUCT_FULL -DNDEBUG -DOSL_DEBUG_LEVEL=0 -DUPDVER="300m53(Build:9412)" ../../../unxfbsdi.pro/inc/menuids3.src /var/tmp/O2YvIl Preprocessor startline: /work/OOO/debussy7i386/DEV300_m53/ports/editors/openoffice.org-3-devel/work/DEV300_m53/solver/300/unxfbsdi.pro/bin/rscpp @/var/tmp/yFrzfo Rsc2 commandline: /work/OOO/debussy7i386/DEV300_m53/ports/editors/openoffice.org-3-devel/work/DEV300_m53/solver/300/unxfbsdi.pro/bin/rsc2 @/var/tmp/QcSpjq Files: /var/tmp/p6BYZV /var/tmp/rZau8N /var/tmp/N8haUY /var/tmp/iriZz7 /var/tmp/uxu4Pa /var/tmp/Oh01Vk /var/tmp/W0UgLV /var/tmp/m2Rs1S /var/tmp/GnCRzR /var/tmp/Ymjs2T /var/tmp/SPHgwT /var/tmp/Am8wqY /var/tmp/elAD10 /var/tmp/S4O3br /var/tmp/KTNzvW /var/tmp/E1mLmE /var/tmp/YqJc7p /var/tmp/O2YvIl reading file /var/tmp/Nf90Hf .... reading file /var/tmp/XNxUfq ...................... reading file /var/tmp/88r1UH ................................................................................................................................................................................................................................................................................................ reading file /var/tmp/NOT0vc .................................................................................................................... reading file /var/tmp/XCPsnH ............ reading file /var/tmp/dWPKcg ....................................................... reading file /var/tmp/CJHnaH ..... reading file /var/tmp/HEOhL9 reading file /var/tmp/OWewOA reading file /var/tmp/2nIYE3 { ^ f4099: "../../../unxfbsdi.pro/inc/accel.src", line 49: Warning in the object (Type: Accelerator): Global resources should have an identifier >= 256. . { ^ f650: "../../../unxfbsdi.pro/inc/accel.src", line 49: Error in the object (Type: Accelerator): An identifier needs to be specified. { ^ f640: "../../../unxfbsdi.pro/inc/accel.src", line 49: Error: syntax error f256: Error: !! 2 Error found!! Error starting rsc2 compiler dmake: Error code 1, while making '../../../unxfbsdi.pro/srs/app.srs' ERROR: Error 65280 occurred while making /work/OOO/debussy7i386/DEV300_m53/ports/editors/openoffice.org-3-devel/work/DEV300_m53/sd/source/ui/app rmdir /tmp/72929 starmath: Files: /var/tmp/eScfq3 /var/tmp/3LijOT /var/tmp/514MMV /var/tmp/CWQq6Z reading file /var/tmp/ZkMash ........................................................................ reading file /var/tmp/RgCGku . reading file /var/tmp/Fy1xII ................................................................................................................................................................................................ reading file /var/tmp/xYVQO1 . ItemList = ^ f641: "../unxfbsdi.pro/inc/menu.src", line 66: Error in the object (Type: Accelerator, 20815): Two global resources have the same identifier. f256: Error: !! 1 Error found!! Error starting rsc2 compiler
.
dr, please have a look. There were some issues with sc inc/sc.hrc as of dupe ids, looks like fixed but failed . HR will do the m54
build breaker -> this is a P1
will look myself ...
in starmath this should fix it: vm-buildclient7[5:01pm][/tmp/ivo/starmath]>svn diff Index: source/makefile.mk =================================================================== --- source/makefile.mk (revision 274201) +++ source/makefile.mk (working copy) @@ -113,7 +113,6 @@ # --- Targets ------------------------------------------------------- -LOCALIZE_ME = menu_tmpl.src .INCLUDE : target.mk according to MBA the content of menu_tmpl.src is no longer needed
cl please have a look whats the problen in sd ....
can someone attach "../../../unxfbsdi.pro/inc/accel.src". I have not FreeBSD to reproduce this...
this is OS indenpendend ...
so I gather the staroffice m53 code line is also not yet available? And as a developer and not an release eng I'm not able to use that. So I could hand create an OOo build environment or just take a look at that src file. Since I have to do the first option, this has to wait until tomorow......
Created attachment 63706 [details] accel.src
cl: I provided accel.src for you. thanks
@maho: thanks! @ihi: If this is OS indipendend, why are there fresh and working m53 builds at sun? Have you fixed is already or is this indeed freebsd only? Anyway, the accel.src looks fine and all the defines are there. Not sure what went wrong, maybe a build setup problem at maho? Can anybody else confirm this? Since accelerators are xml based for a year now, I will see if sd builds fine without the accelerator src files...
cl, I don't know how this issue come into the m53. Yes there are fresh m53 builds but keep in mind that we usually don't do fully builds from solenv. This can also be caused by a missing dependency ... no idea. I was looking with MBA on this issue already yesterday but these preprocessor nightmare done there does't make it easy to debug it. According to MBA those accelerators are no longer needed there at all.
Created attachment 63715 [details] patch for sd module
cl>ihi: the attached patch fixes the build issue in sd and can be applied to the master
cl: thanks for the patch. now I have just started the full build with two patches.
sd is still broken, see attached build log file
Created attachment 63718 [details] error build log
then this is unix only as I have not seen the error on window. checking out now...
my unxlngi6.pro also builds nicely on m53, checking whats new in m53
no changes from m52 to m53 in sd, checking svx and sfx2 next...
there are no changes to m53 who could have caused this, so I suspect this build error is either older or there is something wrong with the build environment... cl->maho: how is your patch comming?
a build WITH_LANG=de runs perfect without any build issue?!?
no that also fails, thanks for the hint
Created attachment 63725 [details] work around patch
to workaround the build problem in sd you can apply the attached patch.txt to your solenv/inc/_tg_srs.mk since this is not a complete fix, I hand over this issue to ause who kindly introduced this new 'feature' :-)
hi, my build were broken at starmath with svn diff Index: source/makefile.mk =================================================================== --- source/makefile.mk (revision 274201) +++ source/makefile.mk (working copy) @@ -113,7 +113,6 @@ # --- Targets ------------------------------------------------------- -LOCALIZE_ME = menu_tmpl.src .INCLUDE : target.mk like following: Preprocessor commandline: -I. -I. -I../unxfbsdi.pro/inc/starmath -I../inc -I../inc/pch -I../inc -I../unx/inc -I../unxfbsdi.pro/inc -I. -I/work/OOO/debussy7i386/DEV300_m53/ports/editors/openoffice.org-3-devel/work/DEV300_m53/solver/300/unxfbsdi.pro/inc/stl -I/work/OOO/debussy7i386/DEV300_m53/ports/editors/openoffice.org-3-devel/work/DEV300_m53/solver/300/unxfbsdi.pro/inc/external -I/work/OOO/debussy7i386/DEV300_m53/ports/editors/openoffice.org-3-devel/work/DEV300_m53/solver/300/unxfbsdi.pro/inc -I/work/OOO/debussy7i386/DEV300_m53/ports/editors/openoffice.org-3-devel/work/DEV300_m53/solenv/unxfbsdi/inc -I/work/OOO/debussy7i386/DEV300_m53/ports/editors/openoffice.org-3-devel/work/DEV300_m53/solenv/inc -I/work/OOO/debussy7i386/DEV300_m53/ports/editors/openoffice.org-3-devel/work/DEV300_m53/res -I/work/OOO/debussy7i386/DEV300_m53/ports/editors/openoffice.org-3-devel/work/DEV300_m53/solver/300/unxfbsdi.pro/inc/stl -I/work/OOO/debussy7i386/DEV300_m53/ports/editors/openoffice.org-3-devel/work/DEV300_m53/solenv/inc/Xp31 -I/usr/local/openjdk6/include -I/usr/local/openjdk6/include/freebsd -I/usr/local/openjdk6/include/bsd -I/usr/local/openjdk6/include/linux -I/usr/local/openjdk6/include/native_threads/include -I/usr/local/include -I/work/OOO/debussy7i386/DEV300_m53/ports/editors/openoffice.org-3-devel/work/DEV300_m53/solver/300/unxfbsdi.pro/inc/offuh -I. -I../res -I. -DUNX -DVCL -DGCC -DC341 -DSOLAR_JAVA -DPRODUCT -DPRODUCT_FULL -DNDEBUG -DOSL_DEBUG_LEVEL=0 -DUPDVER="300m53(Build:9412)" ../unxfbsdi.pro/misc/starmath/smres.src /var/tmp/kuE5Ne Preprocessor startline: /work/OOO/debussy7i386/DEV300_m53/ports/editors/openoffice.org-3-devel/work/DEV300_m53/solver/300/unxfbsdi.pro/bin/rscpp @/var/tmp/1W32dj cpp: line 34601, Fatal error: Cannot open include file "menu.src" #include "menu.src" Error starting preprocessor dmake: Error code 1, while making '../unxfbsdi.pro/srs/smres.srs' ERROR: Error 65280 occurred while making /work/OOO/debussy7i386/DEV300_m53/ports/editors/openoffice.org-3-devel/work/DEV300_m53/starmath/source rmdir /tmp/76901
sd module is broken with 2009/07/24 10:33:00 +0000: diff.txt patch for sd module (text/plain) cl like following. Preprocessor commandline: -I. -I. -I../../../unxfbsdi.pro/inc/app -I/work/OOO/debussy7i386/DEV300_m53/ports/editors/openoffice.org-3-devel/work/DEV300_m53/solver/300/unxfbsdi.pro/inc/offuh -I../inc -I../../../inc/pch -I../../../inc -I../../../unx/inc -I../../../unxfbsdi.pro/inc -I. -I/work/OOO/debussy7i386/DEV300_m53/ports/editors/openoffice.org-3-devel/work/DEV300_m53/solver/300/unxfbsdi.pro/inc/stl -I/work/OOO/debussy7i386/DEV300_m53/ports/editors/openoffice.org-3-devel/work/DEV300_m53/solver/300/unxfbsdi.pro/inc/external -I/work/OOO/debussy7i386/DEV300_m53/ports/editors/openoffice.org-3-devel/work/DEV300_m53/solver/300/unxfbsdi.pro/inc -I/work/OOO/debussy7i386/DEV300_m53/ports/editors/openoffice.org-3-devel/work/DEV300_m53/solenv/unxfbsdi/inc -I/work/OOO/debussy7i386/DEV300_m53/ports/editors/openoffice.org-3-devel/work/DEV300_m53/solenv/inc -I/work/OOO/debussy7i386/DEV300_m53/ports/editors/openoffice.org-3-devel/work/DEV300_m53/res -I/work/OOO/debussy7i386/DEV300_m53/ports/editors/openoffice.org-3-devel/work/DEV300_m53/solver/300/unxfbsdi.pro/inc/stl -I/work/OOO/debussy7i386/DEV300_m53/ports/editors/openoffice.org-3-devel/work/DEV300_m53/solenv/inc/Xp31 -I/usr/local/openjdk6/include -I/usr/local/openjdk6/include/freebsd -I/usr/local/openjdk6/include/bsd -I/usr/local/openjdk6/include/linux -I/usr/local/openjdk6/include/native_threads/include -I/usr/local/include -I/work/OOO/debussy7i386/DEV300_m53/ports/editors/openoffice.org-3-devel/work/DEV300_m53/solver/300/unxfbsdi.pro/inc/offuh -I. -I../../../res -I. -DUNX -DVCL -DGCC -DC341 -DSOLAR_JAVA -DPRODUCT -DPRODUCT_FULL -DNDEBUG -DOSL_DEBUG_LEVEL=0 -DUPDVER="300m53(Build:9412)" ../../../unxfbsdi.pro/inc/menuids3.src /var/tmp/5PeLJx Preprocessor startline: /work/OOO/debussy7i386/DEV300_m53/ports/editors/openoffice.org-3-devel/work/DEV300_m53/solver/300/unxfbsdi.pro/bin/rscpp @/var/tmp/EE3M7v Rsc2 commandline: /work/OOO/debussy7i386/DEV300_m53/ports/editors/openoffice.org-3-devel/work/DEV300_m53/solver/300/unxfbsdi.pro/bin/rsc2 @/var/tmp/Mw60qw Files: /var/tmp/0cHgiT /var/tmp/NS94SC /var/tmp/r97yQE /var/tmp/0VRSFN /var/tmp/JLfX64 /var/tmp/U74h2e /var/tmp/9ZkZ3G /var/tmp/77ep3z /var/tmp/UKAR7p /var/tmp/3k600j /var/tmp/gAlv4l /var/tmp/UATUuu /var/tmp/oQXFnE /var/tmp/7Kzbc3 /var/tmp/qFRLXH /var/tmp/5PeLJx reading file /var/tmp/Xp5yk0 .. reading file /var/tmp/BcOmBh ...................... reading file /var/tmp/4eRgjv ................................................................................................................................................................................................................................................................................................ reading file /var/tmp/RCn6HV .................................................................................................................... reading file /var/tmp/p7Mwcp ............ reading file /var/tmp/depKyR ....................................................... reading file /var/tmp/Y0HcGe ..... reading file /var/tmp/Hchd3z reading file /var/tmp/CD8xgV reading file /var/tmp/xQaxSg reading file /var/tmp/ohW3JC reading file /var/tmp/xZdxVY reading file /var/tmp/e4VrUk . ItemList = ^ f641: "../../../unxfbsdi.pro/inc/popup2.src", line 50: Error in the object (Type: Menu, 20043): Two global resources have the same identifier. . ItemList = ^ f641: "../../../unxfbsdi.pro/inc/popup2.src", line 92: Error in the object (Type: Menu, 20044): Two global resources have the same identifier. . ItemList = ^ f641: "../../../unxfbsdi.pro/inc/popup2.src", line 136: Error in the object (Type: Menu, 20066): Two global resources have the same identifier. . ItemList = ^ f641: "../../../unxfbsdi.pro/inc/popup2.src", line 182: Error in the object (Type: Menu, 20064): Two global resources have the same identifier. . ItemList = ^ f641: "../../../unxfbsdi.pro/inc/popup2.src", line 221: Error in the object (Type: Menu, 20065): Two global resources have the same identifier. . ItemList = ^ f641: "../../../unxfbsdi.pro/inc/popup2.src", line 261: Error in the object (Type: Menu, 20059): Two global resources have the same identifier. . ItemList = ^ f641: "../../../unxfbsdi.pro/inc/popup2.src", line 300: Error in the object (Type: Menu, 20058): Two global resources have the same identifier. . ItemList = ^ f641: "../../../unxfbsdi.pro/inc/popup2.src", line 341: Error in the object (Type: Menu, 20048): Two global resources have the same identifier. . ItemList = ^ f641: "../../../unxfbsdi.pro/inc/popup2.src", line 383: Error in the object (Type: Menu, 20061): Two global resources have the same identifier. . ItemList = ^ f641: "../../../unxfbsdi.pro/inc/popup2.src", line 427: Error in the object (Type: Menu, 20060): Two global resources have the same identifier. . ItemList = ^ f641: "../../../unxfbsdi.pro/inc/popup2.src", line 472: Error in the object (Type: Menu, 20063): Two global resources have the same identifier. . ItemList = ^ f641: "../../../unxfbsdi.pro/inc/popup2.src", line 516: Error in the object (Type: Menu, 20045): Two global resources have the same identifier. . ItemList = ^ f641: "../../../unxfbsdi.pro/inc/popup2.src", line 551: Error in the object (Type: Menu, 20049): Two global resources have the same identifier. . ItemList = ^ f641: "../../../unxfbsdi.pro/inc/popup2.src", line 592: Error in the object (Type: Menu, 20052): Two global resources have the same identifier. . ItemList = ^ f641: "../../../unxfbsdi.pro/inc/popup2.src", line 637: Error in the object (Type: Menu, 20053): Two global resources have the same identifier. . ItemList = ^ f641: "../../../unxfbsdi.pro/inc/popup2.src", line 672: Error in the object (Type: Menu, 20050): Two global resources have the same identifier. . ItemList = ^ f641: "../../../unxfbsdi.pro/inc/popup2.src", line 695: Error in the object (Type: Menu, 20069): Two global resources have the same identifier. . ItemList = ^ f641: "../../../unxfbsdi.pro/inc/popup2.src", line 727: Error in the object (Type: Menu, 20091): Two global resources have the same identifier. f256: Error: !! 18 Error found!! Error starting rsc2 compiler dmake: Error code 1, while making '../../../unxfbsdi.pro/srs/app.srs' ERROR: Error 65280 occurred while making /work/OOO/debussy7i386/DEV300_m53/ports/editors/openoffice.org-3-devel/work/DEV300_m53/sd/source/ui/app rmdir /tmp/76929
cl: your last patch requires modification but it works for me; at least sd project.
Created attachment 63732 [details] a workaround by cl for sd project
ihi: could you please re-investigate patch to starmath? it is still broken. temporary reassign to ihi.
ihi: how to reproduce: 1. start with clean build 2. cd DEV300_m53/starmath; rm -rf unxfbsdi.pro; build 3. broken 4. apply your patch (comment LOCALIZE_ME) 5. build 6. ok BUT: 1. start with clean build 2. cd DEV300_m53/starmath; rm -rf unxfbsdi.pro 3. apply your patch (comment LOCALIZE_ME) 4. build 5. broken
Created attachment 63735 [details] a workaroud for starmath
ihi: I attached a patch including a possible fix for starmath. it at least build with 1. start with clean build 2. cd DEV300_m53/starmath; rm -rf unxfbsdi.pro 3. apply my last patch 4. build
all: full clean build was successful: DEV300_m53+FreeBSD 7.2/i386+ http://www.openoffice.org/nonav/issues/showattachment.cgi/63735/patch-i103736 .
I will have a look onto this on monday again. Btw better to fix the "tg_srs.mk" instead of the underscore version as it is generated by mkunroll
*** Issue 103786 has been marked as a duplicate of this issue. ***
Created attachment 63823 [details] masterfixed for m54
tg_srs.mk is fixed now - hiding the unused .src again...
I submitted issue 103923 to remove unused src files from sd module. Duplication in building src files will be resolved as soon as we move context menu to xml format...
m54 no longer breaks
hjs: DEV300_m54 is okay with your masterfrix and/or without this patch on FreeBSD. you can close this issue. thank you.
hjs: on MacOSX PPC/Intel I can build without errors on DEV300_m54. thanks!