You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apache-bugdb@apache.org by Rob Allen <ro...@ntscom.com> on 1997/08/22 20:20:04 UTC
os-linux/1045: compiling problem...
>Number: 1045
>Category: os-linux
>Synopsis: compiling problem...
>Confidential: no
>Severity: critical
>Priority: medium
>Responsible: apache (Apache HTTP Project)
>State: open
>Class: sw-bug
>Submitter-Id: apache
>Arrival-Date: Fri Aug 22 11:20:04 1997
>Originator: roba@ntscom.com
>Organization:
apache
>Release: 1.2.3
>Environment:
#uname -a
Linux home.nts-online.net 2.0.30 #1 Sun Jul 20 00:39:14 CDT 1997 alpha
Note: Linux/Alpha
Compiler:
gcc 2.7.2
>Description:
I could not compile httpd from a clean source tree on my machine, because it
complains about this:
http_main.c: In function `setup_shared_mem':
http_main.c:735: `SHM_R' undeclared (first use this function)
http_main.c:735: (Each undeclared identifier is reported only once
http_main.c:735: for each function it appears in.)
http_main.c:735: `SHM_W' undeclared (first use this function)
http_main.c: In function `child_main':
I know it is complaining about SHM_R not being defined. I looked and found
that SHM_R is defined in linux/shm.h not sys/shm.h on my system. So I added
#include <linux/shm.h>
at line 89 in http_main.c
It now will compile, but it warns:
/usr/include/sys/shm.h:35 warning: 'SHMLBA' redefined
httpd seems to work just fine so far, but I though you might want to know
about it....???
>How-To-Repeat:
N/A
>Fix:
Should I be doing something different to fix the problem?
%0
>Audit-Trail:
>Unformatted: