delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1997/05/02/07:42:26

From: dumser AT ti DOT com (James Dumser)
Subject: Re: problem using g++ produced program as a WebSite CGI
2 May 1997 07:42:26 -0700 :
Approved: cygnus DOT gnu-win32 AT cygnus DOT com
Distribution: cygnus
Message-ID: <199705021303.IAA23426.cygnus.gnu-win32@lesol1.dseg.ti.com>
Mime-Version: 1.0
Original-To: cnicol AT stk DOT com (Carl Nicol)
Original-Cc: gnu-win32 AT cygnus DOT com
In-Reply-To: <199704301524.LAA17683@kansas.stk.com> from "Carl Nicol" at Apr 30, 97 11:27:06 am
X-MIMI-Options: headers none
X-Mailer: ELM [version 2.4 PL23]
Original-Sender: owner-gnu-win32 AT cygnus DOT com

On Wed, 30 Apr 1997 11:27:06 -0500, Carl Nicol <cnicol AT stk DOT com> wrote:
>I have successfully compiled a cgi program that I use on a Linux system
>using g++ on Win/95 and it runs fine from the command line, however, when I
>try to use it as a CGI program, it dies with an exception error. I have
>WinSite calling it using the ../cgi-shl/ directory.  Does anyone have any
>clues as to what the problem may be?

I believe your problem may be that due to some initialization
limitations in cygwin.dll, only one user at a time can run cygwin32
programs -- though I am not sure how this relates to Win95. On NT, your
webserver would probably run as SYSTEM while you're logged in as
something else, thus triggering the problem.

If your webserver runs as a Win95 "service," try hitting the page from
another computer without being logged in on the web computer -- does
that work? You alsom might able to use the same user for both the
webserver and your console login to test this theory out.

Depending on your program, a simple solution may be to use Mingw32
(Minimalist GCC, http://www.geocities.com/Tokyo/Towers/6162/gcc.html).
This avoids use of cygwin.dll so you won't hit the initialization
problem, but you'll also lose the Unix-emulation environment cygwin.dll
provides.

-- 
James Dumser    972-462-5335 dumser AT ti DOT com
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019