For some reason, I simply cannot get the nspostgres.so driver to
load. Both PostgreSQL 7 and AOLserver 3 build with no problems
on my Linux system (Caldera 2.2). I'm really puzzled as to why
the nspostgres.so driver will not load due to an unresolved
'crypt' symbol. I've included relevant excerpts below. I'm using
the nspostgres driver included with AOLserver 3. I can't tell from
the various pieces of documentation whether I should be using
the AOLserver-provided driver, or the 'custom' one from openacs.
I've tried putting LIBS+= -l crypt everywhere. Using nm, I can
see the crypt symbol in the various libraries, but it still
doesn't work. Any ideas?
database parts of nsd.tcl
set servername "teachit"
set serverdesc "origen"
set homedir [file dirname [ns_info config]]
set bindir [file dirname [ns_info nsd]]
#set pageroot ${homedir}/servers/${servername}/pages
set pageroot /web/teachit/www/
set directoryfile index.adp,index.html,index.htm
#
# Global server parameters
#
ns_section "ns/parameters"
ns_param home $homedir
ns_param debug false
ns_param auxconfigdir /web/teachit/parameters
#
# Database stuff
#
ns_section "ns/db/drivers"
ns_param postgres nspostgres.so
ns_section "ns/db/driver/postgres"
ns_param datestyle iso
ns_section "ns/db/pool/main"
ns_param Driver postgres
ns_param Connections 4
ns_param MaxOpen 1000000000
ns_param MaxIdle 1000000000
ns_param DataSource localhost::teachit
ns_param User nsadmin
ns_param Password nsadmin
ns_param Verbose Off
ns_param LogSQLErrors Off
ns_param ExtendedTableInfo On
ns_section "ns/db/pool/subquery"
ns_param Driver postgres
ns_param Connections 4
ns_param MaxOpen 1000000000
ns_param MaxIdle 1000000000
ns_param DataSource localhost::teachit
ns_param User nsadmin
ns_param Password nsadmin
ns_param Verbose Off
ns_param LogSQLErrors Off
ns_param ExtendedTableInfo On
ns_section "ns/db/pool/log"
ns_param Driver postgres
ns_param Connections 4
ns_param MaxOpen 1000000000
ns_param MaxIdle 1000000000
ns_param DataSource localhost::teachit
ns_param User nsadmin
ns_param Password nsadmin
ns_param Verbose Off
ns_param LogSQLErrors Off
ns_param ExtendedTableInfo On
ns_section "ns/db/pools"
ns_param main main
ns_param subquery subquery
ns_param log log
excerpt from server.log
[09/Jun/2000:15:41:40][32381.1024][-main-] Notice: loading:
/usr/local/aolserver/bin/nspostgres.so
[09/Jun/2000:15:41:40][32381.1024][-main-] Warning: could not load
/usr/local/aolserver/bin/nspostgres.so:
/usr/local/aolserver/bin/nspostgres.so: undefined symbol: crypt
[09/Jun/2000:15:41:40][32381.1024][-main-] Error: nsd.db: could not
load driver: postgres
[09/Jun/2000:15:41:40][32381.1024][-main-] Error: nsd.db: no such
default pool: main
output from ldconfig -p | grep crypt
libcrypt.so.1 (libc6) => /lib/libcrypt.so.1
procedure for build and install of PostgreSQL 7
./configure --with-tcl --with-odbc
make
make install
procedure for build and install of AOLserver 3
make
make install
cd nspostgres
make
cp nspostgres.so /usr/local/aolserver/bin