Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 188294 - db2 sqlj.install command fails dues to libraries not found with ibm-jdk-1.4.2.9
Summary: db2 sqlj.install command fails dues to libraries not found with ibm-jdk-1.4.2.9
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Java (show other bugs)
Hardware: x86 Linux
: High minor (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-08-10 05:54 UTC by Wil Reichert
Modified: 2008-02-26 17:00 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Wil Reichert 2007-08-10 05:54:47 UTC
ebuild / eselect adds to the system LDPATH:
/opt/ibm-jdk-bin-1.4.2.9/jre/bin
/opt/ibm-jdk-bin-1.4.2.9/jre/bin/classic

It also needs 
/opt/ibm-jdk-bin-1.4.2.9/jre/lib
/opt/ibm-jdk-bin-1.4.2.9/lib


Reproducible: Always

Steps to Reproduce:
install ibm jdk 1.4.2.9
eselect java-vm set system ibm-jdk-bin-1.4
*** install db2 ***
db2 create database test
db2 connect to test
call sqlj.install_jar('file:/tmp/test.jar', 'test')

Actual Results:  
you get the error

SQL4301N Java or .NET interpreter startup or communication failed, reason code "2 ".


I doubt many people run db2 on Gentoo, but I'm sure this error could be stumbled upon elsewhere.
Comment 1 Petteri Räty (RETIRED) gentoo-dev 2007-08-10 07:46:12 UTC
Is db2 something you can install using emerge?
Comment 2 Wil Reichert 2007-08-13 16:22:02 UTC
No.  I filed this bug as I was supposing this path issue could effect
other programs as well.  If its not a concern feel free to close this
bug.
Comment 3 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2008-02-26 17:00:17 UTC
(In reply to comment #0)
> It also needs 
> /opt/ibm-jdk-bin-1.4.2.9/jre/lib
> /opt/ibm-jdk-bin-1.4.2.9/lib

There are no .so libraries to link in these paths, so no use for them in LDPATH. So either it's something else, or the installer is weird and searches LDPATH for jar files or something similar.

> Reproducible: Always
> 
> Steps to Reproduce:
> install ibm jdk 1.4.2.9
> eselect java-vm set system ibm-jdk-bin-1.4

This command sets the generation-2 system VM, not generation-1, so it can't affect LDPATH anyway. Suggests your assumption could be wrong and it must be something else indeed?

In any case, when gen-1 is gone, so should be JDK paths in LDPATH, most probably.

I'm closing as NEEDINFO, feel free to reopen and address my concerns above :)