From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: X-Archive-Original-Message-ID: <199706140041.SAA06362@ellpspace.math.ualberta.ca> Date: Fri, 13 Jun 1997 18:41:58 -0600 (MDT) From: Michal Jaegermann Subject: Re: Apache httpd compile problems In-Reply-To: Aaron M. Gowatch writes: > > > C. Jon Larsen writes: > > > > > I recently installed a UDB with RHS Linux 4.2 (well, I bought it w/ 4.1, > > > but then reformatted the drive, and installed 4.2 from ftp). Everything > > > seems to work fine with compiling programs (perl 5.004, php, msql 2.0x, > > > etc . . .) *EXCEPT* for apache - all versions. Well, it compiles, but only > > > after a lot of warnings, and when php module is linked in, the serving > > > httpd child crashes every couple of pages: > > > > Excerpts from build.att log file: > > > > > + ./Configure > > > Using 'Configuration' as config file > > > + make RPM_OPT_FLAGS=-O2 AUX_LIBS=-lcrypt -lm > > > gcc -c -O2 -DSTATUS -DLINUX alloc.c > > > alloc.c: In function `fd_cleanup': > > > alloc.c:726: warning: cast from pointer to integer of different size > > > alloc.c: In function `note_cleanups_for_fd': > > > alloc.c:729: warning: cast to pointer from integer of different size > > > alloc.c: In function `pclosef': > > > alloc.c:749: warning: cast to pointer from integer of different size > > > gcc -c -O2 -DSTATUS -DLINUX http_main.c > > > > > > I get the same errors in alloc.c for every version of apache I try > > > to compile. I checked that all patches are applied successfully, and they > > > are. Is there something /stupid|silly|crazy/ I may be doing wrong ? > > According to one of the Apache Developers, the int size warnings can be > safely ignored. Well, yes, in alloc.c. But warnings in http_main.c about types of arguments to access(), getpeerbyname(), ... are likely killers. I know that manual page says that pointers to various sizes are pointers to int - headers give them as pointers to size_t. Anyway, I include below a patch which allows to compile rather cleanly apache_1.2.0 on Alpha running RH 4.1 (and whatever I have in headers :-). Resulting binaries seems to work as advertised under light testing. > I'm running 1..2 without problems, even though I received > the same warnings. Supposedly there are patches to allow it to compile > cleanly, just none "...clean enough to be included with the distribution". The distribution is not overly clean as far as portable coding is concerned so they should not be so picky. Look into "conf.h". :-) > Digital runs their webservers on Digital UNIX, not Linux. Apache > compiles cleanly under DU. I fail to see how this can be possible (i.e. no warnings). It is likely that one may be a bit more lucky in this case with DU libraries. Have fun, Michal begin 664 apache_1.2.0.alpha.patch.gz M'XL("/CCH3,"`V%P86-H95\Q+C(N,"YA;'!H82YP871C:`#-66UOVT82_FS_ MBCT7<$F)"8,BEM0VU9)=+PSHC_>TWLTM2)"5* MS@4XG`*8TG)V=N>99UYVT^ETB!N&D7?A_7UR%7%RY6Y(;T1ZO9D]F/6ZQ)Y. MQZ?M=CN7.GDK&/DEY<3N$WL\&_9G@Z$6>O6*=,:3GF4/21N?O3%Y]>J4D!:Y MIYP*YA$OI"Y/8\*XI")P/7J!KU^E4>29JOFSA!))S`)T8<12%I MQ1;B`KIA%WOQ($30>Y8`=-NMPZ1L^[`'JV15^;LY;X3DB,Z:X<>6V&_[Y\+\ M3RP,Z^87UF?&HYVD$0%2T0%;+5G_3(,;5>P:^SS[\*-L1`OB**8\R(QR+>)% M/)'$6[F"M+B[IIF3PWO]91WYU%21,[&'UIBT)[VQ9=LZ<,A'B+A/L)8KUHD! M6U`42("0BGL&H*7&$O>!.E0('L$K]9PWP%>QW&WBSD'XFE3LQLAS^4$@YO98 MFANTM2X#0*:"(P[STPXD+P`XN%C]??(!5L:T1`:D:\^Z_1F@6.0N+51)79,9 MB`VZV]35&PVM$6GC8ZKP_R95`+Y;+-XXR]N;-W?O80Q&&*?DEZOWSH]W;PF8 M_.MKL]B1FO+3U>WUV[=JY\/)%*DSG/9RZFRW`N%-'V$? M2J7>A)J^_&WIW"R6UW/IHTG.SXN18M\F2N:ZE=P+\$24"@^- M;:)-#9K:C/VLR#:[O'MWO1SHV+JG4H1LS:2!/RTH$"+U)-%C0,&Y%DN.BB%O M5E+&#O*"W6/INUVEJO1!\8*JUI]62E]%=D\!')4*8+>'OL!'YHLGG2'`P-L5 M2TC$Z;<)B8'&&A8%`=B&]0AKCK?V.Y>,!]&<',QV"?LW M=J5YY@KSSLSJ#=K;I%2]:*C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