Re: [Web-ftp] problems starting 2.2.1 in OpenBSD 3.9
Status: Beta
Brought to you by:
aball
From: FTP <ft...@at...> - 2006-07-12 18:51:14
|
I did some minor 'corrections' (strlcpy and strlcat) and it did compile. Now works fine. Please find it attached. Do you think that you could add this version in your distribution? This applies to OpenBSD 3.9 Thanks George On Wed, Jul 12, 2006 at 08:31:41PM +0200, FTP wrote: > didn't compile. Here are the results: > > -------------- > cc web-ftpc.c -o web-ftpc.cgi > > /tmp//ccB26931.o(.text+0xde): In function `main': > : warning: strcpy() is almost always misused, please use strlcpy() > /tmp//ccB26931.o(.text+0x423): In function `main': > : warning: strcat() is almost always misused, please use strlcat() > > # gcc web-ftpc.c -o web-ftpc.cgi > > /tmp//ccf14518.o(.text+0xde): In function `main': > : warning: strcpy() is almost always misused, please use strlcpy() > /tmp//ccf14518.o(.text+0x423): In function `main': > : warning: strcat() is almost always misused, please use strlcat() > -------------- > > Thanks > > George > > On Wed, Jul 12, 2006 at 11:35:21AM -0400, Anthony R. J. Ball wrote: > > > > Try this one? > > > > On Tue, Jul 11, 2006 at 08:31:43PM +0200, FTP wrote: > > > also gcc gives the following: > > > > > > # gcc web-ftpc.c -o web-ftpc.cgi > > > web-ftpc.c:111:12: missing terminating " character > > > web-ftpc.c: In function `main': > > > web-ftpc.c:113: error: `HTML' undeclared (first use in this function) > > > web-ftpc.c:113: error: (Each undeclared identifier is reported only once > > > web-ftpc.c:113: error: for each function it appears in.) > > > web-ftpc.c:113: error: syntax error before '<' token > > > web-ftpc.c:116: error: stray '\' in program > > > web-ftpc.c:116:15: missing terminating " character > > > web-ftpc.c:120: error: stray '\' in program > > > web-ftpc.c:120:15: missing terminating " character > > > web-ftpc.c:122: error: stray '\' in program > > > web-ftpc.c:122:108: missing terminating " character > > > web-ftpc.c:123:15: missing terminating " character > > > > > > The "gcc" I'm using is: > > > > > > # which gcc > > > /usr/bin/gcc > > > # gcc -v > > > Reading specs from /usr/lib/gcc-lib/i386-unknown-openbsd3.9/3.3.5/specs > > > Configured with: > > > Thread model: single > > > gcc version 3.3.5 (propolice) > > > > > > > > > Thanks > > > > > > George > > > > > > On Tue, Jul 11, 2006 at 02:24:01PM -0400, Anthony R. J. Ball wrote: > > > > > > > > Do you have gcc? If that doesn't work I think I know what to do. > > > > > > > > On Tue, Jul 11, 2006 at 08:21:28PM +0200, FTP wrote: > > > > > indeed you are right. In the INSTALL doc you refer to the "web-ftp.c" but I think that its the "web-ftpc.c" instead - correct? > > > > > Now I tried to compile it by running: > > > > > > > > > > cc web-ftpc.c -o web-ftpc.cgi > > > > > > > > > > and get the following: > > > > > > > > > > ------------ > > > > > web-ftpc.c:111:12: missing terminating " character > > > > > web-ftpc.c: In function `main': > > > > > web-ftpc.c:113: error: `HTML' undeclared (first use in this function) > > > > > web-ftpc.c:113: error: (Each undeclared identifier is reported only once > > > > > web-ftpc.c:113: error: for each function it appears in.) > > > > > web-ftpc.c:113: error: syntax error before '<' token > > > > > web-ftpc.c:116: error: stray '\' in program > > > > > web-ftpc.c:116:15: missing terminating " character > > > > > web-ftpc.c:120: error: stray '\' in program > > > > > web-ftpc.c:120:15: missing terminating " character > > > > > web-ftpc.c:122: error: stray '\' in program > > > > > web-ftpc.c:122:108: missing terminating " character > > > > > web-ftpc.c:123:15: missing terminating " character > > > > > ------------ > > > > > > > > > > Thanks > > > > > > > > > > George > > > > > > > > > > On Tue, Jul 11, 2006 at 01:52:07PM -0400, Anthony R. J. Ball wrote: > > > > > > > > > > > > Hehe.. THAT one is covered in the docs. The web-ftpc.cgi is a > > > > > > compiled C program, compiled under Linux, you are using BSD you said... > > > > > > > > > > > > INSTALL should help... > > > > > > > > > > > > Or just change to > > > > > > MainCGI=web-ftp.cgi > > > > > > > > > > > > That just uses pure Perl, no C. slower and more processor intensive, > > > > > > but should work. > > > > > > > > > > > > On Tue, Jul 11, 2006 at 07:06:19PM +0200, FTP wrote: > > > > > > > ops! Sorry. You were right :-( I forgot to start the FTP server :-( > > > > > > > > > > > > > > But now I get another error message. When the user credentials are correct, the browser displays the following: > > > > > > > > > > > > > > ------------------ > > > > > > > Internal Server Error > > > > > > > The server encountered an internal error or misconfiguration and was unable to complete your request. > > > > > > > > > > > > > > Please contact the server administrator, yo...@yo...dress and inform them of the time the error occurred, and anything you might have done that may have caused the error. > > > > > > > > > > > > > > More information about this error may be available in the server error log. > > > > > > > ------------------- > > > > > > > > > > > > > > and the error_log: > > > > > > > > > > > > > > Premature end of script headers: /var/www/cgi-bin/web-ftpc.cgi > > > > > > > > > > > > > > Thanks > > > > > > > > > > > > > > George > > > > > > > > > > > > > > On Tue, Jul 11, 2006 at 11:52:44AM -0400, Anthony R. J. Ball wrote: > > > > > > > > > > > > > > > > So there is definately an FTP server running on the default port of > > > > > > > > the host you specified? > > > > > > > > > > > > > > > > On Tue, Jul 11, 2006 at 05:12:14PM +0200, FTP wrote: > > > > > > > > > Hi there, > > > > > > > > > > > > > > > > > > I did follow the installation procedure as described in 2.2.1 and actually placed all the files in the apache cgi-bin directory. > > > > > > > > > > > > > > > > > > Now, when I run: > > > > > > > > > > > > > > > > > > https://<my server>/cgi-bin/web-ftp.cgi > > > > > > > > > > > > > > > > > > and log-in with an existing UNIX user, I get the following in my browser: > > > > > > > > > > > > > > > > > > -------------------- > > > > > > > > > There has been an error > > > > > > > > > > > > > > > > > > Server said: Net::FTP: connect: Connection refused > > > > > > > > > > > > > > > > > > Click here to go to the log in screen. > > > > > > > > > -------------------- > > > > > > > > > > > > > > > > > > regardless if I type in a correct or a wrong password. The Apache "error_log" file shows the following: > > > > > > > > > > > > > > > > > > Server said: at /var/www/cgi-bin/web-ftp.cgi line 140, <STDIN> line 1. > > > > > > > > > > > > > > > > > > Any help is more than welcome in order to troubleshoot the above. > > > > > > > > > > > > > > > > > > Thanks > > > > > > > > > > > > > > > > > > George > > > > > > > > > > > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Web-ftp-general mailing list > Web...@li... > https://lists.sourceforge.net/lists/listinfo/web-ftp-general |