[AOLSERVER] Problem installing aolserver 3.5.6
I am having problems installing aolserver 3.5.6 on a linux box running Linux 9.0. I have recently upgraded to 9.0, and wonder if that might be an issue. I installed tcl8.4.4 without any apparent problems. The following is a summary of what I did: install tcl8.4.4: # ./configure --prefix=/usr/local/aolserver356 --enable-threads # make install install aolserver 3.5.6: # ./configure --prefix=/usr/local/aolserver356 --with-tcl=/usr/local/aolserver356/lib output: checking for Tcl configuration... found /usr/local/aolserver356/lib/tclConfig.sh checking for existence of /usr/local/aolserver356/lib/tclConfig.sh... loading checking for build with symbols... no checking for gcc... gcc checking for C compiler default output... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for executable suffix... checking for object suffix... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for timegm... yes checking for fork1... no checking for poll... yes checking for drand48... yes checking for random... yes checking for _NSGetEnviron... no checking how to run the C preprocessor... gcc -E checking for mach-o/dyld.h... no checking for dl.h... no checking need for dup high... no checking msg_controllen in struct msghdr... yes configure: creating ./config.status config.status: creating include/Makefile.global config.status: creating include/Makefile.module # make install output: make[1]: Entering directory `/usr/local/src/aolserver-3.5.6-src/nsthread' /bin/rm -f nsthreadtest gcc -pipe -L../nsthread -L../nsd -o nsthreadtest nsthreadtest.o libnsthread.so -L/usr/local/aolserver356/lib -ltcl8.4 -ldl -lpthread -lieee -lm -rdynamic -Wl,-rpath,/usr/local/aolserver356/lib nsthreadtest.o(.text+0x79c): In function `DumperThread': : undefined reference to `Tcl_GetMemoryInfo' collect2: ld returned 1 exit status make[1]: *** [nsthreadtest] Error 1 make[1]: Leaving directory `/usr/local/src/aolserver-3.5.6-src/nsthread' make: *** [all] Error 1 Any ideas? Thorpe -- 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.
Re: [AOLSERVER] Problem installing aolserver 3.5.6
I installed ActiveTcl. It appeared to install fine, but without threads enabled. Here is the comment from the folks at ActiveState: ActiveTcl isn't compiled with threads enabled; this is because some of the extensions we bundle with ActiveTcl aren't thread-safe. Also, I got the following feedback from a develkoper regarding the Tcl bundled with Red Hat Linux 9: AFAIK the distribution of Tcl with RH9 is badly compiled (4 byte unicode chars), causing extreme mem requirements, espeically with tk, and breaking all binary extensions outside of the redhat distro. In other words, it breaks ActiveTcl. We recommends against using it. So better for him to compile his own. Unfortunately. -- 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.
[AOLSERVER] unable to make nspostges
I am trying to install the nspostgres driver (nspostgres-4.0beta1). The system is Linux 9.0; aolserver 3.5.0. Here is the output: # make POSTGRES=/usr/local/pgsql gcc -pipe -O -D__NO_STRING_INLINES -D__NO_MATH_INLINES -Wall -Wconversion -Wno- implicit-int -fPIC -I/usr/local2/aolserver/include -I/usr/local2/include -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_READDIR_R=1 -D_LARGEFILE64_SOURCE=1 - DTCL_WIDE_INT_TYPE=long\ long -DHAVE_STRUCT_STAT64=1 -DHAVE_TYPE_OFF64_T=1 - DHAVE_GETCWD=1 -DHAVE_OPENDIR=1 -DHAVE_STRSTR=1 -DHAVE_STRTOL=1 - DHAVE_STRTOLL=1 -DHAVE_STRTOULL=1 -DHAVE_TMPNAM=1 -DHAVE_WAITPID=1 - DHAVE_UNISTD_H=1 -DHAVE_SYS_PARAM_H=1 -DUSE_TERMIOS=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_TIMEZONE_VAR=1 - DHAVE_ST_BLKSIZE=1 -DSTDC_HEADERS=1 -DHAVE_SIGNED_CHAR=1 -DHAVE_LANGINFO=1 -DPEEK_XCLOSEIM=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_TIMEGM=1 -DHAVE_POLL=1 - DHAVE_DRAND48=1 -DHAVE_RANDOM=1 -DHAVE_CMMSG=1 -DUSE_PROCTHREAD=1-c -o nspostgres.o nspostgres.c In file included from nspostgres.c:32: nspostgres.h:48:22: libpq-fe.h: No such file or directory In file included from nspostgres.c:32: nspostgres.h:169: parse error before PGconn nspostgres.h:169: warning: no semicolon at end of struct or union nspostgres.h:171: parse error before '*' token nspostgres.h:171: warning: data definition has no type or storage class nspostgres.h:176: parse error before '}' token nspostgres.h:176: warning: data definition has no type or storage class nspostgres.c: In function `Ns_PgOpenDb': nspostgres.c:109: `nsConn' undeclared (first use in this function) nspostgres.c:109: (Each undeclared identifier is reported only once nspostgres.c:109: for each function it appears in.) nspostgres.c:110: `PGconn' undeclared (first use in this function) nspostgres.c:110: `pgConn' undeclared (first use in this function) nspostgres.c:134: warning: implicit declaration of function `PQsetdbLogin' nspostgres.c:142: warning: implicit declaration of function `PQstatus' nspostgres.c:142: `CONNECTION_OK' undeclared (first use in this function) nspostgres.c:164: warning: implicit declaration of function `PQerrorMessage' nspostgres.c:165: warning: implicit declaration of function `PQfinish' nspostgres.c: In function `Ns_PgCloseDb': nspostgres.c:178: `nsConn' undeclared (first use in this function) nspostgres.c: In function `Ns_PgSetErrorstate': nspostgres.c:209: `nsConn' undeclared (first use in this function) nspostgres.c:214: warning: implicit declaration of function `PQresultStatus' nspostgres.c:215: `PGRES_EMPTY_QUERY' undeclared (first use in this function) nspostgres.c:216: `PGRES_COMMAND_OK' undeclared (first use in this function) nspostgres.c:217: `PGRES_TUPLES_OK' undeclared (first use in this function) nspostgres.c:218: `PGRES_COPY_OUT' undeclared (first use in this function) nspostgres.c:219: `PGRES_COPY_IN' undeclared (first use in this function) nspostgres.c:220: `PGRES_NONFATAL_ERROR' undeclared (first use in this function) nspostgres.c:221: warning: implicit declaration of function `PQresultErrorMessage' nspostgres.c:221: warning: passing arg 2 of `Ns_DStringNAppend' makes pointer from integer without a cast nspostgres.c:224: `PGRES_FATAL_ERROR' undeclared (first use in this function) nspostgres.c:225: warning: passing arg 2 of `Ns_DStringNAppend' makes pointer from integer without a cast nspostgres.c:228: `PGRES_BAD_RESPONSE' undeclared (first use in this function) nspostgres.c:230: warning: passing arg 2 of `Ns_DStringNAppend' makes pointer from integer without a cast nspostgres.c: In function `set_transaction_state': nspostgres.c:244: `nsConn' undeclared (first use in this function) nspostgres.c: In function `Ns_PgExec': nspostgres.c:274: `nsConn' undeclared (first use in this function) nspostgres.c:290: warning: implicit declaration of function `PQclear' nspostgres.c:308: warning: implicit declaration of function `PQexec' nspostgres.c:320: `CONNECTION_BAD' undeclared (first use in this function) nspostgres.c:330: `PGRES_NONFATAL_ERROR' undeclared (first use in this function) nspostgres.c:397: `PGRES_TUPLES_OK' undeclared (first use in this function) nspostgres.c:401: `PGRES_COPY_IN' undeclared (first use in this function) nspostgres.c:402: `PGRES_COPY_OUT' undeclared (first use in this function) nspostgres.c:405: `PGRES_COMMAND_OK' undeclared (first use in this function) nspostgres.c:407: warning: implicit declaration of function `PQcmdTuples' nspostgres.c:407: warning: passing arg 1 of `sscanf' makes pointer from integer without a cast nspostgres.c: In function `Ns_PgResetHandle': nspostgres.c:422: `nsConn' undeclared (first use in this function) nspostgres.c:435: `PGRES_COMMAND_OK' undeclared (first use in this function) nspostgres.c: In function `Ns_PgGetRow': nspostgres.c:505: `nsConn' undeclared (first use in this function) nspostgres.c:533: warning:
Re: [AOLSERVER] unable to make nspostges
Roberto, Thank you for your reply. Yes, it is Red Hat Linux 9.0. No problem. Here is what I did: I changed the following line in nspostgres.h #include libpq-fe.h to #include /usr/local/pgsql/include/libpq-fe.h This worked. I then changed nsd.tcl to reflect the use of postgres. When I started aolserver, I got the following error: [20/Sep/2003:11:51:31][11450.1075062368][-main-] Notice: modload: loading '/usr/local2/aolserver/bin/nspostgres.so' [20/Sep/2003:11:51:31][11450.1075062368][-main-] Warning: modload: failed to load '/usr/local2/aolserver/bin/nspostgres.so': 'libpq.so.3: cannot open shared object file: No such file or directory' [20/Sep/2003:11:51:31][11450.1075062368][-main-] Error: dbdrv: failed to load driver 'postgres' I searched for the file: # locate libpq.so.3 /usr/local/pgsql/lib/libpq.so.3 /usr/local/pgsql/lib/libpq.so.3.0 I am not sure where to go from here. Thank you for your help. Thorpe -- 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.
Re: [AOLSERVER] unable to make nspostges
This is how I solved the problem: I created the following soft link: ln -s /usr/local/pgsql/lib/libpq.so.3 /usr/lib/libpq.so.3 causing /usr/lib/libpq.so.3 to point to /usr/local/pgsql/lib/libpq.so.3 This solved the problem. Thank you for your help - Roberto, Jean-Fabrice, and Derek Thorpe On Sat, 20 Sep 2003 11:50:35 -0700, derek keller [EMAIL PROTECTED] wrote: You can add to the LD_LIBRARY_PATH VARIABLE. Or add the path to the file /etc/ld.so.config and then run the command ldconfig. Neither of these worked for me (I was using freebsd though). I made a soft link from /usr/lib/libpq.so.3 to the pgsql directory: % ln -s /usr/lib/libpq.so.3 /usr/local/pgsql/lib/libpq.so.3 The first two may work for you with no problem, but just so you know some options. --- Jean-Fabrice RABAUTE [EMAIL PROTECTED] wrote: Hi, Add the path '/usr/local/pgsql/lib' to your LD_LIBRARY_PATH shell variable before starting aolserver process (using set or setenv command depending on your shell). This will tell the system to search libraries also on this path and hopefully Aolserver should find the pg library. I hope it works :-) Regards. Jean-Fabrice RABAUTE Core Services - Enjoy the future today http://www.core-services.fr Mob: +33 (0)6 13 82 67 67 -Message d'origine- De : AOLserver Discussion [mailto:[EMAIL PROTECTED] la part de Thorpe Mayes Envoyé : samedi 20 septembre 2003 19:31 À : [EMAIL PROTECTED] Objet : Re: [AOLSERVER] unable to make nspostges Roberto, Thank you for your reply. Yes, it is Red Hat Linux 9.0. No problem. Here is what I did: I changed the following line in nspostgres.h #include libpq-fe.h to #include /usr/local/pgsql/include/libpq-fe.h This worked. I then changed nsd.tcl to reflect the use of postgres. When I started aolserver, I got the following error: [20/Sep/2003:11:51:31][11450.1075062368][-main-] Notice: modload: loading '/usr/local2/aolserver/bin/nspostgres.so' [20/Sep/2003:11:51:31][11450.1075062368][-main-] Warning: modload: failed to load '/usr/local2/aolserver/bin/nspostgres.so': 'libpq.so.3: cannot open shared object file: No such file or directory' [20/Sep/2003:11:51:31][11450.1075062368][-main-] Error: dbdrv: failed to load driver 'postgres' I searched for the file: # locate libpq.so.3 /usr/local/pgsql/lib/libpq.so.3 /usr/local/pgsql/lib/libpq.so.3.0 I am not sure where to go from here. Thank you for your help. Thorpe -- 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. -- 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. = Are you going to spend the rest of your life selling sugar water, or are you going to come with me and change the world? __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.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. -- 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.
[AOLSERVER] Unable to run procs in tcl libraries
Procedures that I place in the ../aolserver/modules/tcl library are not working. I restart the server after adding the file. The error message in the log is that it is an invalid command name. Here is the procedure (test.tcl): proc test {} { return okay } When I try to locate the file, it does not show up. When I run updatedb and then run locate, the file shows up, but it still does not run (even after I restart the server again). I have built a new server - aolserver 3.5.0. Here is the tcl portion of my nsd.tcl file: # Tcl interpreter # ns_section ns/server/${servername}/tcl ns_paramautoclose true ns_paramdebug false ns_paramnsvbuckets8 ns_paramstatlevel 0 ns_paramstatmaxbuf100 ns_paramlibrary ${homedir}/servers/${servername}/modules/tcl ns_paramsharedlibrary ${homedir}/modules/tcl Now. I am also running another server on the machine (aolserver 3.4.2). I put the same proc in the shared tcl libary and it works fine. I think I am missing something obvious here. Any insight will be appreciated. Thorpe Mayes -- 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.
[AOLSERVER] unable to restart server after ns_unregister_proc
I unregistered a procedure using ns_unregister_proc. When I restarted the server to effect the action, the restart hung. Apparently, a zombie process keeps the server from restarting. The output is; Warning: unix: failed to kill process (n): no such process After some period of time the server does restart. Any direction on how I can avoid this problem? Best regards, Thorpe -- 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.
[AOLSERVER] file upload corrupts jpg images
I have two servers running: one is aolserver 3.4.2; the other is aolserver 3.5.0. I have a simple form that allows me to upload a file to my server. I want to upload a jpg image. The code works fine on the 3.4.2 server. However, when I run the script on the 3.5.0 server, the image that is uploaded is corrupted. The code that does the work of uploading the file is as follows: --- set target_directory /WWW_pages/server2/pages/images/udm_images/ set targetfile [ns_queryget file_name] set temploc [ns_queryget file_name.tmpfile] set targetfile [strip_leading_path $targetfile] # force extension to lower case regsub {.JPG} $targetfile .jpg targetfile regsub {.GIF} $targetfile .gif targetfile regsub {.DOC} $targetfile .doc targetfile regsub {.CSV} $targetfile .csv targetfile set target $target_directory$targetfile ns_cp $temploc $target --- The function strip_leading_path does just that - returning the file name. The nsd.tcl files for the two servers are identical except that caching is enabled on the 3.5.0 server. I am stumped. Best regards, Thorpe -- 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.
Re: [AOLSERVER] file upload corrupts jpg images
This is a follow-up to my initial post. I replaced aolserver3.5.0 with 3.5.1, as was suggested in an earlier post. No change. Thorpe -- 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.
Re: [AOLSERVER] file upload corrupts jpg image
This is yet another follow-up. I installed aolserver 3.5.6. The problem persists. Thorpe -- 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.
Re: [AOLSERVER] file upload corrupts jpg images
I tried the Tcl file copy command. No change. I am running RH 9.0 on a linux box. I do not know if the file is corrupted before or after it is moved from the temporary location. My understanding is that the temporary file is deleted when the process stops. I am not sure how I would find out. Thank you for your suggestion regarding using file tail. Thank you for your response. - On Aug 8, 2004, at 10:05 PM, Jamie Rasmussen wrote: You might try Tcl's file copy command instead of ns_cp. (It also sounds like strip_leading_path might be replaceable with file tail.) Have you determined if the file is being corrupted before or after it is moved from its temporary location? What platform is this? On Sun, 8 Aug 2004 19:41:26 -0400, Thorpe Mayes [EMAIL PROTECTED] wrote: I have two servers running: one is aolserver 3.4.2; the other is aolserver 3.5.0. I have a simple form that allows me to upload a file to my server. I want to upload a jpg image. The code works fine on the 3.4.2 server. However, when I run the script on the 3.5.0 server, the image that is uploaded is corrupted. The code that does the work of uploading the file is as follows: --- set target_directory /WWW_pages/server2/pages/images/udm_images/ set targetfile [ns_queryget file_name] set temploc [ns_queryget file_name.tmpfile] set targetfile [strip_leading_path $targetfile] # force extension to lower case regsub {.JPG} $targetfile .jpg targetfile regsub {.GIF} $targetfile .gif targetfile regsub {.DOC} $targetfile .doc targetfile regsub {.CSV} $targetfile .csv targetfile set target $target_directory$targetfile ns_cp $temploc $target --- The function strip_leading_path does just that - returning the file name. The nsd.tcl files for the two servers are identical except that caching is enabled on the 3.5.0 server. I am stumped. Best regards, Thorpe -- 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.
Re: [AOLSERVER] file upload corrupts jpg images
The file size does not change. Instead, some of the data is corrupted. When I run the ImageMagick convert command, I get the following error on the file uploaded on the Aolserver 3.5.6 server: convert: Corrupt JPEG data: 157 extraneous bytes before marker 0xd9. The convert command works fine on the Aolserver 3.4.2 server. Also, when I use a corrupted image in an html page, it is clearly corrupted - colors and organization is reworked. Photoshop will not open the corrupted file. So, it appears that the file content is being rearranged. Thank you for your help on this. On Aug 9, 2004, at 5:29 AM, Bas Scheffers wrote: In what way is it corrupted? Just garbage in it, or does the size change from the file on you local filesystem? Bas. Thorpe Mayes said: I tried the Tcl file copy command. No change. I am running RH 9.0 on a linux box. I do not know if the file is corrupted before or after it is moved from the temporary location. My understanding is that the temporary file is deleted when the process stops. I am not sure how I would find out. Thank you for your suggestion regarding using file tail. Thank you for your response. - On Aug 8, 2004, at 10:05 PM, Jamie Rasmussen wrote: You might try Tcl's file copy command instead of ns_cp. (It also sounds like strip_leading_path might be replaceable with file tail.) Have you determined if the file is being corrupted before or after it is moved from its temporary location? What platform is this? On Sun, 8 Aug 2004 19:41:26 -0400, Thorpe Mayes [EMAIL PROTECTED] wrote: I have two servers running: one is aolserver 3.4.2; the other is aolserver 3.5.0. I have a simple form that allows me to upload a file to my server. I want to upload a jpg image. The code works fine on the 3.4.2 server. However, when I run the script on the 3.5.0 server, the image that is uploaded is corrupted. The code that does the work of uploading the file is as follows: --- set target_directory /WWW_pages/server2/pages/images/udm_images/ set targetfile [ns_queryget file_name] set temploc [ns_queryget file_name.tmpfile] set targetfile [strip_leading_path $targetfile] # force extension to lower case regsub {.JPG} $targetfile .jpg targetfile regsub {.GIF} $targetfile .gif targetfile regsub {.DOC} $targetfile .doc targetfile regsub {.CSV} $targetfile .csv targetfile set target $target_directory$targetfile ns_cp $temploc $target --- The function strip_leading_path does just that - returning the file name. The nsd.tcl files for the two servers are identical except that caching is enabled on the 3.5.0 server. I am stumped. Best regards, Thorpe -- 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. -- 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. -- 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.
Re: [AOLSERVER] file upload corrupts jpg images
I ran md5 on the file in temploc and after it had been moved to the new location for both servers. About the only conclusion I can draw is that the output from each system is consistent. In both cases the checksum for the file in temploc was different each time a test was run. In both cases the checksum for the file in its final location was the same each time the test was run. As expected, the checksums for the final files differed between the systems. I uploaded the file to my server via ftp and ran md5 from each system. The result was the same. I think it is correct that the form file upload handler is not in TCL in version 3.5. I am not sure what happens next. Is there another way for me to accomplish what I want to do: provide a mechanism for users to upload a graphic using a web form? Thank you. Thorpe On Aug 9, 2004, at 7:48 AM, Jim Wilcoxson wrote: I seem to recall that the form file upload handler was rewritten in C for 3.5. It was in TCL before that. You could write a test script that does your file upload and runs an md5 on the temp file, while it still exists, with the exec command. Do a bunch of those with the old server and new server to see if there are any differences in the checksums. That will give you a test case and then you can start fiddling with things to find out why they are different, assuming that is the problem. Jim So, it appears that the file content is being rearranged. (on file upload w/3.5) -- 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. -- 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.
[AOLSERVER] ns_schedule behaving oddly
Just this week ns_schedule has started to behave oddly. Instead of running the code one time, as it has for months on end, it now runs the code twice. The following is the code that sets up the schedule. This proc is set to run daily. --- proc daily_okiechef_sweep {} { . . . } ns_share daily_okiechef_sweep_scheduled_p if { ![info exists daily_okiechef_sweep_scheduled_p] } { ns_schedule_daily -thread 2 0 daily_okiechef_sweep set daily_okiechef_sweep_scheduled_p 1 #set x [ns_schedule_daily -thread 2 0 daily_okiechef_sweep] #ns_unschedule_proc $x } -- I am running aolserver 3.5.2 on a linux box. Any insights will be appreciated. Thorpe Mayes -- 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.
[AOLSERVER] Cookie code works in adp but not tcl (?)
Why does this adp code work: - !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN HTML BODY % set host [string tolower [ns_set get [ns_conn headers $conn] Host]] set jar [ns_getallcookies $conn] set hits [ns_getcrumble $jar userinfo hits] set lastvisit [ns_getcrumble $jar userinfo lastvisit] if { [string match $hits] } { set hits 0 } incr hits ns_puts Hits: $hitsbr if { [string match $lastvisit] } { ns_puts Last Visit: This is your first visit, yaybr } else { ns_puts Last Visit: [ns_fmttime $lastvisit %a, %d-%b-%Y %T GMT]br } ns_setcrumble jar userinfo hits $hits ns_setcrumble jar userinfo lastvisit [ns_time] ns_sendcookie $conn $jar userinfo / [expr [ns_time] + 31536000] $host % /BODY /HTML but this tcl code not work: -- set host [string tolower [ns_set get [ns_conn headers conn] Host]] set jar [ns_getallcookies $conn] set hits [ns_getcrumble $jar userinfo hits] set lastvisit [ns_getcrumble $jar userinfo lastvisit] if { [string match $hits] } { set hits 0 } incr hits ns_write Hits: $hits\n\n if { [string match $lastvisit] } { ns_write Last Visit: This is your first visit, yay } else { ns_write Last Visit: [ns_fmttime $lastvisit %a, %d-%b-%Y %T GMT] } ns_setcrumble jar userinfo hits $hits ns_setcrumble jar userinfo lastvisit [ns_time] ns_sendcookie conn $jar userinfo / [expr [ns_time] + 31536000] $host - ? the tcl code does not save the cookie while the adp code does. I am running aolserver 3.5.6 the ns_ procedures are in cookie.tcl Thank you. Thorpe -- 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.
Re: [AOLSERVER] Cookie code works in adp but not tcl (?)
It still does not work. Specifically, the .adp file will set a cookie, but the .tcl file will not. I simplified the code to the following: adp: % set host [string tolower [ns_set get [ns_conn headers $conn] Host]] set jar [ns_getallcookies $conn] ns_setcrumble jar userinfo hits 100 ns_setcrumble jar userinfo lastvisit [ns_time] set path /ritarims/ ns_sendcookie $conn $jar userinfo $path [expr [ns_time] + 31536000] $host % - tcl: set host [string tolower [ns_set get [ns_conn headers $conn] Host]] set jar [ns_getallcookies $conn] ns_setcrumble jar userinfo hits 100 ns_setcrumble jar userinfo lastvisit [ns_time] set path /ritarims/ ns_sendcookie $conn $jar userinfo $path [expr [ns_time] + 31536000] $host On Sep 23, 2005, at 6:20 AM, Bas Scheffers wrote: It doesn't work becuase your ns_writes will already have sent the headers. So your ns_sendcookie that adds them to the headers isn't getting sent anymore. In the ADP version, nothing is sent before the page is complete, as streaming isn't turned on, which is qhy it works. Send your cookies before any ns_writes in the Tcl version. Cheers, bas. Thorpe Mayes said: Why does this adp code work: - !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN HTML BODY % set host [string tolower [ns_set get [ns_conn headers $conn] Host]] set jar [ns_getallcookies $conn] set hits [ns_getcrumble $jar userinfo hits] set lastvisit [ns_getcrumble $jar userinfo lastvisit] if { [string match $hits] } { set hits 0 } incr hits ns_puts Hits: $hitsbr if { [string match $lastvisit] } { ns_puts Last Visit: This is your first visit, yaybr } else { ns_puts Last Visit: [ns_fmttime $lastvisit %a, %d-%b-%Y %T GMT]br } ns_setcrumble jar userinfo hits $hits ns_setcrumble jar userinfo lastvisit [ns_time] ns_sendcookie $conn $jar userinfo / [expr [ns_time] + 31536000] $host % /BODY /HTML but this tcl code not work: -- set host [string tolower [ns_set get [ns_conn headers conn] Host]] set jar [ns_getallcookies $conn] set hits [ns_getcrumble $jar userinfo hits] set lastvisit [ns_getcrumble $jar userinfo lastvisit] if { [string match $hits] } { set hits 0 } incr hits ns_write Hits: $hits\n\n if { [string match $lastvisit] } { ns_write Last Visit: This is your first visit, yay } else { ns_write Last Visit: [ns_fmttime $lastvisit %a, %d-%b-%Y %T GMT] } ns_setcrumble jar userinfo hits $hits ns_setcrumble jar userinfo lastvisit [ns_time] ns_sendcookie conn $jar userinfo / [expr [ns_time] + 31536000] $host - ? the tcl code does not save the cookie while the adp code does. I am running aolserver 3.5.6 the ns_ procedures are in cookie.tcl Thank you. Thorpe -- 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. -- 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. Thorpe Mayes eCognizant LLC 3840 Cobble Circle Norman, Oklahoma 73072 (405) 514-9753 (800) 309-5832 fax: 1-866-871-3069 [EMAIL PROTECTED] -- 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.
Re: [AOLSERVER] Cookie code works in adp but not tcl (?)
Okay. I think I see now. When using tcl, I have to do something that will send some headers. I added an ns_return ... and it worked. So does adp send headers in all instances? Thank you for your help. Thorpe On Sep 23, 2005, at 8:37 AM, Bas Scheffers wrote: I think that the first ns_write will send the headers. If you don't have ANY ns_writes, headers don't get sent at all. If I recall correctly... Thorpe Mayes said: It still does not work. Specifically, the .adp file will set a cookie, but the .tcl file will not. I simplified the code to the following: adp: % set host [string tolower [ns_set get [ns_conn headers $conn] Host]] set jar [ns_getallcookies $conn] ns_setcrumble jar userinfo hits 100 ns_setcrumble jar userinfo lastvisit [ns_time] set path /ritarims/ ns_sendcookie $conn $jar userinfo $path [expr [ns_time] + 31536000] $host % - tcl: set host [string tolower [ns_set get [ns_conn headers $conn] Host]] set jar [ns_getallcookies $conn] ns_setcrumble jar userinfo hits 100 ns_setcrumble jar userinfo lastvisit [ns_time] set path /ritarims/ ns_sendcookie $conn $jar userinfo $path [expr [ns_time] + 31536000] $host On Sep 23, 2005, at 6:20 AM, Bas Scheffers wrote: It doesn't work becuase your ns_writes will already have sent the headers. So your ns_sendcookie that adds them to the headers isn't getting sent anymore. In the ADP version, nothing is sent before the page is complete, as streaming isn't turned on, which is qhy it works. Send your cookies before any ns_writes in the Tcl version. Cheers, bas. Thorpe Mayes said: Why does this adp code work: - !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN HTML BODY % set host [string tolower [ns_set get [ns_conn headers $conn] Host]] set jar [ns_getallcookies $conn] set hits [ns_getcrumble $jar userinfo hits] set lastvisit [ns_getcrumble $jar userinfo lastvisit] if { [string match $hits] } { set hits 0 } incr hits ns_puts Hits: $hitsbr if { [string match $lastvisit] } { ns_puts Last Visit: This is your first visit, yaybr } else { ns_puts Last Visit: [ns_fmttime $lastvisit %a, %d-%b-%Y %T GMT]br } ns_setcrumble jar userinfo hits $hits ns_setcrumble jar userinfo lastvisit [ns_time] ns_sendcookie $conn $jar userinfo / [expr [ns_time] + 31536000] $host % /BODY /HTML but this tcl code not work: -- set host [string tolower [ns_set get [ns_conn headers conn] Host]] set jar [ns_getallcookies $conn] set hits [ns_getcrumble $jar userinfo hits] set lastvisit [ns_getcrumble $jar userinfo lastvisit] if { [string match $hits] } { set hits 0 } incr hits ns_write Hits: $hits\n\n if { [string match $lastvisit] } { ns_write Last Visit: This is your first visit, yay } else { ns_write Last Visit: [ns_fmttime $lastvisit %a, %d-%b-%Y %T GMT] } ns_setcrumble jar userinfo hits $hits ns_setcrumble jar userinfo lastvisit [ns_time] ns_sendcookie conn $jar userinfo / [expr [ns_time] + 31536000] $host - ? the tcl code does not save the cookie while the adp code does. I am running aolserver 3.5.6 the ns_ procedures are in cookie.tcl Thank you. Thorpe -- 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. -- 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. Thorpe Mayes eCognizant LLC 3840 Cobble Circle Norman, Oklahoma 73072 (405) 514-9753 (800) 309-5832 fax: 1-866-871-3069 [EMAIL PROTECTED] -- 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. -- 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. Thorpe Mayes eCognizant LLC 3840 Cobble Circle Norman, Oklahoma 73072 (405) 514-9753 (800) 309-5832 fax: 1-866-871-3069 [EMAIL PROTECTED] -- 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.
Re: [AOLSERVER] Cookie code works in adp but not tcl (?)
Thank you for laying this out for me. This information is very helpful. Best regards, Thorpe On Sep 23, 2005, at 10:02 AM, Nathan Folkman wrote: Below are a few design guidelines we usually try to follow, some of which might help make things easier: 1. Tcl procs should be as generic and re-usable as possible, only returning data, and not containing presentation. 2. ADP pages contain presentation code. 3. Re-usable presentation code is encapsulated in ADP include files. (ns_adp_include) +--+ | main.adp | +--+--+ | | header.inc | footer.inc | | +--+--++ | foo.tcl | +--+ Example: main.adp % set time [foo.getTime] set title Main ns_adp_include inc/header.inc $title ns_adp_puts Time: $time ns_adp_include inc/footer.inc %> A couple of nice things with this approach: 1. Tcl procs can be easily re-used, and also aren't necessarily tied to an AOLserver, but instead can be used where ever a Tcl interpreter exists - tclsh for example. 2. ADP include files can mimic the functionality of Tcl procs through the use of ns_adp_args (see also: ns_adp_bindargs). Example: header.inc % set title [ns_adp_argv 1] %> html> head>title>%=$title%>/title>/head> ... Hope that helps! - n On Sep 23, 2005, at 10:32 AM, Bas Scheffers wrote: Yes, ADP is the simple way of doing things that takes care of all this stuff for you. I never use .tcl pages. The only time I use raw Tcl is with a registered procedure, so I can have a pretty url like /news/123.html rather than news.adp?id=123 Cheers, Bas. Thorpe Mayes said: Okay. I think I see now. When using tcl, I have to do something that will send some headers. I added an ns_return ... and it worked. So does adp send headers in all instances? Thank you for your help. Thorpe On Sep 23, 2005, at 8:37 AM, Bas Scheffers wrote: I think that the first ns_write will send the headers. If you don't have ANY ns_writes, headers don't get sent at all. If I recall correctly... Thorpe Mayes said: It still does not work. Specifically, the .adp file will set a cookie, but the .tcl file will not. I simplified the code to the following: adp: % set host [string tolower [ns_set get [ns_conn headers $conn] Host]] set jar [ns_getallcookies $conn] ns_setcrumble jar userinfo hits 100 ns_setcrumble jar userinfo lastvisit [ns_time] set path /ritarims/ ns_sendcookie $conn $jar userinfo $path [expr [ns_time] + 31536000] $host %> - tcl: set host [string tolower [ns_set get [ns_conn headers $conn] Host]] set jar [ns_getallcookies $conn] ns_setcrumble jar userinfo hits 100 ns_setcrumble jar userinfo lastvisit [ns_time] set path /ritarims/ ns_sendcookie $conn $jar userinfo $path [expr [ns_time] + 31536000] $host On Sep 23, 2005, at 6:20 AM, Bas Scheffers wrote: It doesn't work becuase your ns_writes will already have sent the headers. So your ns_sendcookie that adds them to the headers isn't getting sent anymore. In the ADP version, nothing is sent before the page is complete, as streaming isn't turned on, which is qhy it works. Send your cookies before any ns_writes in the Tcl version. Cheers, bas. Thorpe Mayes said: Why does this adp code work: - !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN> HTML> BODY> % set host [string tolower [ns_set get [ns_conn headers $conn] Host]] set jar [ns_getallcookies $conn] set hits [ns_getcrumble $jar userinfo hits] set lastvisit [ns_getcrumble $jar userinfo lastvisit] if { [string match $hits] } { set hits 0 } incr hits ns_puts Hits: $hitsbr> if { [string match $lastvisit] } { ns_puts Last Visit: This is your first visit, yaybr> } else { ns_puts Last Visit: [ns_fmttime $lastvisit %a, %d-%b-%Y %T GMT]br> } ns_setcrumble jar userinfo hits $hits ns_setcrumble jar userinfo lastvisit [ns_time] ns_sendcookie $conn $jar userinfo / [expr [ns_time] + 31536000] $host %> /BODY> /HTML> but this tcl code not work: -- set host [string tolower [ns_set get [ns_conn headers conn] Host]] set jar [ns_getallcookies $conn] set hits [ns_getcrumble $jar userinfo hits] set lastvisit [ns_getcrumble $jar userinfo lastvisit] if { [string match $hits] } { set hits 0 } incr hits ns_write Hits: $hits\n\n if { [string match $lastvisit] } { ns_write Last Visit: This is your first visit, yay } else { ns_write Last Visit: [ns_fmttime $lastvisit %a, %d-%b-%Y %T GMT] } ns_setcrumble jar userinfo hits $hits ns_setcrumble jar userinfo lastvisit [ns_time] ns_sendcookie conn $jar userinfo / [expr [ns_time] + 31536000] $host - ? the tcl code does not save the cookie while the adp code does. I am running aolserver 3.5.6 the ns_ procedures are i
[AOLSERVER] error with ns_httpget
I am trying to go here: ns_httpget http://username:[EMAIL PROTECTED]/member/service/csv/geocode?address= $newaddress,+$newcity+$state and am getting this error message: Error: expected integer but got [EMAIL PROTECTED] expected integer but got [EMAIL PROTECTED] while executing ns_sockopen -nonblock $host $port (procedure ns_httpopen line 11) invoked from within ns_httpopen GET $url $timeout (procedure ns_httpget line 5) invoked from within ns_httpget http://username:[EMAIL PROTECTED]/member/service/csv/geocode?address= $newaddress,+$newcity+$state Is there a work-around? Thank you. Thorpe -- 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.
Re: [AOLSERVER] aolserver 4.5 make error on RHEL3.4 64 bit
I hate to be so ignorant, but how does one apply this patch? I am unable to install aolserver on my linux box. I get this error; /usr/local/bin/tclsh8.4 /home/tam/source_code/aolserver-4.5.0/util/nsinstall.tcl -d /usr/local/lib -e libnsthread.so installed: /usr/local/lib/libnsthread.so (0755) /usr/local/bin/tclsh8.4 /home/tam/source_code/aolserver-4.5.0/util/nsinstall.tcl -d /usr/local/lib libnsthread.a ranlib /usr/local/lib/libnsthread.a ranlib: /usr/local/lib/libnsthread.a: No such file or directory gmake[1]: *** [install-dll] Error 9 gmake[1]: Leaving directory `/home/tam/source_code/aolserver-4.5.0/nsthread' make: *** [install-bins] Error 1 I am just guessing that the gcc issue is at the heart of this. I, too, am running an older version of gcc. Thanks for your help. Best regards, Thorpe On Jul 27, 2006, at 6:48 AM, Dossy Shiobara wrote: On 2006.07.26, Tom Jackson [EMAIL PROTECTED] wrote: My version: gcc --version gcc (GCC) 3.2 20020903 (Red Hat Linux 8.0 3.2-7) But it works with: gcc --version gcc (GCC) 3.3.4 (pre 3.3.5 20040809) On 2006.07.27, aT [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] mqueue]# gcc --version gcc (GCC) 3.2.3 20030502 (Red Hat Linux 3.2.3-47) OK, building AOLserver 4.5.0 currently requires gcc 3.3.x or newer. Here's a patch I *think* should work so it can be built with older versions of gcc (see attached). If you can apply the patch and test against gcc 3.2 and let me know if it works or not, then I can commit the change for inclusion in 4.5.1. -- Dossy -- Dossy Shiobara | [EMAIL PROTECTED] | http://dossy.org/ Panoptic Computer Network | http://panoptic.com/ He realized the fastest way to change is to laugh at your own folly -- then you can let go and quickly move on. (p. 70) -- 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. nsattributes.h.patch Thorpe Mayes eCognizant LLC 3840 Cobble Circle Norman, Oklahoma 73072 (405) 514-9753 (800) 309-5832 fax: 1-866-871-3069 [EMAIL PROTECTED] -- 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.
Re: [AOLSERVER] OT: Who owns aolserver.com?
Is the problem finding someone to host the site? If so, I will be happy to host the site. Thorpe On Oct 18, 2006, at 7:12 AM, Chris Kumagai wrote: Does anyone know what kind of bandwidth would be necessary? -Chris - Original Message - From: Daniël Mantione [EMAIL PROTECTED] Date: Wednesday, October 18, 2006 12:56 am Subject: Re: [AOLSERVER] OT: Who owns aolserver.com? To: AOLSERVER@LISTSERV.AOL.COM Op Wed, 18 Oct 2006, schreef Bas Scheffers: That's been a sore point for a long time; one that I am trying to solve with Dossy's blessing. Unfortunately, having a busy project at work and building work going on at home hasn't sped things up. I came as far as preparing AOLserver for an OpenACS install, but got stalled there. If anyone - especially and OpenACS expert, like someone from that group - would like to help out, it would really be appreciated. I can help set up an OpenACS installation if necessary. Daniël -- 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. -- 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. Thorpe Mayes eCognizant LLC 3840 Cobble Circle Norman, Oklahoma 73072 (405) 514-9753 (800) 309-5832 fax: 1-866-871-3069 [EMAIL PROTECTED] -- 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.
[AOLSERVER] Problem starting aolserver
When trying to start a newly installed version of aolserver, I get this error: Error: nssock: failed to listen on 64.58.34.71:80: Permission denied What folder/file does not have the correct permissions? Here is what I am using to start the server: /usr/local/aolserver/bin/nsd -ft ./nsd.tcl -u something -g something Thank you. Thorpe -- 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.
Re: [AOLSERVER] Problem starting aolserver
That fixed it. Thanks! Thorpe On Feb 12, 2007, at 1:29 PM, patrick o'leary wrote: You need to start it as root to listen on port 80 and pre-bind nsd to the port, by adding -b 64.58.34.71:80 e.g. /usr/local/aolserver/bin/nsd -ft ./nsd.tcl -u something -g something -b 64.58.34.71:80 P Thorpe Mayes wrote:When trying to start a newly installed version of aolserver, I get this error: Error: nssock: failed to listen on 64.58.34.71:80: Permission denied What folder/file does not have the correct permissions? Here is what I am using to start the server: /usr/local/aolserver/bin/nsd -ft ./nsd.tcl -u something -g something Thank you. Thorpe -- 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. -- Patrick O'Leary AOL Syndication Technologies Phone: + 1 703 265 8763 Honesty is the best policy, but insanity is a better defense ! unknown.gifView Patrick O Leary's profile -- 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. btn_in_20x15.gif Thorpe Mayes eCognizant LLC 3840 Cobble Circle Norman, Oklahoma 73072 (405) 514-9753 fax: 1-866-871-3069 [EMAIL PROTECTED] -- 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.
[AOLSERVER] ns_rewriteurl virtual hosting module
I am trying to install nsrewrite aolserver module and use it in the virtual hosting module per Tom Jackson (http://rmadilo.com/files/nsrewrite/doc/nsrewriteurl.html) . I downloaded the nsrewrite files and did the install. Here is the result of the install: make install /usr/local/bin/tclsh8.4 /usr/local/aolserver/bin/nsinstall.tcl -d /usr/local/aolserver/bin -e nsrewrite.so installed: /usr/local/aolserver/bin/nsrewrite.so (0755) /usr/local/bin/tclsh8.4 /usr/local/aolserver/bin/nsinstall.tcl -d /usr/local/aolserver/lib -e libnsrewrite.so installed: /usr/local/aolserver/lib/libnsrewrite.so (0755) /usr/local/bin/tclsh8.4 /usr/local/aolserver/bin/nsinstall.tcl -d /usr/local/aolserver/lib libnsrewrite.a installed: /usr/local/aolserver/lib/libnsrewrite.a (0644) ranlib /usr/local/aolserver/lib/libnsrewrite.a Looks like it installed okay. I then put the rewriteurl.tcl file in /usr/local/aolserver/modules/tcl. I restarted aolserver - and it restated - and it looks like the rewriteurl filters loaded as well: [27/Feb/2007:14:03:27][30188.3084097216][-main-] Notice: nsmain: AOLserver/4.5.0 exiting [27/Feb/2007:14:03:38][30740.3083802304][-main-] Notice: nsmain: AOLserver/4.5.0 starting [27/Feb/2007:14:03:38][30740.3083802304][-main-] Notice: nsmain: security info: uid=513, euid=513, gid=513, egid=513 [27/Feb/2007:14:03:38][30740.3083802304][-main-] Notice: nsmain: max files: FD_SETSIZE = 1024, rl_cur = 1024, rl_max = 1024 [27/Feb/2007:14:03:38][30740.3083802304][-main-] Notice: fastpath[server1]: mapped GET / [27/Feb/2007:14:03:38][30740.3083802304][-main-] Notice: fastpath[server1]: mapped HEAD / [27/Feb/2007:14:03:38][30740.3083802304][-main-] Notice: fastpath[server1]: mapped POST / [27/Feb/2007:14:03:38][30740.3083802304][-main-] Notice: adp[server1]: mapped GET /*.adp [27/Feb/2007:14:03:38][30740.3083802304][-main-] Notice: adp[server1]: mapped HEAD /*.adp [27/Feb/2007:14:03:38][30740.3083802304][-main-] Notice: adp[server1]: mapped POST /*.adp [27/Feb/2007:14:03:38][30740.3083802304][-main-] Notice: modload: loading '/usr/local/ aolserver/bin/nssock.so' [27/Feb/2007:14:03:38][30740.3083802304][-main-] Notice: modload: loading '/usr/local/ aolserver/bin/nslog.so' [27/Feb/2007:14:03:38][30740.3083802304][-main-] Notice: nslog: opened '/usr/local/ aolserver/servers/server1/access.log' [27/Feb/2007:14:03:38][30740.3083802304][-main-] Notice: modload: loading '/usr/local/ aolserver/bin/nsperm.so' [27/Feb/2007:14:03:38][30740.3083802304][-main-] Notice: modload: loading '/usr/local/ aolserver/bin/nsxml.so' [27/Feb/2007:14:03:38][30740.3083802304][-main-] Notice: nsxml module starting [27/Feb/2007:14:03:38][30740.3083802304][-main-] Notice: conf: [ns/server/ server1]enabletclpages = 1 [27/Feb/2007:14:03:38][30740.3083802304][-main-] Notice: tcl: enabling .tcl pages [27/Feb/2007:14:03:38][30740.3083802304][-main-] Notice: tcl/rewriteurl.tcl: loading test rewrite filters... [27/Feb/2007:14:03:38][30740.3083802304][-main-] Notice: tcl/rewriteurl.tcl: finished loading test rewrite filters. [27/Feb/2007:14:03:38][30740.3083802304][-main-] Notice: nsmain: AOLserver/4.5.0 running [27/Feb/2007:14:03:38][30740.3083802304][-main-] Notice: nsmain: security info: uid=513, euid=513, gid=513, egid=513 [27/Feb/2007:14:03:38][30740.3083802304][-main-] Notice: driver: starting: nssock [27/Feb/2007:14:03:38][30740.3073223584][-sched-] Notice: sched: starting [27/Feb/2007:14:03:38][30740.3071683488][-nssock:driver-] Notice: starting [27/Feb/2007:14:03:38][30740.3071683488][-nssock:driver-] Notice: nssock: listening on 64.58.34.71:80 Then, when I try to load a page, I get this error is the server.log: [27/Feb/2007:14:04:15][30740.3071544224][-conn:0-] Notice: rewriteRequest: starturl: '/' [27/Feb/2007:14:04:15][30740.3071544224][-conn:0-] Error: Tcl exception: invalid command name ns_rewriteurl while executing ns_rewriteurl $new_url (procedure rewriteRequest line 10) invoked from within rewriteRequest preauth [27/Feb/2007:14:04:15][30740.3071544224][-conn:0-] Notice: finalURL: URL: '/' What am I missing? Thank you. Thorpe -- 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.
Re: [AOLSERVER] ns_rewriteurl virtual hosting module
Tom, Thank you. I fixed the nsd file so that the nsrewrite module loads...and, it does load. I modified the /etc/hosts file to look like this: 127.0.0.1 tmayes www.tmayes thorpemayes www.thorpemayes localhost.localdomain localhost I added these two folders under $pageroot: tmayes.com thorpemayes.com and put an index.tcl file in each one. When I put http://tmayes.com into the browser, it works (i.e. the index.tcl file in the $pageroot/tmayes.com folder is displayed). Same when I load http://thorpemayes.com into the browser. However, when I load http://www.tmayes.com into the browser I get a Not Found The requested URL was not found on this server. error. Same when I load http://www.thorpemayes.com into a browser. This is what the server.log entry looks like: [27/Feb/2007:16:37:39][31330.3072002976][-conn:4-] Notice: rewriteRequest: starturl: '/' [27/Feb/2007:16:37:39][31330.3072002976][-conn:4-] Notice: rewriteRequest: newurl: '/www.thorpemayes.com/' [27/Feb/2007:16:37:39][31330.3072002976][-conn:4-] Notice: finalURL: URL: '/www.thorpemayes.com/' It does not look like the rewriteWWW proc is being called. Here is that code in the rewriteurl.tcl file: # Fire rewriteRequest on every request ns_register_filter preauth GET /* rewriteRequest # rewrite URLs beginning with www: ns_register_filter preauth GET /www.* rewriteWWW # show final URL in trace filter ns_register_filter trace GET /* finalURL Any ideas? Best regards, Thorpe On Feb 27, 2007, at 3:35 PM, Tom Jackson wrote: Thorpe, Looks like you have not added nsrewrite.so to the list of modules to load. tom jackson On Tuesday 27 February 2007 12:32, Thorpe Mayes wrote: I am trying to install nsrewrite aolserver module and use it in the virtual hosting module per Tom Jackson (http://rmadilo.com/files/nsrewrite/doc/nsrewriteurl.html) . I downloaded the nsrewrite files and did the install. Here is the result of the install: make install /usr/local/bin/tclsh8.4 /usr/local/aolserver/bin/nsinstall.tcl -d /usr/local/aolserver/bin -e nsrewrite.so installed: /usr/local/aolserver/bin/nsrewrite.so (0755) /usr/local/bin/tclsh8.4 /usr/local/aolserver/bin/nsinstall.tcl -d /usr/local/aolserver/lib -e libnsrewrite.so installed: /usr/local/aolserver/lib/libnsrewrite.so (0755) /usr/local/bin/tclsh8.4 /usr/local/aolserver/bin/nsinstall.tcl -d /usr/local/aolserver/lib libnsrewrite.a installed: /usr/local/aolserver/lib/libnsrewrite.a (0644) ranlib /usr/local/aolserver/lib/libnsrewrite.a Looks like it installed okay. I then put the rewriteurl.tcl file in /usr/local/aolserver/modules/tcl. I restarted aolserver - and it restated - and it looks like the rewriteurl filters loaded as well: [27/Feb/2007:14:03:27][30188.3084097216][-main-] Notice: nsmain: AOLserver/4.5.0 exiting [27/Feb/2007:14:03:38][30740.3083802304][-main-] Notice: nsmain: AOLserver/4.5.0 starting [27/Feb/2007:14:03:38][30740.3083802304][-main-] Notice: nsmain: security info: uid=513, euid=513, gid=513, egid=513 [27/Feb/2007:14:03:38][30740.3083802304][-main-] Notice: nsmain: max files: FD_SETSIZE = 1024, rl_cur = 1024, rl_max = 1024 [27/Feb/2007:14:03:38][30740.3083802304][-main-] Notice: fastpath[server1]: mapped GET / [27/Feb/2007:14:03:38][30740.3083802304][-main-] Notice: fastpath[server1]: mapped HEAD / [27/Feb/2007:14:03:38][30740.3083802304][-main-] Notice: fastpath[server1]: mapped POST / [27/Feb/2007:14:03:38][30740.3083802304][-main-] Notice: adp[server1]: mapped GET /*.adp [27/Feb/2007:14:03:38][30740.3083802304][-main-] Notice: adp[server1]: mapped HEAD /*.adp [27/Feb/2007:14:03:38][30740.3083802304][-main-] Notice: adp[server1]: mapped POST /*.adp [27/Feb/2007:14:03:38][30740.3083802304][-main-] Notice: modload: loading '/usr/local/ aolserver/bin/nssock.so' [27/Feb/2007:14:03:38][30740.3083802304][-main-] Notice: modload: loading '/usr/local/ aolserver/bin/nslog.so' [27/Feb/2007:14:03:38][30740.3083802304][-main-] Notice: nslog: opened '/usr/local/ aolserver/servers/server1/access.log' [27/Feb/2007:14:03:38][30740.3083802304][-main-] Notice: modload: loading '/usr/local/ aolserver/bin/nsperm.so' [27/Feb/2007:14:03:38][30740.3083802304][-main-] Notice: modload: loading '/usr/local/ aolserver/bin/nsxml.so' [27/Feb/2007:14:03:38][30740.3083802304][-main-] Notice: nsxml module starting [27/Feb/2007:14:03:38][30740.3083802304][-main-] Notice: conf: [ns/server/ server1]enabletclpages = 1 [27/Feb/2007:14:03:38][30740.3083802304][-main-] Notice: tcl: enabling .tcl pages [27/Feb/2007:14:03:38][30740.3083802304][-main-] Notice: tcl/rewriteurl.tcl: loading test rewrite filters... [27/Feb/2007:14:03:38][30740.3083802304][-main-] Notice: tcl/rewriteurl.tcl: finished loading test rewrite filters. [27/Feb/2007:14:03:38][30740.3083802304][-main-] Notice: nsmain: AOLserver/4.5.0 running [27/Feb/2007:14:03:38][30740.3083802304][-main-] Notice: nsmain: security info: uid=513, euid=513, gid=513, egid=513
Re: [AOLSERVER] ns_rewriteurl virtual hosting module
Tom, I really appreciate your help with this. Here is my solution. It seems to work so far. I altered the code in rewriteurl.tcl to the following: ns_log Notice tcl/rewriteurl.tcl: loading test rewrite filters... proc rewriteRequest { why } { set url [ns_conn url] ns_log Notice rewriteRequest: starturl: '$url' set host [string tolower [ns_set iget [ns_conn headers] host]] if {[string equal [string tolower [string range $host 0 3]] www.]} { set host [string range $host 4 end] } if {![string match $host]} { set new_url /${host}$url ns_rewriteurl $new_url ns_log Notice rewriteRequest: newurl: '$new_url' } return filter_ok } proc finalURL { why } { ns_log Notice finalURL: URL: '[ns_conn url]' return filter_ok } # Fire rewriteRequest on every request ns_register_filter preauth GET /* rewriteRequest # show final URL in trace filter ns_register_filter trace GET /* finalURL ns_log Notice tcl/rewriteurl.tcl: finished loading test rewrite filters. - This simply handled the question regarding the www. in the rewriteRequest proc and eliminated the filter that would have called the rewriteWWW proc. Do you see any issues with this approach? Any issues with using this as a means to run virtual hosts on a moderately busy server? Thanks again. Best regards Thorpe On Feb 27, 2007, at 4:00 PM, Tom Jackson wrote: Thorpe, Also, if you continue to have problems, please append this script to your startup, or run from a tcl/adp page to post your config. It is so easy to think things are set one way, and it is impossible to know for sure unless you look: # Place this at the end of the startup script (the very very end): # # Write Config if Errors Exist # set ErrorText debug set ErrorFile /tmp/aolerrors.txt if {![string eq $ErrorText]} { set configDebug 1 } if {[info exists configDebug] $configDebug} { set sections [ns_configsections] set output [list] foreach section $sections { set name [ns_set name $section] set section_txt append section_txt ns_section $name\n set size [ns_set size $section] for {set i 0} {$i $size} {incr i} { append section_txt \t[list ns_param [ns_set key $section $i] [ns_set value $section $i]]\n } lappend output $section_txt } set output [join [lsort $output] \n]\n puts \n$output\n } if {![string eq $ErrorText]} { set ErrorFd [open $ErrorFile w+] puts $ErrorFd $ErrorText puts $ErrorFd $output close $ErrorFd } ### Finished ### Hope you get this setup without too much trouble. tom jackson On Tuesday 27 February 2007 12:32, Thorpe Mayes wrote: I am trying to install nsrewrite aolserver module and use it in the virtual hosting module per Tom Jackson (http://rmadilo.com/files/nsrewrite/doc/nsrewriteurl.html) . I downloaded the nsrewrite files and did the install. Here is the result of the install: make install /usr/local/bin/tclsh8.4 /usr/local/aolserver/bin/nsinstall.tcl -d /usr/local/aolserver/bin -e nsrewrite.so installed: /usr/local/aolserver/bin/nsrewrite.so (0755) /usr/local/bin/tclsh8.4 /usr/local/aolserver/bin/nsinstall.tcl -d /usr/local/aolserver/lib -e libnsrewrite.so installed: /usr/local/aolserver/lib/libnsrewrite.so (0755) /usr/local/bin/tclsh8.4 /usr/local/aolserver/bin/nsinstall.tcl -d /usr/local/aolserver/lib libnsrewrite.a installed: /usr/local/aolserver/lib/libnsrewrite.a (0644) ranlib /usr/local/aolserver/lib/libnsrewrite.a Looks like it installed okay. I then put the rewriteurl.tcl file in /usr/local/aolserver/modules/tcl. I restarted aolserver - and it restated - and it looks like the rewriteurl filters loaded as well: [27/Feb/2007:14:03:27][30188.3084097216][-main-] Notice: nsmain: AOLserver/4.5.0 exiting [27/Feb/2007:14:03:38][30740.3083802304][-main-] Notice: nsmain: AOLserver/4.5.0 starting [27/Feb/2007:14:03:38][30740.3083802304][-main-] Notice: nsmain: security info: uid=513, euid=513, gid=513, egid=513 [27/Feb/2007:14:03:38][30740.3083802304][-main-] Notice: nsmain: max files: FD_SETSIZE = 1024, rl_cur = 1024, rl_max = 1024 [27/Feb/2007:14:03:38][30740.3083802304][-main-] Notice: fastpath[server1]: mapped GET / [27/Feb/2007:14:03:38][30740.3083802304][-main-] Notice: fastpath[server1]: mapped HEAD / [27/Feb/2007:14:03:38][30740.3083802304][-main-] Notice: fastpath[server1]: mapped POST / [27/Feb/2007:14:03:38][30740.3083802304][-main-] Notice: adp[server1]: mapped GET /*.adp [27/Feb/2007:14:03:38][30740.3083802304][-main-] Notice: adp[server1]: mapped HEAD /*.adp [27/Feb/2007:14:03:38][30740.3083802304][-main-] Notice: adp[server1]: mapped POST /*.adp [27/Feb/2007:14:03:38][30740.3083802304][-main-] Notice: modload: loading '/usr/local/ aolserver/bin/nssock.so' [27/Feb/2007:14:03:38][30740.3083802304][-main-] Notice: modload: loading '/usr/local/ aolserver/bin
[AOLSERVER] ns_db is not working
I have recently installed aolserver 4.5. Everything seems to be working, except I get this error when I try to use the ns_db command: error: Tcl exception: invalid command name ns_db while executing ns_db gethandle $pool invoked from within set db [ns_db gethandle $pool] ns_info works fine. I know I am missing the obvious. Thorpe -- 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.
Re: [AOLSERVER] ns_db is not working
# # Internal redirects # ns_section ns/server/${servername}/redirects ns_param404 /redirects/notfound.tcl ns_param500 /redirects/servererror.tcl # # fastpath serves html # ns_section ns/server/${servername}/fastpath ns_param cachetrue ns_param cachemaxentry8192 ns_param cachemaxsize [expr 5000*1024] ns_param mmap false # # Tcl interpreter # ns_section ns/server/${servername}/tcl ns_paramautoclose true ns_paramdebug false ns_paramnsvbuckets8 ns_paramstatlevel 0 ns_paramstatmaxbuf100 ns_paramlibrary ${homedir}/servers/${servername}/modules/tcl # # ADP (AOLserver Dynamic Page) configuration # ns_section ns/server/${servername}/adp ns_param map /*.adp ;# Extensions to parse as ADP's. #ns_param map /*.html ;# Any extension can be mapped. ns_param enableexpirefalse ;# Set Expires: now on all ADP's. ns_param enabledebug false ;# Allow Tclpro debugging with ?debug. # do we need these? ns_param cache on; # caching is enabled # ns_param fancy on; # # ADP special pages #ns_param errorpage ${pageroot}/errorpage.adp ;# ADP error page. # # ADP custom parsers -- see adp.c # ns_section ns/server/${servername}/adp/parsers ns_param adp .adp;# adp is the default parser. ns_param fancy .adp # # Modules to load # ns_section ns/server/${servername}/modules ns_param nssock ${bindir}/nssock${ext} ns_param nslog ${bindir}/nslog${ext} ns_param nsperm ${bindir}/nsperm${ext} ;# Edit passwd before using. ns_param nsxml ${bindir}/nsxml${ext} ; # old nsxml module ns_param nsdb${bindir}/nsdb${ext} # ns_param nsrewrite ${bindir}/nsrewrite${ext} # ns_param php${bindir}/libphp5${ext} # ns_param nscache ${bindir}/nscache${ext} ; # ns_cache module # PHP # ns_section ns/server/${servername}/module/php # ns_param map *.php # # Socket driver module (HTTP) -- nssock # ns_section ns/server/${servername}/module/nssock ns_param port$httpport ns_param hostname$host ; # was $hostname ns_param address $address ns_param location$location # # Access log -- nslog # ns_section ns/server/${servername}/module/nslog ns_param file /usr/local/aolserver/servers/server2/access.log ns_param formattedtime true ns_param logcombined true ns_param rolllog true ;# Should we roll log? ns_param rollonsignaltrue ;# Roll log on SIGHUP. ns_param rollhour0 ;# Time to roll log. ns_param maxbackup 5 ;# Max number to keep around when rolling. # # Database drivers # ns_section ns/db/drivers ns_parampostgres nspostgres.so # # Database pools # ns_section ns/db/pools ns_paramtmayes Pool for postgres database # # database pool () configuration # ns_section ns/db/pool/tmayes ns_paramdriver postgres ns_paramconnections20 ns_paramdatasource localhost:5432:testdb ns_paramuser x ns_parampassword x ns_paramverboseon ; # set on to see all queries ns_paramlogsqlerrors on ns_paramextendedtableinfo on #ns_param maxopen3600 #ns_paramaxidle600 # # Database pools accessible by server # ns_section ns/server/${servername}/db ns_paramdefaultpool tmayes ns_parampools * ns_log notice nsd_72.tcl: finished reading config file for ecognote.com (.72). On May 3, 2007, at 12:25 PM, Rusty Brooks wrote: We'll need more information, most notably your config file. Make sure to redact any passwords, hostnames, etc. My guess is that you're either not loading the database driver, or not configuring the ns_db section properly. Rusty Thorpe Mayes wrote: I have recently installed aolserver 4.5. Everything seems to be working, except I get this error when I try to use the ns_db command: error: Tcl exception: invalid command name ns_db while executing ns_db gethandle $pool invoked from within set db [ns_db gethandle $pool] ns_info works fine. I know I am missing the obvious. Thorpe -- 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. -- 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. Thorpe Mayes [EMAIL PROTECTED] Office: (405) 912-3260 Cell: (405) 514-9753 Platt College 201 North Eastern Moore, Oklahoma 73160 -- AOLserver - http://www.aolserver.com/ To Remove yourself from this list, simply send an email to [EMAIL PROTECTED
Re: [AOLSERVER] ns_db is not working
Thank you for your help with this problem. The problem is now solved. Here is the problem: [04/May/2007:08:48:19][31994.3083773632][-main-] Warning: modload: could not load /usr/local/aolserver/bin/nspostgres.\so: libpq.so.3: cannot open shared object file: No such file or directory [04/May/2007:08:48:19][31994.3083773632][-main-] Error: dbdrv: failed to load driver 'postgres' Here is my solution: # cp /usr/local/pgsql/lib/libpq.so.3 /usr/lib/ Tom, thank you for sending me the link to a sample nsd.tcl file. That helped me tweak my file and gave me some much needed insights. All seems to be well now. Here is something that shows up in the server log whenever I restart aolserver: Error: tcl: source /usr/local/aolserver/modules/tcl/about.tcl failed:\ invalid command name ns_adminlink NONE invalid command name ns_adminlink while executing ns_adminlink About This Server /NS/About (file /usr/local/aolserver/modules/tcl/about.tcl line 15) invoked from within source $file and then: Error: tcl: source /usr/local/aolserver/modules/tcl/gettcl.tcl failed\ : invalid command name ns_adminlink NONE invalid command name ns_adminlink while executing ns_adminlink Tcl Scripting /NS/Tcl/Admin invoked from within if { $should_enable } { #ns_register_proc GET /NS/Tcl/Admin _ns_tcladmin # we are going to unregister this thing ns_unregister_proc GET /NS/T... (file /usr/local/aolserver/modules/tcl/gettcl.tcl line 21) invoked from within source $file Thank you for your help. Best regards, Thorpe On May 3, 2007, at 2:13 PM, Dossy Shiobara wrote: On 2007.05.03, Thorpe Mayes [EMAIL PROTECTED] wrote: However, I now have a database pool issue when I try to set the database handle: Error: Tcl exception: no access to pool: tmayes while executing ns_db gethandle $pool invoked from within set db [ns_db gethandle $pool] Your config file looks correct but I'm guessing the connection information in the pool definition is wrong. Can you connect using psql using that connect information? Check the AOLserver server.log ... are you seeing any errors when you first attempt to use the DB pool? -- Dossy -- Dossy Shiobara | [EMAIL PROTECTED] | http://dossy.org/ Panoptic Computer Network | http://panoptic.com/ He realized the fastest way to change is to laugh at your own folly -- then you can let go and quickly move on. (p. 70) -- 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. Thorpe Mayes [EMAIL PROTECTED] Office: (405) 912-3260 Cell: (405) 514-9753 Platt College 201 North Eastern Moore, Oklahoma 73160 -- 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.
Re: [AOLSERVER] aolserver focus
I predict that AOLServer will be gone within 10 years. Maybe 5 years. People will say: It was really good software. I do not know what happened. It does not have to turn out that way. This is the second time in a year or so that I have seen this discussion on this list. It always generates a lot of activity and emotion. I believe that this is an indication that AOLServer is in its death throes. My friends, it does not have to turn out that way. The problem with AOLServer is not technical. It is not related to the people who work hard and unselfishly to develop the software. It is not because it is lacking in features. Instead, the problem is that it is not accessible. Consider this: Junior Programmer, the IT guy at a non-profit, has been given the task of setting up a web site that is easy to update, has a calendar and event function, has a restricted area for board members to access meeting reports, and allows users to register to receive a newsletter delivered by email. Junior has installed the latest version of Linux on his server. The installation software guided him through the process and he bought a book that served as a reference. (You will be shocked to learn that most people who manage servers are not programming geniuses.). He installed qMail by downloading the software and following the guidance in the qMail book he bought and by going to the qMail web site where there are detailed instructions covering the installation of the software. He installed D. J. Bernstein's daemntools software by following the detailed instructions on the web site. Now, he wants to run a web server. He knows about Apache and has heard about AOLServer. So, he Googles Installing Apache and Installing AOLServer. Guess which server software Junior decides to use. It is not AOLServer. I think most people will agree that the popular and influential religions all have a written document that explains themselves to potential clients. The same is true for open source server software. Several years ago there was talk about an AOLServer book. It never materialized. If you want this software to have a chance of surviving, you need to write a document that explains the software to the unwashed masses. It does not have to be exhaustive. Keep the 80:20 rule in mind: most people will use only 20 percent of the software's features. Figure out what those are and address them thoroughly. Leave the rest to the developers and those with special needs. Here is a starting point: 1. Introduction Tell people what AOLServer does and how great it is. When they finish this chapter, they should be convinced that this is the way to go. 2. History AOLServer has a history. Tell people what it is. The history will establish its bone fides and help sell the software. 3. Installation This needs to be very detailed (remember Junior Programmer). Show how to install the software on the major variants of Linux, MS Windows, and Mac OS. Leave out the obscure operating systems. Cover every step. Do not assume that Junior knows anything. Tell Junior what folders to create and where to create them (Programming Geniuses will know that they can do whatever they want, but Junior is nervous and wants to have his hand held.) Cover troubleshooting issues. You cannot cover everything, but there are some common errors that should be discussed. Give instructions on how to test the software. 4. Review the essential features Do not just list them and assume that Junior will figure it out. Go into detail and give examples. Provide a complete list of configuration parameters and explain how to use them Cover ns_ functions. Talk about how to use them. Cover tcl and its integration with AOLServer. Again, give examples. There are others. Cover them. 5. Show how to use AOLServer to build web pages - that is what a web server is for This may be obvious, but including this is important. Static web pages Static and Dynamic web pages with tcl Dynamic web pages with adp The more examples, the better. 6. Cover the features everyone uses - this is the 20 percent of features Cover how to connect to a database. Give examples. Cover https. Give examples. Cover virtual servers. Give examples. There are more. Give lots of examples. 7. Advanced features Talk about how to create c modules Talk about how to contribute to the software Talk about advanced features That is it. I am sure that I missed some things, but you get the picture. Some of you will note that a lot of this information is out there. That is probably true. The problem is that there is not a single source for this information. Plus, as new versions of the software have come out, the documentation has not caught up. The unwashed masses want things to be accessible. Make it so, and they are more likely to use it. As long as it is hard to use, no one will use it.
Re: [AOLSERVER] Fun, free applications for building personal sites.
That is not a bad idea, provided you have some documentation prepared for AOLServer. It will not do anyone any good to have a fun, free application if they cannot figure out how to install the software. The documentation does not have to be absolutely comprehensive. How about this: how to do a basic install on linux (a couple of flavors) and Windows - step-by-step instructions for the current version of AOLServer on current operating systems. a complete list of the variables in the nsd.tcl file and what they mean and some typical values a standard way to organize the files associated with AOLServer an intro to building stuff in AOLServer with tcl Before you jump start AOLServer with magic, make sure you have the basics covered, otherwise, it will just be magic. Thorpe Just enough for someone to get the thing working without having to feel like an idiot. On May 3, 2008, at 5:03 PM, Dossy Shiobara wrote: Back in Feburary 2005, Dan Chak at MIT said something to me that I just haven't had the motivation to pursue. However, I really would like to hear what folks think of his statement: What AOLServer community needs is a bunch of fun, free applications for building personal sites. It's stupid, but that's how you get the initial hook on people. I'm not sure who is going to make and release these fun, free apps though, because there's currently also no audience for it. It's kind of a bootstrapping problem. It's definitely a chicken-and-egg problem: most newbies won't try AOLserver for the heck of it but would go through the trouble if there was an application they wanted to run, i.e. OpenACS. Of course, there's little motivation to develop a fun, free app. for AOLserver if nobody's going to try it out. How do we break out of this deadlock? -- Dossy Shiobara | [EMAIL PROTECTED] | http://dossy.org/ Panoptic Computer Network | http://panoptic.com/ He realized the fastest way to change is to laugh at your own folly -- then you can let go and quickly move on. (p. 70) -- 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. Thorpe Mayes voice: (405) 514-9753 [EMAIL PROTECTED] -- 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.
[AOLSERVER] Configuring nsopenssl - unable to get to work
I am trying to set up an ssl connection. I am using aolserver 4.5.0. Here is the portion of the nsd file that pertains: # SSL contexts. Each SSL context is a template that SSL connections are created # from. A single SSL context may be used by multiple drivers, sockservers and # sockclients. ns_section ns/server/${servername}/module/nsopenssl/sslcontexts ns_param users SSL context used for regular user access ### ns_param client SSL context used for outgoing script socket connections # We explicitly tell the server which SSL contexts to use as defaults when an # SSL context is not specified for a particular client or server SSL # connection. Driver connections do not use defaults; they must be explicitly # specificied in the driver section. The Tcl API will use the defaults as there # is currently no provision to specify which SSL context to use for a # particular connection via an ns_openssl Tcl command. ns_section ns/server/${servername}/module/nsopenssl/defaults ns_param server users ns_section ns/server/${servername}/module/nsopenssl/sslcontext/users ns_param Role server ns_param ModuleDir ${homedir}/servers/${servername}/modules/nsopenssl; # ${serverroot}/etc/certs/ ns_param CertFile cert.pem ns_param KeyFile key.pem ns_param CADir ca ns_param CAFile ca.pem ns_param Protocols SSLv2, SSLv3, TLSv1 ns_param CipherSuite ALL:!ADH:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP ns_param PeerVerify false ns_param PeerVerifyDepth 3 ns_param Trace false # SSL drivers. Each driver defines a port to listen on and an explitictly named # SSL context to associate with it. Note that you can now have multiple driver # connections within a single virtual server, which can be tied to different # SSL contexts. Isn't that cool? ns_section ns/server/${servername}/module/nsopenssl/ssldrivers ns_param users Driver for regular user access ns_section ns/server/${servername}/module/nsopenssl/ssldriver/users ns_param sslcontext users ns_param port $httpsport ns_param hostname $hostname ns_param address $address # OpenSSL library support: #ns_param RandomFile /some/file ns_param SeedBytes 1024 Here is the result when I restart the server: [27/Oct/2010:17:23:55][13466.3083437760][-main-] Notice: nsmain: AOLserver/4.5.0 starting [27/Oct/2010:17:23:55][13466.3083437760][-main-] Notice: nsmain: security info: uid=xxx, euid=xxx, gid=xxx, egid=xxx [27/Oct/2010:17:23:55][13466.3083437760][-main-] Notice: nsmain: max files: FD_SETSIZE = 1024, rl_cur = 1024, rl_max = 1024 [27/Oct/2010:17:23:55][13466.3083437760][-main-] Notice: encoding: loaded: utf-8 [27/Oct/2010:17:23:55][13466.3083437760][-main-] Notice: fastpath[server8]: mapped GET / [27/Oct/2010:17:23:55][13466.3083437760][-main-] Notice: fastpath[server8]: mapped HEAD / [27/Oct/2010:17:23:55][13466.3083437760][-main-] Notice: fastpath[server8]: mapped POST / [27/Oct/2010:17:23:55][13466.3083437760][-main-] Notice: adp[server8]: mapped GET /*.adp [27/Oct/2010:17:23:55][13466.3083437760][-main-] Notice: adp[server8]: mapped HEAD /*.adp [27/Oct/2010:17:23:55][13466.3083437760][-main-] Notice: adp[server8]: mapped POST /*.adp [27/Oct/2010:17:23:55][13466.3083437760][-main-] Notice: adp[server8]: mapped GET /*.html [27/Oct/2010:17:23:55][13466.3083437760][-main-] Notice: adp[server8]: mapped HEAD /*.html
Re: [AOLSERVER] Configuring nsopenssl - unable to get to work
Jeff, Thanks for the reply and the advice. Tried it and got this: 27/Oct/2010:21:42:27][23535.3061283744][-nsopenssl:driver-] Error: nsopenssl: failed to listen on 64.58.34.55:443: Permission denied [27/Oct/2010:21:42:27][23535.3061283744][-nsopenssl:driver-] Notice: exiting [27/Oct/2010:21:42:27][23535.3083630272][-main-] Notice: driver: starting: nssock [27/Oct/2010:21:42:27][23535.3060226976][-nssock:driver-] Notice: starting [27/Oct/2010:21:42:27][23535.3060226976][-nssock:driver-] Notice: nssock: listening on 64.58.34.55:80 [27/Oct/2010:21:42:27][23535.3083630272][-main-] Fatal: could not start drivers [27/Oct/2010:21:42:28][23547.3084039872][-main-] Notice: nsmain: AOLserver/4.5.0 starting The server would not start. Is this related to the https port being a privileged port? I am using daemon tools to start and stop the server. Thanks. Thorpe On Oct 27, 2010, at [Oct/27] 9:16 PM, Jeff wrote: Note this line in your startup log: [27/Oct/2010:17:23:55][13466.3061930912][-nsopenssl:driver-] Notice: nsopenssl: listening on 64.58.34.55:8443 Your ssl server is running fine at https://www.getreadytoshift.com:8443/ Somewhere in your config is a setting like set httpsport 8443 Change that to set httpsport 443 and you should be good to go. Alternately, you could set up port forwarding, but since you're already running on port 80 there's no real need. -J Thorpe Mayes wrote: I am trying to set up an ssl connection. I am using aolserver 4.5.0. Here is the portion of the nsd file that pertains: # SSL contexts. Each SSL context is a template that SSL connections are created # from. A single SSL context may be used by multiple drivers, sockservers and # sockclients. ns_section ns/server/${servername}/module/nsopenssl/sslcontexts ns_param users SSL context used for regular user access ### ns_param client SSL context used for outgoing script socket connections # We explicitly tell the server which SSL contexts to use as defaults when an # SSL context is not specified for a particular client or server SSL # connection. Driver connections do not use defaults; they must be explicitly # specificied in the driver section. The Tcl API will use the defaults as there # is currently no provision to specify which SSL context to use for a # particular connection via an ns_openssl Tcl command. ns_section ns/server/${servername}/module/nsopenssl/defaults ns_param server users ns_section ns/server/${servername}/module/nsopenssl/sslcontext/users ns_param Role server ns_param ModuleDir ${homedir}/servers/${servername}/modules/ nsopenssl; # ${serverroot}/etc/certs/ ns_param CertFile cert.pem ns_param KeyFile key.pem ns_param CADir ca ns_param CAFile ca.pem ns_param Protocols SSLv2, SSLv3, TLSv1 ns_param CipherSuite ALL:!ADH:RC4+RSA:+HIGH:+MEDIUM:+LOW: +SSLv2:+EXP ns_param PeerVerify false ns_param PeerVerifyDepth 3 ns_param Trace false # SSL drivers. Each driver defines a port to listen on and an explitictly named # SSL context to associate with it. Note that you can now have multiple driver # connections within a single virtual server, which can be tied to different # SSL contexts. Isn't that cool? ns_section ns/server/${servername}/module/nsopenssl/ssldrivers ns_param users Driver for regular user access ns_section ns/server/${servername}/module/nsopenssl/ssldriver/users ns_param sslcontext users ns_param port $httpsport ns_param hostname $hostname ns_param address $address # OpenSSL library support: #ns_param RandomFile /some/file ns_param SeedBytes 1024 Here is the result when I restart the server: [27/Oct/2010:17:23:55][13466.3083437760][-main-] Notice: nsmain: AOLserver/4.5.0 starting [27/Oct/2010:17:23:55][13466.3083437760][-main-] Notice: nsmain: security info: uid=xxx, euid=xxx, gid=xxx, egid=xxx [27/Oct/2010:17:23:55][13466.3083437760][-main-] Notice: nsmain: max files: FD_SETSIZE = 1024, rl_cur = 1024, rl_max = 1024 [27/Oct/2010:17:23:55][13466.3083437760][-main-] Notice: encoding: loaded: utf-8 [27/Oct/2010:17:23:55][13466.3083437760][-main-] Notice: fastpath[server8]: mapped GET / [27/Oct/2010:17:23:55][13466.3083437760][-main-] Notice: fastpath[server8]: mapped HEAD / [27/Oct/2010:17:23:55][13466.3083437760][-main-] Notice: fastpath[server8]: mapped POST / [27/Oct/2010:17:23:55][13466.3083437760][-main-] Notice: adp[server8]: mapped GET /*.adp [27/Oct/2010:17:23:55][13466.3083437760][-main-] Notice: adp[server8]: mapped HEAD /*.adp [27/Oct/2010:17:23:55][13466.3083437760][-main-] Notice: adp[server8]: mapped POST /*.adp [27/Oct/2010:17:23:55][13466.3083437760][-main-] Notice: adp[server8]: mapped GET /*.html [27/Oct/2010:17:23:55][13466.3083437760][-main-] Notice: adp[server8]: mapped HEAD /*.html [27/Oct/2010:17:23:55][13466.3083437760][-main-] Notice: adp[server8]: mapped POST /*.html [27/Oct/2010:17:23:55][13466.3083437760][-main-] Notice: modload
[AOLSERVER] Tcl error
Hi, When I run this code to show a web page (or any code that shows a web page): ns_log Notice TEST set data html head titleServer 14/title /head body h1Server 14/h1 /body /html ns_return 200 text/html $data I get this error: [22/Aug/2011:08:49:49][9181.3056597920][-conn:272-] Notice: TEST [22/Aug/2011:08:49:49][9181.3056597920][-conn:272-] Error: Tcl exception: can't read errorPage: no such variable while executing if { $errorPage == } { return -code $code -errorcode $errorCode -errorinfo $errorInfo $result } else { ## Custom error page -- unfortun... (procedure ns_sourceproc line 28) invoked from within ns_sourceproc cns6144 {} [22/Aug/2011:08:51:49][9181.3056597920][-conn:272-] Notice: exiting: timeout waiting for connection I am running AOLserver 4.5.0 with Tcl 8.4 Can anyone point me in the right direction on this? Thanks, Thorpe Thorpe Mayes tma...@ecognizant.com 405.514.9753 -- AOLserver - http://www.aolserver.com/ To Remove yourself from this list, simply send an email to lists...@listserv.aol.com with the body of SIGNOFF AOLSERVER in the email message. You can leave the Subject: field of your email blank.
[AOLSERVER] Unable to install nssolid database driver on aolserver4.5.0
Hi, I am trying to install the solid database drivers and cannot do it. I am running aolserver 4.5.0. I added the nssolid_3.0 driver. I then added solid-fix.tar, which updated the Makefile file and added the nssolid.h file to the nssolid directory. When I run make I get this result: make gcc -pipe -I/usr/local/solid/solidSDKe352/Linux_glibc2/include -DSOLVER=350 -O2 -Wall -Wno-implicit-int -fno-strict-aliasing -fPIC -I/usr/local/aolserver/include -I/usr/local/include -DNO_CONST -DHAVE_LIMITS_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_PARAM_H=1 -DUSE_THREAD_ALLOC=1 -D_REENTRANT=1 -D_THREAD_SAFE=1 -DHAVE_PTHREAD_ATTR_SETSTACKSIZE=1 -DHAVE_PTHREAD_ATFORK=1 -DTCL_THREADS=1 -DPEEK_XCLOSEIM=1 -D_LARGEFILE64_SOURCE=1 -DTCL_WIDE_INT_TYPE=long\ long -DHAVE_STRUCT_STAT64=1 -DHAVE_OPEN64=1 -DHAVE_LSEEK64=1 -DHAVE_TYPE_OFF64_T=1 -DHAVE_GETCWD=1 -DHAVE_OPENDIR=1 -DHAVE_STRSTR=1 -DHAVE_STRTOL=1 -DHAVE_STRTOLL=1 -DHAVE_STRTOULL=1 -DHAVE_TMPNAM=1 -DHAVE_WAITPID=1 -DUSE_TERMIOS=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_TIMEZONE_VAR=1 -DHAVE_ST_BLKSIZE=1 -DSTDC_HEADERS=1 -DHAVE_SIGNED_CHAR=1 -DHAVE_LANGINFO=1 -DHAVE_SYS_IOCTL_H=1 -DPACKAGE_NAME=\\ -DPACKAGE_TARNAME=\\ -DPACKAGE_VERSION=\\ -DP! ACKAGE_STRING=\\ -DPACKAGE_BUGREPORT=\\ -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_TIMEGM=1 -DHAVE_DRAND48=1 -DHAVE_RANDOM=1 -DHAVE_POLL=1 -DHAVE_GETADDRINFO=1 -DHAVE_GETNAMEINFO=1-c -o nssolid.o nssolid.c nssolid.c:89: error: expected ‘)’ before ‘*’ token nssolid.c:90: error: expected ‘)’ before ‘*’ token nssolid.c:91: error: expected ‘)’ before ‘*’ token nssolid.c:92: error: expected ‘)’ before ‘*’ token nssolid.c:93: error: expected ‘)’ before ‘*’ token nssolid.c:94: error: expected ‘)’ before ‘*’ token nssolid.c:95: error: expected ‘)’ before ‘*’ token nssolid.c:96: error: expected ‘)’ before ‘*’ token nssolid.c:97: error: expected ‘)’ before ‘*’ token nssolid.c:101: error: expected declaration specifiers or ‘...’ before ‘Ns_DbHandle’ nssolid.c:105: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘odbcProcs’ nssolid.c: In function ‘Ns_DbDriverInit’: nssolid.c:133: warning: implicit declaration of function ‘Ns_DbRegisterDriver’ nssolid.c:133: error: ‘odbcProcs’ undeclared (first use in this function) nssolid.c:133: error: (Each undeclared identifier is reported only once nssolid.c:133: error: for each function it appears in.) nssolid.c: In function ‘Ns_ODBCShutdown’: nssolid.c:154: warning: passing argument 2 of ‘ODBCLog’ makes integer from pointer without a cast nssolid.c:154: error: too many arguments to function ‘ODBCLog’ nssolid.c: At top level: nssolid.c:182: error: expected ‘)’ before ‘*’ token nssolid.c:227: error: expected ‘)’ before ‘*’ token nssolid.c:244: error: expected ‘)’ before ‘*’ token nssolid.c:291: error: expected ‘)’ before ‘*’ token nssolid.c:352: error: expected ‘)’ before ‘*’ token nssolid.c:411: error: expected ‘)’ before ‘*’ token nssolid.c:417: error: expected ‘)’ before ‘*’ token nssolid.c:443: error: expected ‘)’ before ‘*’ token nssolid.c:499: error: expected ‘)’ before ‘*’ token nssolid.c: In function ‘ODBCCmd’: nssolid.c:552: error: ‘Ns_DbHandle’ undeclared (first use in this function) nssolid.c:552: error: ‘handle’ undeclared (first use in this function) nssolid.c:562: warning: implicit declaration of function ‘Ns_TclDbGetHandle’ nssolid.c:566: warning: implicit declaration of function ‘Ns_DbDriverName’ nssolid.c:566: warning: comparison between pointer and integer nssolid.c:573: error: too many arguments to function ‘ODBCLog’ nssolid.c:583: error: too many arguments to function ‘ODBCLog’ nssolid.c: At top level: nssolid.c:617: error: expected declaration specifiers or ‘...’ before ‘Ns_DbHandle’ nssolid.c: In function ‘ODBCLog’: nssolid.c:633: warning: pointer targets in passing argument 4 of ‘SQLError’ differ in signedness nssolid.c:633: warning: pointer targets in passing argument 6 of ‘SQLError’ differ in signedness nssolid.c:638: error: ‘handle’ undeclared (first use in this function) make: *** [nssolid.o] Error 1 Thanks, Thorpe Thorpe Mayes 405.514.9753 -- AOLserver - http://www.aolserver.com/ To Remove yourself from this list, simply send an email to lists...@listserv.aol.com with the body of SIGNOFF AOLSERVER in the email message. You can leave the Subject: field of your email blank.
Re: [AOLSERVER] Unable to install nssolid database driver on aolserver4.5.0
Hi Jeff, Thanks for the note. The nssolid3_0.tar file generates a Makefile and a nssolid.c file. When I run the solid-fix.tar file, the Makefile is updated (the Makefile that nssold3_0.tar generates is missing some definitions) and it creates a file named nssolid.h. The solid-fix.tar file is something I used several years ago when I first added Solid to a server. (That server is now dying and I need to get things moved.). I tried your suggestion; the errors persist. The nssolid.c file is not the same as the .c file I used several years ago. However, the older one does not work either, so it is a moot point. It just may not be possible to do this. Thanks, Thorpe On Oct 14, at (Oct 14) 1:56 PM, Jeff Rogers wrote: Thorpe Mayes wrote: Hi, I am trying to install the solid database drivers and cannot do it. I am running aolserver 4.5.0. I added the nssolid_3.0 driver. I then added solid-fix.tar, which updated the Makefile file and added the nssolid.h file to the nssolid directory. Where is solid-fix.tar from? I didn't see it in the SF repository. Anyway, these errors are typical of a missing header file. It may be that no one has tried to build nssolid in a very long time and the headers have changed; in particular the reference to ‘Ns_DbRegisterDriver’ suggests that nsdb.h was not included (I think nsdb used to be part of the core, but it is now a separate module). Try adding '#include nsdb.h' to nssolid.c after '#include ns.h' and see if that gets you fewer errors. -J When I run make I get this result: make gcc -pipe -I/usr/local/solid/solidSDKe352/Linux_glibc2/include -DSOLVER=350 -O2 -Wall -Wno-implicit-int -fno-strict-aliasing -fPIC -I/usr/local/aolserver/include -I/usr/local/include -DNO_CONST -DHAVE_LIMITS_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_PARAM_H=1 -DUSE_THREAD_ALLOC=1 -D_REENTRANT=1 -D_THREAD_SAFE=1 -DHAVE_PTHREAD_ATTR_SETSTACKSIZE=1 -DHAVE_PTHREAD_ATFORK=1 -DTCL_THREADS=1 -DPEEK_XCLOSEIM=1 -D_LARGEFILE64_SOURCE=1 -DTCL_WIDE_INT_TYPE=long\ long -DHAVE_STRUCT_STAT64=1 -DHAVE_OPEN64=1 -DHAVE_LSEEK64=1 -DHAVE_TYPE_OFF64_T=1 -DHAVE_GETCWD=1 -DHAVE_OPENDIR=1 -DHAVE_STRSTR=1 -DHAVE_STRTOL=1 -DHAVE_STRTOLL=1 -DHAVE_STRTOULL=1 -DHAVE_TMPNAM=1 -DHAVE_WAITPID=1 -DUSE_TERMIOS=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_TIMEZONE_VAR=1 -DHAVE_ST_BLKSIZE=1 -DSTDC_HEADERS=1 -DHAVE_SIGNED_CHAR=1 -DHAVE_LANGINFO=1 -DHAVE_SYS_IOCTL_H=1 -DPACKAGE_NAME=\\ -DPACKAGE_TARNAME=\\ -DPACKAGE_VERSION=\\ ! -D P! ACKAGE_STRING=\\ -DPACKAGE_BUGREPORT=\\ -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_TIMEGM=1 -DHAVE_DRAND48=1 -DHAVE_RANDOM=1 -DHAVE_POLL=1 -DHAVE_GETADDRINFO=1 -DHAVE_GETNAMEINFO=1 -c -o nssolid.o nssolid.c nssolid.c:89: error: expected ‘)’ before ‘*’ token nssolid.c:90: error: expected ‘)’ before ‘*’ token nssolid.c:91: error: expected ‘)’ before ‘*’ token nssolid.c:92: error: expected ‘)’ before ‘*’ token nssolid.c:93: error: expected ‘)’ before ‘*’ token nssolid.c:94: error: expected ‘)’ before ‘*’ token nssolid.c:95: error: expected ‘)’ before ‘*’ token nssolid.c:96: error: expected ‘)’ before ‘*’ token nssolid.c:97: error: expected ‘)’ before ‘*’ token nssolid.c:101: error: expected declaration specifiers or ‘...’ before ‘Ns_DbHandle’ nssolid.c:105: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘odbcProcs’ nssolid.c: In function ‘Ns_DbDriverInit’: nssolid.c:133: warning: implicit declaration of function ‘Ns_DbRegisterDriver’ nssolid.c:133: error: ‘odbcProcs’ undeclared (first use in this function) nssolid.c:133: error: (Each undeclared identifier is reported only once nssolid.c:133: error: for each function it appears in.) nssolid.c: In function ‘Ns_ODBCShutdown’: nssolid.c:154: warning: passing argument 2 of ‘ODBCLog’ makes integer from pointer without a cast nssolid.c:154: error: too many arguments to function ‘ODBCLog’ nssolid.c: At top level: nssolid.c:182: error: expected ‘)’ before ‘*’ token nssolid.c:227: error: expected ‘)’ before ‘*’ token nssolid.c:244: error: expected ‘)’ before ‘*’ token nssolid.c:291: error: expected ‘)’ before ‘*’ token nssolid.c:352: error: expected ‘)’ before ‘*’ token nssolid.c:411: error: expected ‘)’ before ‘*’ token nssolid.c:417: error: expected ‘)’ before ‘*’ token nssolid.c:443: error: expected ‘)’ before ‘*’ token nssolid.c:499: error: expected ‘)’ before ‘*’ token nssolid.c: In function ‘ODBCCmd’: nssolid.c:552: error: ‘Ns_DbHandle’ undeclared (first use in this function) nssolid.c:552: error: ‘handle’ undeclared (first use in this function) nssolid.c:562: warning: implicit declaration of function ‘Ns_TclDbGetHandle’ nssolid.c:566: warning: implicit