Re: Using host variables -- segmentation fault - Mailing list pgsql-novice

From Michael Fuhr
Subject Re: Using host variables -- segmentation fault
Date
Msg-id 20061017044935.GA8686@winnie.fuhr.org
Whole thread Raw
In response to Re: Using host variables -- segmentation fault  (Yadnyesh Joshi <yadnyesh_joshi@yahoo.com>)
List pgsql-novice
On Mon, Oct 16, 2006 at 10:02:12AM -0700, Yadnyesh Joshi wrote:
> I found out what was the problem.
> I had not set LD_LIBRARY_PATH environment variable.
> But I didn't see anything in documentation which says that if I don't set
> the environment variable, I won't be able to use host variables in C.

That's because setting LD_LIBRARY_PATH has nothing to do with using
host variables, at least not directly.  Apparently the library the
runtime linker was finding was incompatible with your object code
but the problem only manifested itself under certain conditions.
What version of ecpg did you use (ecpg --version)?  What version
of libecpg were you linking against?  What does "ldd the_program"
show both with and without LD_LIBRARY_PATH set?

--
Michael Fuhr

pgsql-novice by date:

Previous
From: Yadnyesh Joshi
Date:
Subject: Inserting arrays from C program
Next
From: "Felix Zhang"
Date:
Subject: How to split a table?