Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 22 Mar 1998 22:24:18 -0500 (EST)
From:      Chuck Robey <chuckr@glue.umd.edu>
To:        Andreas Klemm <andreas@klemm.gtn.com>
Cc:        current@FreeBSD.ORG
Subject:   Re: pgaccess doesn't run on -current anymore, possibly shared lib problem ?
Message-ID:  <Pine.BSF.3.96.980322221841.301O-100000@localhost>
In-Reply-To: <19980322222552.44570@klemm.gtn.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 22 Mar 1998, Andreas Klemm wrote:

> Hi !
> 
> During my work on updating the postgresql port I stepped into
> a problem, that pgacces isn't able anymore, to load the postgresql
> .so files ...
> 
> When I committed the postgresql 6.2.1 and pgaccess port months ago
> everything was fine with current. But now it fails.
> 
> Marc Fournier confirmed, that he also has this problem with -current.
> 
> andreas@titan{459} $ pgaccess 
> Error in startup script: couldn't load file "/usr/local/pgsql/lib/libpgtcl.so": Undefined symbol "_PQsetdb" in wish8.0:/usr/local/pgsql/lib/libpgtcl.so
>     while executing
> "load /usr/local/pgsql/lib/libpgtcl.so"
>     (procedure "main" line 3)
>     invoked from within
> "main $argc $argv"
>     (file "/usr/local/bin/pgaccess" line 3172)

I haven't done it lately, but way back when I was experimenting with
using the dlopen functions to load stuff into tcl, the things that had
to be compiled, had to be compiled as shared objects, but they weren't
the same as shared libraries.  You could make a simple object file
compile as a shared object, which would come out as a object.so file
(replace object with whatever name comes to mind) not as a libobject.so
file.  I think strongly that you'd want to take a look at the linking
line that produces the libpgtcl.so .... it's probably not making the
correct type object.  I found the error last time I played with it by
carefully catching every error return from dlopen stuff, and working
with the ld args until it loaded right.

I don't remember the args I used, but it wasn't the same as building a
shared library, and that's probably what's biting.

> 
> 	Andreas ///
> 
> -- 
> Andreas Klemm   http://www.FreeBSD.ORG/~andreas
> powered by ,,symmetric multiprocessor FreeBSD''
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-current" in the body of the message
> 
> 

----------------------------+-----------------------------------------------
Chuck Robey                 | Interests include any kind of voice or data 
chuckr@glue.umd.edu         | communications topic, C programming, and Unix.
213 Lakeside Drive Apt T-1  |
Greenbelt, MD 20770         | I run Journey2 and picnic, both FreeBSD
(301) 220-2114              | version 3.0 current -- and great FUN!
----------------------------+-----------------------------------------------





To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.96.980322221841.301O-100000>