From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <19740b8a708be6349aa81875c23b21ca.axp-list@archive.invalid> X-Archive-Original-Message-ID: <199704281300.IAA11092@sparcplug.itg.ti.com> Date: Mon, 28 Apr 1997 16:04:35 +0200 (CEST) From: Andreas Johansson Subject: RE: Apache Compilations In-Reply-To: <01BC53B1.7748AE60@anolis.outer.net> On Mon, 28 Apr 1997, Adam Biskobing wrote: > > > I am trying to compile Apache 2beta8 on my udb running redhat > > > 4.0. I do not know all that much about C. It is erroring out on the > > > following section: > > > > > > if ((shmid = shmget(shmkey, SCOREBOARD_SIZE, IPC_CREAT|SHM_R|SHM_W)) > > > == -1) > > > { > > > perror("shmget"); > > > fprintf(stderr, "httpd: Could not call shmget\n"); > > > exit(1); > > > } > > > > > > It errors when it hits the SHM_R and SHM_W. I do not know what they are > > > and they are not defined anywhere else in the distribution. I tried > > > compiling it on an i386 linux system and it worked beautifully. Can > > > anyone shed some light onto this problem or tell me what include file > > > these are in? The protection bits for semaphores are the same as the protection bits for normal files. If you want owner readable/writable semaphores (as in the example above) you can use S_IRUSR|S_IWUSR or even the octal number 0600 instead of SHM_R|SHM_W which seems not to be defined in our shm include file. If you are going to use S_IRUSR and S_IWUSR you need to include -- <-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-> : E-mail: ajo@wopr.campus.luth.se : : S-mail: Andreas Johansson, Karhusvagen 5 6:618, 977 54 Lulea, SWEDEN : : Have you had your dose of 261.62 BogoMIPS today? - Run Alpha! : <-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-> -- To unsubscribe: send e-mail to axp-list-request@redhat.com with 'unsubscribe' as the subject. Do not send it to axp-list@redhat.com