On Mon, Oct 26, 2009 at 12:54 PM, Petr Vorel via RT <
bug-DBD-Informix@rt.cpan.org> wrote:
Show quoted text> Queue: DBD-Informix
> Ticket <URL:
http://rt.cpan.org/Ticket/Display.html?id=50833 >
> > Yes - we are much closer to finding the issue.
> >
> > It is an 'environment' issue, in the broad sense of the term.
> >
> > The DBD::Informix you have was built using CSDK 3.50 and needs to be run
> > using that.
> I'm still surprised why it's working on perl 5.10.0 and not on 5.10.1 (
> DBD::Informix is the same package). But that's not important.
>
That is puzzling; I don't have a good explanation for it yet.
So, you reinstalled DBD::Informix in a 5.10.1 specific directory, or you're
using the same build in some common directory shared by both 5.10.0 and
5.10.1?
Mostly curiosity - I never use other people's packaged Perl for long (and I
don't modify it - period; not even by adding extensions).
Show quoted text > I'm curious to know what your trouble is with the CSDK 3.50.
> It's 14503.
> $ finderr -14503
> -14503 CSS error loading <csm-name>
>
> Communication Support Services failed to load the library that contains a
> Communications Support Module.
>
> Check the path name of the CSM library in CSS configuration file, and
> Make sure it is a valid shared library.
>
Show quoted text> ------------------------------------------------
> I suppose it's another 'environment' issue (my fault). Is that
> $LD_LIBRARY_PATH issue?
>
Well, yes, and no. And I don't like it much. It is a setup problem of some
sort, but not LD_LIBRARY_PATH.
It is an issue with the concsm.cfg file, normally located in
$INFORMIXDIR/etc, unless you set the INFORMIXCONCSMCFG environment variable.
The sqlhosts file is also a part of the issue - it identifies the CSM entry
in the concsm.cfg file.
It would be helpful to see the entry from the sqlhosts file for server
sund5, and the concsm.cfg file.
To clarify my environment first, I must say I have locations like
Show quoted text> $ ls _informix_* -d
> _informix_2.90.UC2 _informix_3.00.UC3DE _informix_3.50.UC1DE
>
Interesting. GNU getopt() reorders options like '-d' so that they appear
ahead of non-options like the expansion of '*'; I uses systems where I could
not do what you just did. (GNU getopt() behaves in the ordinary way if you
set environment variable POSIXLY_CORRECT.)
Show quoted text> and use symlink to use the "right" version:
> $ ls -l informix
> lrwxrwxrwx 1 root root 21 Oct 26 21:25 informix -> _informix_3.50.UC1DE/
> Can this cause problem?
>
Not if everything is set up correctly - I do this all the time.
Show quoted text> My $LD_LIBRARY_PATH for informix:
> $ echo $LD_LIBRARY_PATH | tr ':' '\n' |grep informix
> /opt/informix/lib/
> /opt/informix/lib/c++
> /opt/informix/lib/cli
> /opt/informix/lib/client
> /opt/informix/lib/dmi
> /opt/informix/lib/esql
> /opt/informix/lib/
>
Unless you are working with all those various sub-systems, you normally only
need $INFORMIXDIR/lib and $INFORMIXDIR/lib/esql on the LD_LIBRARY_PATH.
Certainly, that's all I have unless I'm using the DMI, C++ or ODBC (CLI)
libraries. However, this is just an 'optimization'; it avoids searching too
many directories.
Show quoted text> I have other variables defined ($INFORMIXSERVER, $INFORMIXSQLHOSTS,
> $INFORMIXSQLHOSTS - these are the default ones, and other...) in
> /etc/profile, so even apache server knows about them.
> $ env |grep -i inform
> INFORMIXDIR=/opt/informix/
> INFORMIXSERVER=sund5
> INFORMIXSQLHOSTS=/etc/informix/sqlhosts
>
>
> > As I said at the end of the previous email, you really have two choices..
> > (1) Configure the environment to use the CSDK 3.50 libraries.
> > (2) Rebuild DBD::Informix using CSDK 3.00.
> I'd prefer to use (1).
>
Fair enough. I'd prefer you to be able to do so.
I still don't have an explanation for 5.10.0 OK and 5.10.1 not-OK. That
worries me - I must be overlooking something.
--
Jonathan Leffler <jonathan.leffler@gmail.com> #include <disclaimer.h>
Guardian of DBD::Informix - v2008.0513 -
http://dbi.perl.org
"Blessed are we who can laugh at ourselves, for we shall never cease to be
amused."