From: Bernd E. <eid...@we...> - 2006-03-20 16:35:33
|
Hi friends! Anybody out there who successfully compiled nspostgres-4.0 driver with NaviServer (including -DFOR_ACS_USE CFLAG) ? Bernd. |
From: Vlad S. <vl...@cr...> - 2006-03-20 16:43:08
|
Default PG driver for naviserver is nsdbpg now, this one works fine but it does not include ACS code Bernd Eidenschink wrote: > Hi friends! > > Anybody out there who successfully compiled nspostgres-4.0 driver with > NaviServer (including -DFOR_ACS_USE CFLAG) ? > > Bernd. > > > ------------------------------------------------------- > This SF.Net email is sponsored by xPML, a groundbreaking scripting language > that extends applications into web and mobile media. Attend the live webcast > and join the prime developer group breaking into this new coding territory! > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 > _______________________________________________ > naviserver-devel mailing list > nav...@li... > https://lists.sourceforge.net/lists/listinfo/naviserver-devel > |
From: Bernd E. <eid...@we...> - 2006-03-20 16:57:16
|
> Default PG driver for naviserver is nsdbpg now, this one works fine but > it does not include ACS code Thanks Vlad! |
From: Stephen D. <sd...@gm...> - 2006-03-20 17:02:37
|
It does in include the ACS code, i.e. the ns_pg commands and bind variable support, it just doesn't use the FOR_ACS_USE flag. These features are always enabled. On 3/20/06, Bernd Eidenschink <eid...@we...> wrote: > > Default PG driver for naviserver is nsdbpg now, this one works fine but > > it does not include ACS code > > Thanks Vlad! > |
From: Bernd E. <eid...@we...> - 2006-03-21 09:02:50
|
Hi, I'm trying to compile it: I just started with a simple gmake NAVISERVER=... In file included from nsdbpg.c:37: dbpg.h:44:22: error: libpq-fe.h: File or directory not found And when I copy libpq-fe.h postgres_ext.h into the directory it finally breaks with that: gcc -pipe -shared -nostartfiles -L../naviserver/lib -o nsdbpg.so nsdbpg.o tclcmds.o -lnsdb -lpq -L/home/dev/development/naviserver/lib -ltcl8.4 -lnsthread -lnsd -Wl,--export-dynamic -lz -lgcc_s -Wl,-rpath,../naviserver/lib /usr/lib/gcc/i586-suse-linux/4.0.2/../../../../i586-suse-linux/bin/ld: cannot find -lpq collect2: ld returned 1 exit status gmake: *** [nsdbpg.so] Fehler 1 Bernd. |
From: Vlad S. <vl...@cr...> - 2006-03-21 16:31:06
|
It assumes PG includes and libraries in the common paths, if not try make LDFLAGS=-L/usr/local/pg/lib or whatever path where pg libs are Bernd Eidenschink wrote: > Hi, > > I'm trying to compile it: > > I just started with a simple > gmake NAVISERVER=... > > In file included from nsdbpg.c:37: > dbpg.h:44:22: error: libpq-fe.h: File or directory not found > > And when I copy > libpq-fe.h > postgres_ext.h > into the directory it finally breaks with that: > > gcc -pipe -shared -nostartfiles -L../naviserver/lib -o nsdbpg.so nsdbpg.o > tclcmds.o -lnsdb -lpq -L/home/dev/development/naviserver/lib -ltcl8.4 > -lnsthread -lnsd -Wl,--export-dynamic -lz -lgcc_s > -Wl,-rpath,../naviserver/lib > /usr/lib/gcc/i586-suse-linux/4.0.2/../../../../i586-suse-linux/bin/ld: cannot > find -lpq > collect2: ld returned 1 exit status > gmake: *** [nsdbpg.so] Fehler 1 > > Bernd. > > > ------------------------------------------------------- > This SF.Net email is sponsored by xPML, a groundbreaking scripting language > that extends applications into web and mobile media. Attend the live webcast > and join the prime developer group breaking into this new coding territory! > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 > _______________________________________________ > naviserver-devel mailing list > nav...@li... > https://lists.sourceforge.net/lists/listinfo/naviserver-devel > |
From: Andrew P. <at...@pi...> - 2006-03-20 17:54:20
|
On Mon, Mar 20, 2006 at 10:02:22AM -0700, Stephen Deasey wrote: > It does in include the ACS code, i.e. the ns_pg commands and bind > variable support, it just doesn't use the FOR_ACS_USE flag. These > features are always enabled. Oh, good. That silly FOR_ACS_USE flag should have been removed years ago, it's good that someone finally did it. -- Andrew Piskorski <at...@pi...> http://www.piskorski.com/ |
From: Stephen D. <sd...@gm...> - 2006-03-20 18:10:56
|
On 3/20/06, Andrew Piskorski <at...@pi...> wrote: > On Mon, Mar 20, 2006 at 10:02:22AM -0700, Stephen Deasey wrote: > > It does in include the ACS code, i.e. the ns_pg commands and bind > > variable support, it just doesn't use the FOR_ACS_USE flag. These > > features are always enabled. > > Oh, good. That silly FOR_ACS_USE flag should have been removed years > ago, it's good that someone finally did it. The ACS commands are split into a separate file, the driver core in the main file. I didn't have time to finish cleaning up the ACS stuff so some of it is still undocumented etc. Some code has been removed, but that was just a side effect of clean up. There seemed to be redundancies. If it doesn't work as expected, I broke it... |
From: Gustaf N. <ne...@wu...> - 2006-03-21 16:52:13
|
Bernd Eidenschink schrieb: > Hi friends! > > Anybody out there who successfully compiled nspostgres-4.0 driver with > NaviServer (including -DFOR_ACS_USE CFLAG) ? > yes, and i don't remember having problems... (see below) Good the hear from Vlad that there is a new version for the driver out for naviserver. i was not aware of this either. i am wondering, is there a good reason for using he using the char* interface and not the Tcl_Obj interface (Tcl_CreateCommand and not Tcl_CreateObjCommand) (beyond "have not touched this"). There should be a couple of places, where Tcl-Objs are useful (bind lists, blobs). afaik, the commands created by CreateCommand are wrapper to call Obj_CmdProc, so i would hope to get some slight improvements here, but executed very frequently. However, also ns_pgtcl from the postgres distro seems to use still the char* interface. -gustaf neumann PS: here is what is use for compiling the modules for NS and AS ==================================== NS=/usr/local/ns #NS=/usr/local/aolserver4 TCL=/usr/local/ns/tcl8.4.12/unix export NAVISERVER=$NS export AOLSERVER=$NS ... cd nspostgres make INST=$NS clean make INST=$NS POSTGRES=/usr/local/pg745 ACS=1 install cd .. > Bernd. > > > ------------------------------------------------------- > This SF.Net email is sponsored by xPML, a groundbreaking scripting language > that extends applications into web and mobile media. Attend the live webcast > and join the prime developer group breaking into this new coding territory! > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 > _______________________________________________ > naviserver-devel mailing list > nav...@li... > https://lists.sourceforge.net/lists/listinfo/naviserver-devel > |