Issue 34430 - --with-system-db3 does not use system's db.jar (/usr/lib/db-3.2.jar in this case)
Summary: --with-system-db3 does not use system's db.jar (/usr/lib/db-3.2.jar in this c...
Status: CLOSED FIXED
Alias: None
Product: utilities
Classification: Unclassified
Component: code (show other issues)
Version: 680m54
Hardware: All Linux, all
: P3 Trivial (vote)
Target Milestone: OOo 2.0
Assignee: rene
QA Contact: Unknown
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-21 10:32 UTC by geki
Modified: 2006-06-13 13:55 UTC (History)
2 users (show)

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


Attachments
diff for db4.2 in SRC680_m71s1 on MacOSX + modified with 37733 (48.15 KB, patch)
2005-01-23 00:45 UTC, eric.bachard
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this issue.
Description geki 2004-09-21 10:32:39 UTC
I use --with-system-db3 and it does not copy /usr/lib/db-3.2.jar to
solver/unx.../bin/db.jar

please anyone fix that, thanks :)


=============
Building project xmlhelp
=============
/var/tmp/portage/openoffice-cvs-20040829/work/OpenOffice/xmlhelp/source/com/sun/star/help
mkout -- version: 1.3
Making dpj...

------------------------------
Making: ../../../../../unxlngi4.pro/misc/com_sun_star_help.dpc
dmake subdmake=true  -f makefile.mk strip="true" product="full" depend=t ALLDPC
------------------------------
No Dependencies
javac -classpath
".:../../../../../unxlngi4.pro/class:/opt/blackdown-jdk-1.4.2_rc1/jre/lib/rt.jar:.:/var/tmp/portage/openoffice-cvs-20040829/work/OpenOffice/solver/680/unxlngi4.pro/bin/jaxp.jar:/var/tmp/portage/openoffice-cvs-20040829/work/OpenOffice/solver/680/unxlngi4.pro/bin/parser.jar:/var/tmp/portage/openoffice-cvs-20040829/work/OpenOffice/solver/680/unxlngi4.pro/bin/xt.jar:/var/tmp/portage/openoffice-cvs-20040829/work/OpenOffice/solver/680/unxlngi4.pro/bin/unoil.jar:/var/tmp/portage/openoffice-cvs-20040829/work/OpenOffice/solver/680/unxlngi4.pro/bin/ridl.jar:/var/tmp/portage/openoffice-cvs-20040829/work/OpenOffice/solver/680/unxlngi4.pro/bin/jurt.jar:/var/tmp/portage/openoffice-cvs-20040829/work/OpenOffice/solver/680/unxlngi4.pro/bin/jut.jar:/var/tmp/portage/openoffice-cvs-20040829/work/OpenOffice/solver/680/unxlngi4.pro/bin/xmlsearch.jar:/var/tmp/portage/openoffice-cvs-20040829/work/OpenOffice/solver/680/unxlngi4.pro/bin/db.jar"
-d ../../../../../unxlngi4.pro/class    HelpCompiler.java                      
          HelpLinker.java                                        
HelpContentIdentifier.java              HelpProvider.java                      
HelpContent.java                        HelpOutputStream.java                  
HelpDatabases.java                      HelpURLStreamHandlerFactory.java       
HelpURLStreamHandler.java               FileURLStreamHandlerWithNotify.java    
HelpURLStreamHandlerWithJars.java       HelpURLConnection.java                 
HelpURLConnectionWithJars.java          HelpURLParameter.java                  
HelpResultSetFactory.java               HelpDynamicResultSet.java              
HelpResultSetBase.java                  HelpResultSet.java                     
HelpResultSetForRoot.java               HelpIndexer.java                       
HelpKeyword.java                        HelpTransformer.java                   
HelpPackager.java                     CreateDb.java                            
XSLData.java                            StringDbt.java
HelpIndexer.java:83: package com.sleepycat.db does not exist
import com.sleepycat.db.*;
^
HelpLinker.java:93: package com.sleepycat.db does not exist
import com.sleepycat.db.Db;
                        ^
HelpLinker.java:94: package com.sleepycat.db does not exist
import com.sleepycat.db.DbException;
                        ^
HelpLinker.java:95: package com.sleepycat.db does not exist
import com.sleepycat.db.Dbt;
                        ^
Comment 1 hennes.rohling 2004-09-23 10:58:15 UTC
Please assign the task to the one who introduced the configure switch !
Comment 2 geki 2004-09-23 14:23:56 UTC
sorry, i spoke on IRC with _rene_ to issue it like this, may be i missunderstood
something.

caolan and _rene_ (names of IRC channel) work on some --with-system-* switches
but I do not know who exactly did which switch.

-> cmc
Comment 3 geki 2004-09-27 01:00:32 UTC
ok, i copied my system's db.jar file and got this error:

java
-Djava.library.path=/var/tmp/portage/openoffice-cvs-20040829/work/OpenOffice/solver/680/unxlngi4.pro/lib
-cp
.:../../unxlngi4.pro/class:/opt/blackdown-jdk-1.4.2_rc1/jre/lib/rt.jar:.:/var/tmp/portage/openoffice-cvs-20040829/work/OpenOffice/solver/680/unxlngi4.pro/bin/jaxp.jar:/var/tmp/portage/openoffice-cvs-20040829/work/OpenOffice/solver/680/unxlngi4.pro/bin/parser.jar:/var/tmp/portage/openoffice-cvs-20040829/work/OpenOffice/solver/680/unxlngi4.pro/bin/xt.jar:/var/tmp/portage/openoffice-cvs-20040829/work/OpenOffice/solver/680/unxlngi4.pro/bin/unoil.jar:/var/tmp/portage/openoffice-cvs-20040829/work/OpenOffice/solver/680/unxlngi4.pro/bin/ridl.jar:/var/tmp/portage/openoffice-cvs-20040829/work/OpenOffice/solver/680/unxlngi4.pro/bin/jurt.jar:/var/tmp/portage/openoffice-cvs-20040829/work/OpenOffice/solver/680/unxlngi4.pro/bin/jut.jar:/var/tmp/portage/openoffice-cvs-20040829/work/OpenOffice/solver/680/unxlngi4.pro/bin/xmlsearch.jar:/var/tmp/portage/openoffice-cvs-20040829/work/OpenOffice/solver/680/unxlngi4.pro/bin/db.jar:/var/tmp/portage/openoffice-cvs-20040829/work/OpenOffice/solver/680/unxlngi4.pro/bin/xmlsearch.jar:/var/tmp/portage/openoffice-cvs-20040829/work/OpenOffice/solver/680/unxlngi4.pro/bin/xmlhelp.jar
com.sun.star.help.HelpLinker @/var/tmp/portage/openoffice-cvs-20040829/temp/mkWZy86c
Exception in thread "main" java.lang.UnsatisfiedLinkError: no db_java-3.2 in
java.library.path
        at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1491)
        at java.lang.Runtime.loadLibrary0(Runtime.java:788)
        at java.lang.System.loadLibrary(System.java:834)
        at com.sleepycat.db.Db.load_db(Db.java:554)
        at com.sleepycat.db.Db.<clinit>(Db.java:574)
        at com.sun.star.help.HelpLinker.link(HelpLinker.java:327)
        at com.sun.star.help.HelpLinker.main(HelpLinker.java:207)
dmake:  Error code 1, while making '../../unxlngi4.pro/bin/schart_en-US.zip'
dmake:  '../../unxlngi4.pro/bin/schart_en-US.zip' removed.
'---* tg_merge.mk *---'

ERROR: Error 65280 occurred while making
/var/tmp/portage/openoffice-cvs-20040829/work/OpenOffice/helpcontent2/util/schart
Comment 4 caolanm 2004-09-27 09:27:35 UTC
we were discussing this at the conference recently, and are trying to get
agreement with Hamburg devel that using db4 as the default OpenOffice db would
be possible. If so then the various problems that rene outlines there would go away.
Comment 5 caolanm 2004-09-27 13:25:52 UTC
We'll revisit this when
http://www.openoffice.org/servlets/ReadMsg?list=dev&msgNo=12152 gets resolved.
If they move up to db4 then stuff gets a lot easier. 
Comment 6 sparcmoz 2004-10-04 01:40:32 UTC
*** Issue 34903 has been marked as a duplicate of this issue. ***
Comment 7 caolanm 2004-10-04 08:25:20 UTC
Apparently they're going to move to db4 alright. So we'll wait until they do and
then swoop down and make whatever configure db4 options we need and all will be
well.
Comment 8 sparcmoz 2004-12-17 09:58:56 UTC
linux sparc will not build on 680 with db3 but builds wih db4 OK. So I build 680
with db4 from SRX645_m52. i am not sure what to do, should i provide patches for
db4 or just wait? why is 680 still with db3 when 645 has db4?
Comment 9 geki 2004-12-17 11:40:15 UTC
i guess the Devs are very busy with all kind of stuff for OOo 2.0.
you may post DB4 patches for OOo 1.9 to test. at least for me ;)

Thanks!
Comment 10 sparcmoz 2004-12-17 12:05:59 UTC
geki: as joergB has explained for me, i am probably using some weird mixture of
system db plus the internal db4, anyway the patches which may be of interest are
at http://qa.openoffice.org/issues/show_bug.cgi?id=38008 but the value of these
is very doubtful...

Comment 11 geki 2004-12-17 12:09:37 UTC
Thanks! I will dig into them soon.
Comment 12 sparcmoz 2004-12-18 03:49:23 UTC
sparcmoz--> geki: in m66 the system-db libraries are defined in
solenv/inc/libs.mk. This is used in linking xmlhelp. for example:

.IF "$(SYSTEM_DB3)"=="YES"
BERKELEYLIB=-ldb-4
BERKELEYCPPLIB=-ldb_cxx-4
.ELSE
BERKELEYLIB=-ldb-4.3
BERKELEYCPPLIB=-ldb_cxx-4.3
.ENDIF
Comment 13 sparcmoz 2005-01-03 07:13:15 UTC
patches for using system db4 on linux sparc (debian) with SRC680_m68 are at
issue 38686. These are derived by trial-and-error but the help seems to work ok.
Comment 14 geki 2005-01-13 09:15:13 UTC
btw, Rene diff'ed OOo 1.1.3 to OOo 1.1.4 to get system db4 patchset for OOo 1.9
http://people.debian.org/~rene/openoffice.org/db-upgrade-and-system-db-680.diff

cmc, please update OOo 1.1.4 source to let office_config/configure.in find
Gentoo's system db4.2 files:

/usr/include/db$DB_VERSION (instead of db$DB_VERSION_MAJOR)
/usr/include/db4.2/db_cxx.h
/usr/lib/db-4.2.jar

Thanks all! :)
Comment 15 rene 2005-01-13 09:58:55 UTC
a) 1.1.x has to system-db (only ooo-build has) 
 
b) I don't like alpha patches (whose I even didn't test myself yet) be pasted 
to issues 
 
c) jars are architecture-independent. According to FHS they should be 
in /usr/share then.. Fix that ;-) I won't look for them in /usr/lib, the 
current check is to longish and ugly anyway. BTW, you know that there is 
--with-db-jar=...? 
 
d) wrt the includes I'll look 
 
(ah, and reassign to me) 
 
Regards, 
 
Rene 
Comment 16 rene 2005-01-13 09:59:35 UTC
s/to/no/ 
Comment 17 geki 2005-01-13 10:20:45 UTC
well, at least with your patch there is no --with-db-jar=... switch on
'./configure --help' or README :)

searching your patchset did not show up any db-jar thinggie either. may be i
just don't see it. ;)

forgot the cws full address of the bdb4 cws like cws_srx645_bdb4 is not there

bdb or db or db4 instead of bdb4 neither. EIS does not show it, still...
Comment 18 sparcmoz 2005-01-13 10:43:07 UTC
what is the status of solenv/inc/libs.mk ? is this the right way to do
wih-system-things or is it the bad way ?
Comment 19 rene 2005-01-13 11:15:10 UTC
sparcmoz: sorry, didn't see you already had patches :( 
Comment 20 rene 2005-01-13 11:23:06 UTC
> what is the status of solenv/inc/libs.mk ? is this the right way to do 
> wih-system-things or is it the bad way ? 
 
Should be OK to use. It has the advantage that necessary stuff is at one point. 
Although that is currently not consistent in whole office anyhow... 
 
Regards, 
 
Rene 
Comment 21 rene 2005-01-13 11:25:48 UTC
geki: 
 
~/ooo-build_ooo-build-1-3/patches/OOO_1_1> grep db-jar config-switches.diff 
+AC_ARG_WITH(db-jar, 
+[  --with-db-jar=JARFILE          Specify path to jarfile manually ], 
Comment 22 rene 2005-01-13 11:26:46 UTC
oh, and you of course are right, the AC_WITH_* is not included in that alpha 
patch (yet) ;) 
Comment 23 geki 2005-01-13 11:34:36 UTC
well, i just would love to see --with-system-db for db-4.2 in OO 2.0 :)
since when is system-db patch again in ximian? thought it was dropped?! well, it
was by some time... :/
Comment 24 eric.bachard 2005-01-23 00:44:35 UTC
ericb-> rene 

The following patch is the diff between 1.1.3 and 1.1.4 you send me *modified* 
with the change I proposed in
<http://qa.openoffice.org/issues/show_bug.cgi?id=37733>

I just use this to build SRC680_m71s1 on MAc OSX . If I remember correctly, I
have one or two other changes to add, because libdb_java wasn't correctly
delivered.  Next rebuild, I'll complete

 
Regards,
Comment 25 eric.bachard 2005-01-23 00:45:54 UTC
Created attachment 21767 [details]
diff for db4.2 in SRC680_m71s1 on MacOSX + modified with 37733
Comment 26 rene 2005-03-31 08:09:17 UTC
will fix it in cws systemdb
Comment 27 rene 2005-03-31 08:28:32 UTC
fixed in cws systemdb
Comment 28 eric.bachard 2005-04-06 09:40:52 UTC
Verified with Linux PPC (without Java) build, milestone m90s1, with following
action :

Tools -> Package manager...

I've choosen :
My Packages -> sqlite-sdbc-0.1.1.zip

3 entries are present, with given status :

DataAccess.xcu                  Enabled
sqlite-sdbc-impl.uno.so     Disabled
sqlite-sdbc.uno.so              Enabled

Following JoergB mind on IRC, means it works

-- 
eric bachard



Comment 29 hjs 2005-04-07 15:40:29 UTC
give it a target...
Comment 30 geki 2006-06-13 13:55:01 UTC
closing...