Issue 21388 - Failed to compile sfx2/sdi
Summary: Failed to compile sfx2/sdi
Status: CLOSED FIXED
Alias: None
Product: General
Classification: Code
Component: code (show other issues)
Version: 680
Hardware: PC All
: P1 (highest) Trivial (vote)
Target Milestone: OOo 2.0
Assignee: hjs
QA Contact: issues@framework
URL:
Keywords:
: 21473 22498 23056 (view as issue list)
Depends on:
Blocks: 21389
  Show dependency tree
 
Reported: 2003-10-18 03:34 UTC by foskey
Modified: 2003-12-18 18:20 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
a patch for target.mk (1.51 KB, patch)
2003-10-21 06:53 UTC, khirano
no flags Details | Diff
a patch for docvor.cxx (748 bytes, patch)
2003-10-21 07:02 UTC, khirano
no flags Details | Diff
a very quick fix to /sd/sdi/makefile.mk (1.12 KB, patch)
2003-10-22 15:36 UTC, khirano
no flags Details | Diff
fix "*sid.hid" buildproblems (920 bytes, patch)
2003-10-22 16:28 UTC, hjs
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this issue.
Description foskey 2003-10-18 03:34:21 UTC
Making: ../.pro/misc/sfxslots_sid.hid
../.pro/misc/sfxslots_sid.hid.unxlngi4.pro.tmp: No such file or directory.
dmake:  Error code 1, while making '../.pro/misc/sfxslots_sid.hid'
---* TG_SLO.MK *---
dmake:  Error code 255, while making 'SDI0'
---* TG_SLO.MK *---

ERROR: Error 65280 occurred while making /data2/office/sfx2/sdi

Obviously the unxlngi4 is missing before .pro.  Will investigate further.
Comment 1 thorsten.martens 2003-10-20 09:14:12 UTC
TM->MH: Looks more like a build problem than a framework defect to me.
Please have a look.
Comment 2 khirano 2003-10-21 06:51:36 UTC
In /solenv/inc/target.mk, I replaced SDINAME and SDITARGET with
SDI0NAME and SDI0TARGET (a patch will be attached).
But this didn't create sfxslots.hxx.
So I used the original target.mk to create unxlngi4.pro with
sfxslots.hxx, and then rebuild sfx2 by using the patched target.mk
instead of the original one.  This worked.
Comment 3 khirano 2003-10-21 06:53:27 UTC
Created attachment 10512 [details]
a patch for target.mk
Comment 4 khirano 2003-10-21 07:01:51 UTC
Then the build couldn't compile:
/sfx2/source/doc/docvor.cxx.

This is because "const" is missing in docvor.cxx.

A patch will be attached.

Building sfx2 was completed.
Comment 5 khirano 2003-10-21 07:02:40 UTC
Created attachment 10513 [details]
a patch for docvor.cxx
Comment 6 quetschke 2003-10-21 07:41:47 UTC
*** Issue 21473 has been marked as a duplicate of this issue. ***
Comment 7 quetschke 2003-10-21 07:48:15 UTC
Change OS to All, I got this problem with .NET.
Change prio to 1, this breaks the build.
Comment 8 khirano 2003-10-21 10:33:39 UTC
The same thing happened to svx.
Building svx with the patched target.mk didn't create svxslots.hxx.
So I used the original target.mk to create unxlngi4.pro with
svxslots.hxx, and then rebuild sfx2 by using the patched target.mk
instead of the original one.  This worked, and building svx was completed.
Comment 9 khirano 2003-10-22 00:42:18 UTC
Obviously this target.mk matter affects every project which has /sdi,
such as:
sfx2, offmgr, sd, sch, svx, sc, basctl, sw and starmath.
Comment 10 Martin Hollmichel 2003-10-22 08:45:53 UTC
mh->hjs: also occurs on HEAD, do you have an idea why ?
Comment 11 hjs 2003-10-22 14:45:09 UTC
in "settings.mk" change

COMMON_OUTDIR*=common

to

COMMON_OUTDIR=$(OUTPATH)

to get a quick fix. i'll look into how to align COMMON_OUTDIR handling
in "set_soenv.in", "settings.mk" and "target.mk" :-(
Comment 12 khirano 2003-10-22 15:31:28 UTC

When I came to /sd, I got the following error:
Making: ../.pro/misc/sdslots_sid.hid
../.pro/misc/sdslots_sid.hid.unxlngi4.pro.tmp: No such file or directory.
dmake:  Error code 1, while making '../.pro/misc/sdslots_sid.hid'
---* TG_SLO.MK *---
dmake:  Error code 255, while making 'SDI1'
---* TG_SLO.MK *---

Note that it says 'SDI1' now, not 'SDI0'.
I made a change to /sd/sdi/makefile.mk. 
A patch will be attached.
Comment 13 khirano 2003-10-22 15:36:17 UTC
Created attachment 10551 [details]
a very quick fix to /sd/sdi/makefile.mk
Comment 14 hjs 2003-10-22 16:28:26 UTC
Created attachment 10556 [details]
fix "*sid.hid" buildproblems
Comment 15 hjs 2003-10-22 16:31:52 UTC
please try the attached patch for "solenv/inc/settoings.mk". it should
fix the "*sid.hid" problem for all modules.

-> ken: setting "COMMON_OUTDIR" to "" is not realy helpfull.

Comment 16 foskey 2003-10-22 23:20:50 UTC
The settings.mk patch is approved.  If we use common.pro in the builds
then a few build scripts like tinder-compress will have to be changed.

I will remove the setting of common_dir from set_soenv because it is
not useful.
Comment 17 foskey 2003-10-23 12:35:51 UTC
Committed the docvor patch to the branch.
Comment 18 hjs 2003-10-23 14:20:43 UTC
settings.mk fixed on ooo20031110
Comment 19 hjs 2003-10-23 14:56:02 UTC
btw.: the whole "common.pro" stuff can be switched on (e.g. for
testing puposes) by setting the environment variable

common_build=TRUE

Comment 20 hjs 2003-11-24 15:31:34 UTC
*** Issue 22498 has been marked as a duplicate of this issue. ***
Comment 21 kendy 2003-12-12 07:26:25 UTC
*** Issue 23056 has been marked as a duplicate of this issue. ***
Comment 22 foskey 2003-12-12 21:53:31 UTC
verified.
Comment 23 hjs 2003-12-18 18:20:45 UTC
.