You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apache-bugdb@apache.org by Bill Plein <bi...@diablo.net> on 1997/04/09 09:00:04 UTC

general/336: Unable to compile 1.2b8 - dies in compile of httpd_main.c with incompatible pointer types

	The contract type is `' with a response time of 3 business hours.
	A first analysis should be sent before: Wed Apr 09 11:00:03 PDT 1997


>Number:         336
>Category:       general
>Synopsis:       Unable to compile 1.2b8 - dies in compile of httpd_main.c with incompatible pointer types
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    apache (Apache HTTP Project)
>State:          open
>Class:          sw-bug
>Submitter-Id:   apache
>Arrival-Date:   Wed Apr  9 00:00:03 1997
>Originator:     bill@diablo.net
>Organization:
apache
>Release:        1.2b8
>Environment:
Linux kernel 2.0.18 on Dec Alpha "NoName" UDB
gcc version 2.7.2

RedHat linux 4.0 for the Alpha
>Description:
Here is the full output:
-------------------------------------------
[root@decimate src]# make
(cd regex; make lib CC=gcc AUX_CFLAGS='-O2 -DLINUX ' RANLIB='ranlib')
make[1]: Entering directory `/usr/src/apache_1.2b8/src/regex'
rm -f *.o
sh ./mkh  -i _REGEX_H_ regex2.h regcomp.c regerror.c regexec.c regfree.c >regex.tmp
cmp -s regex.tmp regex.h 2>/dev/null || cp regex.tmp regex.h
rm -f regex.tmp
sh ./mkh  -p regcomp.c >regcomp.ih
gcc -I. -DPOSIX_MISTAKE -O2 -DLINUX    -c regcomp.c -o regcomp.o
sh ./mkh  -p engine.c >engine.ih
gcc -I. -DPOSIX_MISTAKE -O2 -DLINUX    -c regexec.c -o regexec.o
sh ./mkh  -p regerror.c >regerror.ih
gcc -I. -DPOSIX_MISTAKE -O2 -DLINUX    -c regerror.c -o regerror.o
gcc -I. -DPOSIX_MISTAKE -O2 -DLINUX    -c regfree.c -o regfree.o
rm -f libregex.a
ar crv libregex.a regcomp.o regexec.o regerror.o regfree.o
a - regcomp.o
a - regexec.o
a - regerror.o
a - regfree.o
ranlib libregex.a
make[1]: Leaving directory `/usr/src/apache_1.2b8/src/regex'
gcc -c -Iregex  -O2 -DLINUX   alloc.c
alloc.c: In function `fd_cleanup':
alloc.c:781: warning: cast from pointer to integer of different size
alloc.c: In function `note_cleanups_for_fd':
alloc.c:784: warning: cast to pointer from integer of different size
alloc.c: In function `kill_cleanups_for_fd':
alloc.c:789: warning: cast to pointer from integer of different size
alloc.c: In function `pclosef':
alloc.c:814: warning: cast to pointer from integer of different size
gcc -c -Iregex  -O2 -DLINUX   http_main.c
http_main.c: In function `setup_shared_mem':
http_main.c:697: `SHM_R' undeclared (first use this function)
http_main.c:697: (Each undeclared identifier is reported only once
http_main.c:697: for each function it appears in.)
http_main.c:697: `SHM_W' undeclared (first use this function)
http_main.c: In function `child_main':
http_main.c:1783: warning: passing arg 3 of `accept' from incompatible pointer type
http_main.c:1811: warning: passing arg 3 of `getsockname' from incompatible pointer type
http_main.c: In function `main':
http_main.c:2302: warning: passing arg 3 of `getpeername' from incompatible pointer type
http_main.c:2310: warning: passing arg 3 of `getsockname' from incompatible pointer type
make: *** [http_main.o] Error 1
[root@decimate src]# 
>How-To-Repeat:

>Fix:
Could this be due to the fact that the varoius CFLAGS and LIBFLAGS
may need to be revised for Linux on the Alpha chip%3
>Audit-Trail:
>Unformatted: