shared libs(tcl/swig/ecpg/postgresql)

Поиск
Список
Период
Сортировка
От James Thompson
Тема shared libs(tcl/swig/ecpg/postgresql)
Дата
Msg-id Pine.GSO.4.05.9902021258570.14066-100000@noether.math.ksu.edu
обсуждение исходный текст
Ответы Re: [INTERFACES] shared libs(tcl/swig/ecpg/postgresql)  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: [INTERFACES] shared libs(tcl/swig/ecpg/postgresql)  (Michael Meskes <Michael_Meskes@usa.net>)
Список 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
->->->->->->->->->->->->->->->->->->---<-<-<-<-<-<-<-<-<-<-<-<-<-<-<-<-<-<



В списке pgsql-interfaces по дате отправления:

Предыдущее
От: Michael Meskes
Дата:
Сообщение: Re: [INTERFACES] LinuxODBC
Следующее
От: "Jackson, DeJuan"
Дата:
Сообщение: RE: [INTERFACES] Postgres Limitations