From henkgoosen at gmail.com Thu Jul 1 20:00:30 2010 From: henkgoosen at gmail.com (Henk Goosen) Date: Thu, 1 Jul 2010 17:00:30 -0700 Subject: [FASTCGI] License Issue: Request to change license Message-ID: <11E16096-1738-45BC-B771-03306184BC68@gmail.com> I read a previous thread on this topic. The conclusion was that the LICENSE.TERMS file overrides the license terms in the associated files that have this marking: ------------------------------------------------------------------ * Copyright (c) 1996 Open Market, Inc. * All rights reserved. * * This file contains proprietary and confidential information and * remains the unpublished property of Open Market, Inc. Use, * disclosure, or reproduction is prohibited except as permitted by * express written license agreement with Open Market, Inc. * * Bill Snapper * snapper at openmarket.com ------------------------------------------------------------------ based on the fact that this marking does not explicitly override the terms in LICENSE.TERMS. I am not sure that I buy this reasoning, and would prefer not to have to defend it if challenged by the copyright holder. I would suggest that the maintainers replace the current license marking in the associated files with the marking in most of the other source files, that explicitly defer to the terms in LICENSE.TERMS. This probably requires getting approval from Open Market (which may no longer exist), or else legal clearance that this is allowed (perhaps under the terms explained in the earlier thread, on the basis that this marking is a contradiction? In my opinion this would reduce the barriers to using the library, because the status quo creates some legal uncertainty, that it would be better to avoid entirely. Thank you. Henk Goosen From wes at werxltd.com Mon Jul 12 15:41:32 2010 From: wes at werxltd.com (Wes Widner) Date: Mon, 12 Jul 2010 15:41:32 -0400 Subject: [FASTCGI] The right way to debug a FastCGI app Message-ID: Hello, I've recently written an application using the FastCGI framework (in C) and I've been very impressed with the speed it offers. However when I went to write an extension to my application I've run into some difficulties debugging my code so I wanted to see if anyone here had a better idea of how to go about debugging a FastCGI application. Here is what I am attempting to do thus far: Run cgi-fcgi through gdb: gdb cgi-fcgi Then run my fastcgi application directly: (gdb) r -start -connect 127.0.0.1:9005 ./myapp.fcgi 1 This produces the output: Starting program: /usr/bin/cgi-fcgi -start -connect 127.0.0.1:9005 ./*myapp*.fcgi 1 [Thread debugging using libthread_db enabled] Program exited normally. Is this the right approach? If so, what am I doing wrong? If not, what is the best way to go about debugging my application? Thanks in advance, -Wes -------------- next part -------------- An HTML attachment was scrubbed... URL: From tbandrowsky at treatyist.com Tue Jul 13 12:08:58 2010 From: tbandrowsky at treatyist.com (tbandrowsky at treatyist.com) Date: Tue, 13 Jul 2010 09:08:58 -0700 Subject: [FASTCGI] Debugging FastCGI Message-ID: <20100713090858.e01180f73feff242cd7555d8a024b57c.75c9d27ebb.wbe@email04.secureserver.net> An HTML attachment was scrubbed... URL: From charles_thomas at mac.com Tue Jul 13 12:23:11 2010 From: charles_thomas at mac.com (Tom Bowden) Date: Tue, 13 Jul 2010 11:23:11 -0500 Subject: [FASTCGI] Debugging FastCGI In-Reply-To: <20100713090858.e01180f73feff242cd7555d8a024b57c.75c9d27ebb.wbe@email04.secureserver.net> References: <20100713090858.e01180f73feff242cd7555d8a024b57c.75c9d27ebb.wbe@email04.secureserver.net> Message-ID: In my fastcgi development I am using citrix/xen servers with apache servers talking to fastcgi apps. In order to make some sense out of the logs that can be generated i always setup vms to forward messages to a separate server (not running anything else). It consolidates all of my logging without making it any more difficult to manage. What I really like about syslog is that you can set the limits on how big the files grow to, etc. really sweet. And whenever I am forced (and I mean __FORCED__) to do windows programming, i use one of the third party apps for exporting window log messages to a syslog server... On Jul 13, 2010, at 11:08 AM, tbandrowsky at treatyist.com wrote: > > I've been having good success just dumping everything to syslog, > which is obviously a unix construct but I have the log file viewer > open and just run it, and it works out to be faster for me than > even doing C# / ASP.NET debugging and setting breakpoints. My site > is up at http://www.mightyware.com, and its a nutty mix of stuff, > but the whole thing is a fastcgi app with all the .bhs pages are > just text files filtered by the fastcgi. Works pretty well. I > debug it on my ubuntu box and then deploy it up to my linode and I > just love it. > > -------- Original Message -------- > Subject: FastCGI-developers_Digest,_Vol_24,_Issue_2 > From: fastcgi-developers-request at mailman.fastcgi.com > Date: Tue, July 13, 2010 12:00 pm > To: fastcgi-developers at mailman.fastcgi.com > > Send FastCGI-developers mailing list submissions to > fastcgi-developers at mailman.fastcgi.com > > To subscribe or unsubscribe via the World Wide Web, visit > http://mailman.pins.net/mailman/listinfo.cgi/fastcgi-developers > or, via email, send a message with subject or body 'help' to > fastcgi-developers-request at mailman.fastcgi.com > > You can reach the person managing the list at > fastcgi-developers-owner at mailman.fastcgi.com > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of FastCGI-developers digest..." > > > Today's Topics: > > 1. The right way to debug a FastCGI app (Wes Widner) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Mon, 12 Jul 2010 15:41:32 -0400 > From: Wes Widner > Subject: [FASTCGI] The right way to debug a FastCGI app > To: fastcgi-developers at mailman.fastcgi.com > Message-ID: > > Content-Type: text/plain; charset="iso-8859-1" > > Hello, > > I've recently written an application using the FastCGI framework > (in C) and > I've been very impressed with the speed it offers. However when I > went to > write an extension to my application I've run into some difficulties > debugging my code so I wanted to see if anyone here had a better > idea of how > to go about debugging a FastCGI application. > > Here is what I am attempting to do thus far: > Run cgi-fcgi through gdb: gdb cgi-fcgi > Then run my fastcgi application directly: (gdb) r -start -connect > 127.0.0.1:9005 ./myapp.fcgi 1 > > This produces the output: > Starting program: /usr/bin/cgi-fcgi -start -connect 127.0.0.1:9005 > ./*myapp*.fcgi > 1 > [Thread debugging using libthread_db enabled] > > Program exited normally. > > Is this the right approach? If so, what am I doing wrong? If not, > what is > the best way to go about debugging my application? > > Thanks in advance, > -Wes > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: developers/attachments/20100712/447407e3/attachment-0001.html>; > > ------------------------------ > > _______________________________________________ > FastCGI-developers mailing list > FastCGI-developers at mailman.fastcgi.com > http://mailman.pins.net/mailman/listinfo.cgi/fastcgi-developers > > > End of FastCGI-developers Digest, Vol 24, Issue 2 > ************************************************* > _______________________________________________ > FastCGI-developers mailing list > FastCGI-developers at mailman.fastcgi.com > http://mailman.pins.net/mailman/listinfo.cgi/fastcgi-developers -------------- next part -------------- An HTML attachment was scrubbed... URL: From ninive at gmx.at Tue Jul 13 12:31:24 2010 From: ninive at gmx.at (double) Date: Tue, 13 Jul 2010 18:31:24 +0200 Subject: [FASTCGI] Debugging FastCGI In-Reply-To: <20100713090858.e01180f73feff242cd7555d8a024b57c.75c9d27ebb.wbe@email04.secureserver.net> References: <20100713090858.e01180f73feff242cd7555d8a024b57c.75c9d27ebb.wbe@email04.secureserver.net> Message-ID: <4C3C94DC.9060208@gmx.at> Am 13.07.2010 18:08, schrieb tbandrowsky at treatyist.com: > > I've recently written an application using the FastCGI framework > (in C) and > I've been very impressed with the speed it offers. However when I > went to > write an extension to my application I've run into some difficulties > debugging my code so I wanted to see if anyone here had a better > idea of how > to go about debugging a FastCGI application. > We use a quite simple workaround. If the application runs as fastcgi (check environment) we write the environment and stdin to files (/tmp/cgi-env.txt and /tmp/cgi-stdin.txt). If the application runs inside the IDE, we load the environment and stdin from these files rather than the real environment/stdin. Greetings -------------- next part -------------- An HTML attachment was scrubbed... URL: From rclemley at yahoo.com Wed Jul 14 01:01:46 2010 From: rclemley at yahoo.com (RC Lemley) Date: Wed, 14 Jul 2010 00:01:46 -0500 Subject: [FASTCGI] The right way to debug a FastCGI app In-Reply-To: References: Message-ID: <4C3D44BA.8010207@yahoo.com> On 07/12/2010 02:41 PM, Wes Widner wrote: > I've recently written an application using the FastCGI framework (in > C) and I've been very impressed with the speed it offers. However when > I went to write an extension to my application I've run into some > difficulties debugging my code so I wanted to see if anyone here had a > better idea of how to go about debugging a FastCGI application. > > Here is what I am attempting to do thus far: > Run cgi-fcgi through gdb: gdb cgi-fcgi > Then run my fastcgi application directly: (gdb) r -start -connect > 127.0.0.1:9005 ./myapp.fcgi 1 > > This produces the output: > Starting program: /usr/bin/cgi-fcgi -start -connect 127.0.0.1:9005 > .//myapp/.fcgi 1 > [Thread debugging using libthread_db enabled] > > Program exited normally. The cgi-fcgi program exits after each request is processed. This is why you keep seeing "Program exited normally". Plus your app is not doing anything because you're not sending any CGI info to cgi-fcgi. If you want to debug your FastCGI app, you need to start your FastCGI app with the debugger, or attach gdb to your FastCGI app process. It seems your using a gnuish/unixish system, so why don't you configure your web server to send FastCGI requests directly to your app? With Apache 2, all you need is the fastcgi module (libapache2-mod-fastcgi on Debian). If you get a lot of hits, you'll incur quite a bit of overhead starting cgi-fcgi processes for each request. I've never used cgi-fcgi and I never plan to use it. I can see no reason why you would want to use cgi-fcgi, especially if your concerned with performance. There's no advantage to using cgi-fcgi for debugging. Do this (if using apache 2): 1. configure and test apache2 with your FastCGI app as a "FastCgiServer" (aka internal fastcgi server). 2. restart apache 2 4. attach gdb to your FastCGI app (hint: use the ps command to get the process id) 3. set a break point on FCGI_accept() and continue your FastCGI process. 4. send a request from your web browser to your web server 5. see the breakpoint hit in your debugger In any case: Your FastCGI app should never exit. The same FastCGI process loops continually, receiving and processing FastCGI requests. From savages at mozapps.com Wed Jul 14 01:38:08 2010 From: savages at mozapps.com (Shaun Savage) Date: Wed, 14 Jul 2010 13:38:08 +0800 Subject: [FASTCGI] apache2 mod-fastcgi? Message-ID: <4C3D4D40.7060800@mozapps.com> Hi I am trying to write a websocket fastcgi interface. The problem that I am having is the websocket request is not a normal http request. ---------------------------------------------------- GET /demo HTTP/1.1 Host: example.com Connection: Upgrade Sec-WebSocket-Key2: 12998 5 Y3 1 .P00 Sec-WebSocket-Protocol: sample Upgrade: WebSocket Sec-WebSocket-Key1: 4 @1 46546xW%0l 1 5 Origin: http://example.com ^n:ds[4U -------------------------------------------------- The problem is ^n:ds[4U is binary 32 bits. and this does not make it to the fastcgi library, I think it is lost in the apache mod-fastcgi module. I need this data to create the response ------------------------------------------------- HTTP/1.1 101 WebSocket Protocol Handshake Upgrade: WebSocket Connection: Upgrade Sec-WebSocket-Origin: http://example.com Sec-WebSocket-Location: ws://example.com/demo Sec-WebSocket-Protocol: sample 8jKS'y:G*Co,Wxa ------------------------------------------------ md5 ( f(Key1), f(Key2), binary 32bits) I was expecting to be able to do a FCGX_GetStr() but after the header there is nothing in the buffer stream to read. any ideas on how to get the binary 32 bits to the fastcgi library? shaun From artyomtnk at yahoo.com Wed Jul 14 15:49:50 2010 From: artyomtnk at yahoo.com (Artyom) Date: Wed, 14 Jul 2010 12:49:50 -0700 (PDT) Subject: [FASTCGI] WebSockets and FastCGI specifications Message-ID: <839404.58853.qm@web36703.mail.mud.yahoo.com> Hello, I'm looking for a method to support WebSockets over FastCGI protocol. Today they are not compatible: 1. The web socket protocol is full duplex protocol without knows initial length of data to send. (No content_length CGI variable) 2. FastCGI client is limited to read only specific amount of data as given by CONTENT_LENGTH. - Are there any plans to update FastCGI protocol to support WebSockets? - Is there any way to support web-sockets as they are today? Thank you, Artyom From headset001 at yahoo.com Tue Jul 20 07:03:21 2010 From: headset001 at yahoo.com (Doru Georgescu) Date: Tue, 20 Jul 2010 04:03:21 -0700 (PDT) Subject: [FASTCGI] undefined reference to `FCGX_GetParam' Message-ID: <753066.40319.qm@web52305.mail.re2.yahoo.com> Thank you for your answer. I am still trying to run fcgi on my Ubuntu server 8.04 lts hardy heron. I performed the following steps: 1. I reinstalled the system. This has removed any problems created by me trying to compile the kit. 2. I installed the packages: apache2 libapache2-mod-fastcgi libfcgi-dev libfcgi0ldbl (libfcgi-dev depends on this one) I could not find the packages: libfcgi libfcgi0 libfcgi0c2 I used this page: http://packages.ubuntu.com/ to search for libfcgi0 in any distribution and it is obvious that it was included after Hardy. Now I tried to compile this program:     #include "fcgi_stdio.h"     #include     void main(void)     {         int count = 0;         while(FCGI_Accept() >= 0)             printf("Content-type: text/html\r\n"                    "\r\n"                    "FastCGI Hello!"                    "

FastCGI Hello!

"                    "Request number %d running on host %s\n",                     ++count, getenv("SERVER_NAME"));     } from this page: http://www.fastcgi.com/devkit/doc/fcgi-devel-kit.htm using: gcc count.c and I got the same errors: count.c:(.text+0x3d): undefined reference to `FCGI_printf' count.c:(.text+0x42): undefined reference to `FCGI_Accept' This is all that I need, to get this program running. However, the problem seems way over my head. Currently I am using a "pseudo" fast cgi, a small program that loads fast and communicates with the big process that stays in the memory. If you have any suggestions, please shoot. Other metaphysical problems that bother me are: 1. I am writing an application which requires the same process to be accessed by all incoming requests. Is this supposed to be configured inside the web server configuration files? Is this the default configuration in my Ubuntu? 2. I need to read get parameters for every request. Are they every time in their place, accessible through getenv, as it is shown in the example above? Thank you for your time, Doru --- On Thu, 6/24/10, Rob wrote: > From: Rob > Subject: Re: [FASTCGI] undefined reference to `FCGX_GetParam' > To: "Doru Georgescu" > Cc: "fastcgi fcgi" > Date: Thursday, June 24, 2010, 1:24 PM >  On 06/24/2010 03:30 AM, Doru > Georgescu wrote: > > Some FastCGI developers please send to me the compile > command they use to compile the FastCGI library, together > with the current directory where they run it in the fastcgi > directory tree and the version of the operating system they > use. It might help me to compile FastCGI on Ubuntu. > > > > If anyone knows about compiling FastCGI on > Linux/Ubuntu, whether is works or not, please let me know. > > Not sure why you want to build it on Ubuntu, because there > are pre-built fastcgi binaries available in the Ubuntu > universe repositories. > > Yes it works.  These packages are available in both > Hardy and Maverick, and I assume all versions in > between.  If you need to recompile for some reason, I'd > suggest you get the source package and build it with > dpkg-buildpackage. > > If you don't need to build it, just do "aptitude install > libfcgi-dev" or whichever of the packages you need. > > > $ dpkg-query -W '*f*cgi*' > libapache2-mod-fastcgi  2.4.6-0ubuntu1 > libfcgi > libfcgi-dev     2.4.0-7 > libfcgi0 > libfcgi0c2 > libfcgi0ldbl    2.4.0-7 > $ > > > > From aron at aron.ws Tue Jul 20 07:14:12 2010 From: aron at aron.ws (Aron Szabo) Date: Tue, 20 Jul 2010 13:14:12 +0200 Subject: [FASTCGI] undefined reference to `FCGX_GetParam' In-Reply-To: <753066.40319.qm@web52305.mail.re2.yahoo.com> References: <753066.40319.qm@web52305.mail.re2.yahoo.com> Message-ID: <4C458504.3080800@aron.ws> Hi Doru! Try it this way: gcc test.c -o test -lfcgi Cu stima, Aron Sabo On 07/20/2010 01:03 PM, Doru Georgescu wrote: > Thank you for your answer. > > I am still trying to run fcgi on my Ubuntu server 8.04 lts hardy heron. > > I performed the following steps: > 1. I reinstalled the system. This has removed any problems created by me trying to compile the kit. > 2. I installed the packages: > apache2 > libapache2-mod-fastcgi > libfcgi-dev > libfcgi0ldbl (libfcgi-dev depends on this one) > > I could not find the packages: > libfcgi > libfcgi0 > libfcgi0c2 > > I used this page: > http://packages.ubuntu.com/ > to search for libfcgi0 in any distribution and it is obvious that it was included after Hardy. > > Now I tried to compile this program: > #include "fcgi_stdio.h" > #include > > void main(void) > { > int count = 0; > while(FCGI_Accept()>= 0) > printf("Content-type: text/html\r\n" > "\r\n" > "FastCGI Hello!" > "

FastCGI Hello!

" > "Request number %d running on host%s\n", > ++count, getenv("SERVER_NAME")); > } > from this page: > http://www.fastcgi.com/devkit/doc/fcgi-devel-kit.htm > using: > gcc count.c > and I got the same errors: > count.c:(.text+0x3d): undefined reference to `FCGI_printf' > count.c:(.text+0x42): undefined reference to `FCGI_Accept' > This is all that I need, to get this program running. However, the problem seems way over my head. Currently I am using a "pseudo" fast cgi, a small program that loads fast and communicates with the big process that stays in the memory. If you have any suggestions, please shoot. > > Other metaphysical problems that bother me are: > 1. I am writing an application which requires the same process to be accessed by all incoming requests. Is this supposed to be configured inside the web server configuration files? Is this the default configuration in my Ubuntu? > 2. I need to read get parameters for every request. Are they every time in their place, accessible through getenv, as it is shown in the example above? > > Thank you for your time, > Doru > > --- On Thu, 6/24/10, Rob wrote: > > >> From: Rob >> Subject: Re: [FASTCGI] undefined reference to `FCGX_GetParam' >> To: "Doru Georgescu" >> Cc: "fastcgi fcgi" >> Date: Thursday, June 24, 2010, 1:24 PM >> On 06/24/2010 03:30 AM, Doru >> Georgescu wrote: >> >>> Some FastCGI developers please send to me the compile >>> >> command they use to compile the FastCGI library, together >> with the current directory where they run it in the fastcgi >> directory tree and the version of the operating system they >> use. It might help me to compile FastCGI on Ubuntu. >> >>> If anyone knows about compiling FastCGI on >>> >> Linux/Ubuntu, whether is works or not, please let me know. >> >> Not sure why you want to build it on Ubuntu, because there >> are pre-built fastcgi binaries available in the Ubuntu >> universe repositories. >> >> Yes it works. These packages are available in both >> Hardy and Maverick, and I assume all versions in >> between. If you need to recompile for some reason, I'd >> suggest you get the source package and build it with >> dpkg-buildpackage. >> >> If you don't need to build it, just do "aptitude install >> libfcgi-dev" or whichever of the packages you need. >> >> >> $ dpkg-query -W '*f*cgi*' >> libapache2-mod-fastcgi 2.4.6-0ubuntu1 >> libfcgi >> libfcgi-dev 2.4.0-7 >> libfcgi0 >> libfcgi0c2 >> libfcgi0ldbl 2.4.0-7 >> $ >> >> >> >> >> > > > > > > > > > > > > > _______________________________________________ > FastCGI-developers mailing list > FastCGI-developers at mailman.fastcgi.com > http://mailman.pins.net/mailman/listinfo.cgi/fastcgi-developers > -------------- next part -------------- A non-text attachment was scrubbed... Name: aron.vcf Type: text/x-vcard Size: 155 bytes Desc: not available URL: From wes at werxltd.com Tue Jul 20 14:52:17 2010 From: wes at werxltd.com (Wes Widner) Date: Tue, 20 Jul 2010 14:52:17 -0400 Subject: [FASTCGI] config variables Message-ID: Hey guys, Where is the best place to set config variables to be passed to a fastcgi application? With regular cgi I used a .htaccess file with SetEnv in the cgi-bin directory to set variables I could then retrieve via getenv, but that doesn't seem to work the same with a fastcgi application. Is there another way to pass variables that don't need to change or be passed along with each request? Thanks, -Wes -------------- next part -------------- An HTML attachment was scrubbed... URL: From rclemley at booksys.com Wed Jul 21 13:44:23 2010 From: rclemley at booksys.com (Rob) Date: Wed, 21 Jul 2010 12:44:23 -0500 Subject: [FASTCGI] config variables In-Reply-To: References: Message-ID: <4C4731F7.5050000@booksys.com> On 07/20/2010 01:52 PM, Wes Widner wrote: > Where is the best place to set config variables to be passed to a > fastcgi application? With regular cgi I used a .htaccess file with > SetEnv in the cgi-bin directory to set variables I could then retrieve > via getenv, but that doesn't seem to work the same with a fastcgi > application. Is there another way to pass variables that don't need to > change or be passed along with each request? FastCGI works in many contexts. It would help if you briefly describe your software and how it's configured. Since you mention .htaccess, I assume you're using Apache. If you configure Apache for your app with the FastCgiServer directive, then see the -initial-env option to that directive. If you configure Apache for your app with the FastCgiExternalServer directive, then you must arrange to set the variables with whatever method you use to start your app. The simplest would be a shell script which sets the variables and then execs your app. From headset001 at yahoo.com Thu Jul 22 01:42:35 2010 From: headset001 at yahoo.com (Doru Georgescu) Date: Wed, 21 Jul 2010 22:42:35 -0700 (PDT) Subject: [FASTCGI] undefined reference to `FCGX_GetParam' Message-ID: <775682.66829.qm@web52308.mail.re2.yahoo.com> > Hi Doru! > > Try it this way: > gcc test.c -o test -lfcgi > > Cu stima, > Aron Sabo Thank you very much! In fact, I lost my hope before I got your answer. All I had to do was to cp test /usr/lib/cgi-bin/test.fcgi getenv("QUERY_STRING"); works correctly I also found options to limit number of processes: http://httpd.apache.org/mod_fcgid/mod/mod_fcgid.html#fcgidmaxprocesses I hugely enjoyed Budapest. Doru From jeevw19 at yahoo.co.uk Sun Jul 25 10:33:16 2010 From: jeevw19 at yahoo.co.uk (Jeevani W.) Date: Sun, 25 Jul 2010 14:33:16 +0000 (GMT) Subject: [FASTCGI] Compilation Errors in the FastCGI Development Kit distribution Message-ID: <696976.16124.qm@web23506.mail.ird.yahoo.com> Hi, I'm getting the following compilation on the FastCGI Developer Kit - all versions - downloaded from your distribution page: http://www.fastcgi.com/dist/ The same compilation error occurs whichever release I try to compile, and whether I use make or gmake. I'm running Fedora Linux 64 bit version. Why does this error occur and how can I fix it please? Regards,Jenni ps: Error: ------------------------------------------ gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include -pthread -g -O2 -Wall -MT libfcgi_la-os_unix.lo -MD -MP -MF .deps/libfcgi_la-os_unix.Tpo -c os_unix.c -o libfcgi_la-os_unix.o >/dev/null 2>&1 /bin/sh ../libtool --tag=CC --mode=link gcc -g -O2 -Wall -o libfcgi.la -rpath /usr/local/lib libfcgi_la-fcgiapp.lo libfcgi_la-fcgi_stdio.lo libfcgi_la-os_unix.lo -lnsl gcc -shared .libs/libfcgi_la-fcgiapp.o .libs/libfcgi_la-fcgi_stdio.o .libs/libfcgi_la-os_unix.o -lnsl -Wl,-soname -Wl,libfcgi.so.0 -o .libs/libfcgi.so.0.0.0 (cd .libs && rm -f libfcgi.so.0 && ln -s libfcgi.so.0.0.0 libfcgi.so.0) (cd .libs && rm -f libfcgi.so && ln -s libfcgi.so.0.0.0 libfcgi.so) ar cru .libs/libfcgi.a libfcgi_la-fcgiapp.o libfcgi_la-fcgi_stdio.o libfcgi_la-os_unix.o ranlib .libs/libfcgi.a creating libfcgi.la (cd .libs && rm -f libfcgi.la && ln -s ../libfcgi.la libfcgi.la) if /bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../include -g -O2 -MT fcgio.lo -MD -MP -MF ".deps/fcgio.Tpo" -c -o fcgio.lo fcgio.cpp; \ then mv -f ".deps/fcgio.Tpo" ".deps/fcgio.Plo"; else rm -f ".deps/fcgio.Tpo"; exit 1; fi g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../include -g -O2 -MT fcgio.lo -MD -MP -MF .deps/fcgio.Tpo -c fcgio.cpp -fPIC -DPIC -o .libs/fcgio.o fcgio.cpp: In destructor 'virtual fcgi_streambuf::~fcgi_streambuf()': fcgio.cpp:50: error: 'EOF' was not declared in this scope fcgio.cpp: In member function 'virtual int fcgi_streambuf::overflow(int)': fcgio.cpp:70: error: 'EOF' was not declared in this scope fcgio.cpp:75: error: 'EOF' was not declared in this scope fcgio.cpp: In member function 'virtual int fcgi_streambuf::sync()': fcgio.cpp:86: error: 'EOF' was not declared in this scope fcgio.cpp:87: error: 'EOF' was not declared in this scope fcgio.cpp: In member function 'virtual int fcgi_streambuf::underflow()': fcgio.cpp:113: error: 'EOF' was not declared in this scope gmake[2]: *** [fcgio.lo] Error 1 gmake[2]: Leaving directory `/home/et/opt/fcgi/fcgi-2.4.1-SNAP-0910052249/libfcgi' gmake[1]: *** [all-recursive] Error 1 gmake[1]: Leaving directory `/home/et/opt/fcgi/fcgi-2.4.1-SNAP-0910052249' gmake: *** [all] Error 2 ------------------------------------------ -------------- next part -------------- An HTML attachment was scrubbed... URL: From jeevw19 at yahoo.co.uk Sun Jul 25 10:33:16 2010 From: jeevw19 at yahoo.co.uk (Jeevani W.) Date: Sun, 25 Jul 2010 14:33:16 +0000 (GMT) Subject: [FASTCGI] Compilation Errors in the FastCGI Development Kit distribution Message-ID: <696976.16124.qm@web23506.mail.ird.yahoo.com> Hi, I'm getting the following compilation on the FastCGI Developer Kit - all versions - downloaded from your distribution page: http://www.fastcgi.com/dist/ The same compilation error occurs whichever release I try to compile, and whether I use make or gmake. I'm running Fedora Linux 64 bit version. Why does this error occur and how can I fix it please? Regards,Jenni ps: Error: ------------------------------------------ gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include -pthread -g -O2 -Wall -MT libfcgi_la-os_unix.lo -MD -MP -MF .deps/libfcgi_la-os_unix.Tpo -c os_unix.c -o libfcgi_la-os_unix.o >/dev/null 2>&1 /bin/sh ../libtool --tag=CC --mode=link gcc -g -O2 -Wall -o libfcgi.la -rpath /usr/local/lib libfcgi_la-fcgiapp.lo libfcgi_la-fcgi_stdio.lo libfcgi_la-os_unix.lo -lnsl gcc -shared .libs/libfcgi_la-fcgiapp.o .libs/libfcgi_la-fcgi_stdio.o .libs/libfcgi_la-os_unix.o -lnsl -Wl,-soname -Wl,libfcgi.so.0 -o .libs/libfcgi.so.0.0.0 (cd .libs && rm -f libfcgi.so.0 && ln -s libfcgi.so.0.0.0 libfcgi.so.0) (cd .libs && rm -f libfcgi.so && ln -s libfcgi.so.0.0.0 libfcgi.so) ar cru .libs/libfcgi.a libfcgi_la-fcgiapp.o libfcgi_la-fcgi_stdio.o libfcgi_la-os_unix.o ranlib .libs/libfcgi.a creating libfcgi.la (cd .libs && rm -f libfcgi.la && ln -s ../libfcgi.la libfcgi.la) if /bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../include -g -O2 -MT fcgio.lo -MD -MP -MF ".deps/fcgio.Tpo" -c -o fcgio.lo fcgio.cpp; \ then mv -f ".deps/fcgio.Tpo" ".deps/fcgio.Plo"; else rm -f ".deps/fcgio.Tpo"; exit 1; fi g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../include -g -O2 -MT fcgio.lo -MD -MP -MF .deps/fcgio.Tpo -c fcgio.cpp -fPIC -DPIC -o .libs/fcgio.o fcgio.cpp: In destructor 'virtual fcgi_streambuf::~fcgi_streambuf()': fcgio.cpp:50: error: 'EOF' was not declared in this scope fcgio.cpp: In member function 'virtual int fcgi_streambuf::overflow(int)': fcgio.cpp:70: error: 'EOF' was not declared in this scope fcgio.cpp:75: error: 'EOF' was not declared in this scope fcgio.cpp: In member function 'virtual int fcgi_streambuf::sync()': fcgio.cpp:86: error: 'EOF' was not declared in this scope fcgio.cpp:87: error: 'EOF' was not declared in this scope fcgio.cpp: In member function 'virtual int fcgi_streambuf::underflow()': fcgio.cpp:113: error: 'EOF' was not declared in this scope gmake[2]: *** [fcgio.lo] Error 1 gmake[2]: Leaving directory `/home/et/opt/fcgi/fcgi-2.4.1-SNAP-0910052249/libfcgi' gmake[1]: *** [all-recursive] Error 1 gmake[1]: Leaving directory `/home/et/opt/fcgi/fcgi-2.4.1-SNAP-0910052249' gmake: *** [all] Error 2 ------------------------------------------ -------------- next part -------------- An HTML attachment was scrubbed... URL: