You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Rob Hartill <ro...@imdb.com> on 1997/06/20 15:34:20 UTC

Re: apache 1.2 and Linux

One for Dean then  :-)

On Fri, 20 Jun 1997, Peppe wrote:

> Sorry my english...
> New version of apache 1.2 don't run under linux  kernel 2.0.27 nor
> kernel 2.0.29.
> This error occours in precompiled version (for Linux), and in a version
> compiled by me, too. 
> The error is:
> 'shmget' function non found.
> Can you help me?
> Thank you very much
> 
> Peppe Colagrande
> University of L'Aquila - Italy

 


Re: apache 1.2 and Linux

Posted by Dean Gaudet <dg...@arctic.org>.
I just added it to the FAQ ... his email addr isn't below, but if you want
to point him to <http://www.apache.org/docs/misc/FAQ.html#linux-shmget> it
has the answer.  This is covered in a few PRs too.  And here's a patch
which makes it give a more verbose error.

Dean

Index: http_main.c
===================================================================
RCS file: /export/home/cvs/apache/src/http_main.c,v
retrieving revision 1.154
diff -c -3 -r1.154 http_main.c
*** http_main.c	1997/06/16 20:04:52	1.154
--- http_main.c	1997/06/20 17:20:54
***************
*** 843,848 ****
--- 843,853 ----
  
      if ((shmid = shmget(shmkey, SCOREBOARD_SIZE, IPC_CREAT|SHM_R|SHM_W)) == -1)
      {
+ #ifdef LINUX
+ 	if (errno == ENOSYS) {
+ 	    fprintf(stderr, "httpd: Your kernel was built without CONFIG_SYSVIPC\nhttpd: please consult the Apache FAQ for details\n");
+ 	}
+ #endif
  	perror("shmget");
  	fprintf(stderr, "httpd: Could not call shmget\n");
  	exit(1);

On Fri, 20 Jun 1997, Rob Hartill wrote:

> 
> One for Dean then  :-)
> 
> On Fri, 20 Jun 1997, Peppe wrote:
> 
> > Sorry my english...
> > New version of apache 1.2 don't run under linux  kernel 2.0.27 nor
> > kernel 2.0.29.
> > This error occours in precompiled version (for Linux), and in a version
> > compiled by me, too. 
> > The error is:
> > 'shmget' function non found.
> > Can you help me?
> > Thank you very much
> > 
> > Peppe Colagrande
> > University of L'Aquila - Italy
> 
>  
> 
>