shared libs(tcl/swig/ecpg/postgresql)

From: James Thompson <jamest(at)math(dot)ksu(dot)edu>
To: swig(at)cs(dot)utah(dot)edu, pgsql-interfaces(at)postgresql(dot)org
Subject: shared libs(tcl/swig/ecpg/postgresql)
Date: 1999-02-02 19:24:40
Message-ID: Pine.GSO.4.05.9902021258570.14066-100000@noether.math.ksu.edu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces


Sorry for the cross post but I'm not really sure where to look for this
problem. I'm writing a library in C that uses ecpg to embed sql commands
into the c source which accesses a postgresql. I'm trying to use tcl/tk
for the front end. With swig tying the C to the tcl/tk.

I've made my interface file (obe.i) and swig'd it with -tcl8. The wrapper
code compiles and links without errors as far as I can tell. And the
installed lib resides at /usr/local/lib.

Now if I enter tcl and type

tcl> load /usr/local/lib/libobe.so

I get an error about an unresolved symbol no_trans_auto (or something like
that, I'm not at home to check the extact symbol name) no_trans_auto is
part of the ecpg package which is in /usr/local/postgresql

I have my LD_LIBRARY_PATH = /usr/local/postgresql/lib/

an ldd of libobe.so reports statically linked (and if the execute bit
isn't set it complains, anyone know why)

If I attempt to load a library that ecpg depends on I get unresoved
symbols at each library. I ended up with tcl not being able to resolve
symbols in libcrypt.so I simple test file written in C seems to access
the library fine.

I'm sure this is a stupid error on my part, this is my first experience
with using automake, autoconfig, libtool (shared lib creation as well),
and swig and I think I may have finally popped a cranial fuse. I've spent
two days with this reading everything I find on-line and I'm getting
nowhere. Any help would be greatly appreciated.

Additional info:

RH5.1 with RPMs of autoconf, automake, libtool, gcc
Latest TCL/TK downloaded and installed from source last week
Latest swig downloaded from source and installed two days agon
ecpg included with postgresql 6.4.2 downloaded and installed from source

->->->->->->->->->->->->->->->->->->---<-<-<-<-<-<-<-<-<-<-<-<-<-<-<-<-<-<
James Thompson 138 Cardwell Hall Manhattan, Ks 66506 785-532-0561
Kansas State University Department of Mathematics
->->->->->->->->->->->->->->->->->->---<-<-<-<-<-<-<-<-<-<-<-<-<-<-<-<-<-<

Responses

Browse pgsql-interfaces by date

  From Date Subject
Next Message Jackson, DeJuan 1999-02-02 20:29:53 RE: [INTERFACES] Postgres Limitations
Previous Message Stefan Hornburg 1999-02-02 19:09:46 ERROR: RestrictionClauseSelectivity: bad value -1.998477