Here's how I made nspostgres on OS X.
########## nspostgres ###########do this as root;)
# postgres driver from aolserver # postgres must be installed prior to nspostgres install.
cd $SRCDIR/oacs-modules/nspostgres
make clean ranlib /usr/local/pgsql/lib/libpq.a
setenv PGINC "$POSTGRES/include" setenv PGLIB "$POSTGRES/lib"
# nspostgres doesn't link outta the box. Add -lnsdb to the MODLIBS var in the Makefile: # MODLIBS = -L$(PGLIB) -lpq -lnsdb
su -m aolserver_user -c "make POSTGRES=$POSTGRES INST=$AOLSERVER ACS=1" su -m aolserver_user -c "make install POSTGRES=$POSTGRES INST=$AOLSERVER ACS=1"
I think you are missing the MODLIBS addition to the Makefile.
good luck,
tOn Mar 8, 2004, at 1:48 AM, Andre Berger wrote:
Hi there,
I have successfully compiled aolserver 4.0.1 under Mac OS X 10.3 Panther with X-Tools 1.1 and Fink, and have a precompiled, working PostgreSQL 7.4 installed. Both reside in /usr/local. The thing is, there's a problem with nspostgres-4.0.
[EMAIL PROTECTED]:~/Desktop/CleanMeUp/AOLserver/nspostgres-4.0$ make POSTGRES=/usr/local/pgsql ACS=1 gcc -pipe -DBIND_EMULATION -I/usr/local/pgsql/include -DFOR_ACS_USE -Os -Wall -Wconversion -Wno-implicit-int -fno-common -DMAC_OSX_TCL -DHAVE_CFBUNDLE -DUSE_VFORK -DTCL_DEFAULT_ENCODING=\"utf-8\" -I/usr/local/aolserver/include -I/System/Library/Frameworks/Tcl.framework/Versions/8.4/Headers -DNO_CONST -DHAVE_UNISTD_H=1 -DHAVE_LIMITS_H=1 -DTCL_THREADS=1 -DUSE_THREAD_ALLOC=1 -D_REENTRANT=1 -D_THREAD_SAFE=1 -DHAVE_PTHREAD_ATTR_SETSTACKSIZE=1 -DHAVE_READDIR_R=1 -DTCL_WIDE_INT_TYPE=long\ long -DHAVE_GETCWD=1 -DHAVE_OPENDIR=1 -DHAVE_STRSTR=1 -DHAVE_STRTOL=1 -DHAVE_STRTOLL=1 -DHAVE_STRTOULL=1 -DHAVE_TMPNAM=1 -DHAVE_WAITPID=1 -DNO_VALUES_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_PARAM_H=1 -DHAVE_SYS_TIME_H=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_TM_ZONE=1 -DHAVE_GMTIME_R=1 -DHAVE_LOCALTIME_R=1 -DHAVE_TM_GMTOFF=1 -DHAVE_ST_BLKSIZE=1 -DSTDC_HEADERS=1 -DHAVE_SIGNED_CHAR=1 -DHAVE_PUTENV_THAT_COPIES=1 -DHAVE_LANGINFO=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_SYS_FILIO_H=1 -DHAVE_TIMEGM=1 -DHAVE_POLL=1 -DHAVE_DRAND48=1 -DHAVE_RANDOM=1 -DHAVE__NSGETENVIRON=1 -DUSE_DYLD=1 -DHAVE_CMMSG=1 -c -o nspostgres.o nspostgres.c nspostgres.c: In function `Ns_PgTableList': nspostgres.c:679: warning: passing arg 3 of `Tcl_DStringAppend' as signed due to prototype nspostgres.c: In function `encode3': nspostgres.c:749: warning: passing arg 1 of `enc_one' with different width due to prototype nspostgres.c:750: warning: passing arg 1 of `enc_one' with different width due to prototype nspostgres.c:751: warning: passing arg 1 of `enc_one' with different width due to prototype nspostgres.c:752: warning: passing arg 1 of `enc_one' with different width due to prototype nspostgres.c: In function `decode3': nspostgres.c:772: warning: passing arg 1 of `get_one' with different width due to prototype nspostgres.c:773: warning: passing arg 1 of `get_one' with different width due to prototype nspostgres.c:774: warning: passing arg 1 of `get_one' with different width due to prototype nspostgres.c:775: warning: passing arg 1 of `get_one' with different width due to prototype nspostgres.c: In function `stream_actually_write': nspostgres.c:864: warning: passing arg 3 of `write' as unsigned due to prototype nspostgres.c: In function `blob_send_to_stream': nspostgres.c:980: warning: `fd' might be used uninitialized in this function nspostgres.c:982: warning: `conn' might be used uninitialized in this function nspostgres.c: In function `parse_bind_variables': nspostgres.c:1211: warning: unused variable `first_bind' nspostgres.c: In function `PgBindCmd': nspostgres.c:1327: warning: unused variable `value_frag_len' /bin/rm -f nspostgres.so cc -bundle -L/usr/local/aolserver/lib -o nspostgres.so nspostgres.o -L/usr/local/pgsql/lib -lpq -lnsthread -lnsd -framework Tcl -lpthread -framework CoreFoundation ld: Undefined symbols: _Ns_Db0or1Row _Ns_Db1Row _Ns_DbDML _Ns_DbDriverName _Ns_DbExec _Ns_DbGetRow _Ns_DbRegisterDriver _Ns_DbSelect _Ns_DbSetException _Ns_TclDbGetHandle _SSL_pending _BIO_free _BIO_new_mem_buf _DH_check _DH_generate_parameters _DH_size _ERR_get_error _ERR_reason_error_string _EVP_PKEY_free _PEM_read_DHparams _PEM_read_PrivateKey _PEM_read_X509 _PEM_read_bio_DHparams _SSL_CTX_ctrl _SSL_CTX_free _SSL_CTX_load_verify_locations _SSL_CTX_new _SSL_CTX_set_tmp_dh_callback _SSL_CTX_set_verify _SSL_CTX_set_verify_depth _SSL_connect _SSL_free _SSL_get_error _SSL_get_ex_data _SSL_get_peer_certificate _SSL_library_init _SSL_load_error_strings _SSL_new _SSL_read _SSL_set_ex_data _SSL_set_fd _SSL_shutdown _SSL_write _TLSv1_method _X509_NAME_get_text_by_NID _X509_NAME_oneline _X509_check_private_key _X509_free _X509_get_subject_name make: *** [nspostgres.so] Error 1
[EMAIL PROTECTED]:~/Desktop/CleanMeUp/AOLserver/nspostgres-4.0$ ls CVS/ ChangeLog* Makefile* README nspostgres.c* nspostgres.h* nspostgres.o
Of course I can provide more information if you tell me what you need. I'm no programmer...
Thanks!
-Andre
-- May as well be hung for a sheep as a lamb
-- AOLserver - http://www.aolserver.com/
To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]> with the body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: field of your email blank.
[EMAIL PROTECTED]
Subverge LLC www.subverge.com
-- AOLserver - http://www.aolserver.com/
To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]> with the body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: field of your email blank.
