* Re: Apache httpd compile problems [not found] <199706140041.SAA06362@ellpspace.math.ualberta.ca> @ 1997-06-14 0:03 ` Aaron M. Gowatch 0 siblings, 0 replies; 5+ messages in thread From: Aaron M. Gowatch @ 1997-06-14 0:03 UTC (permalink / raw) On Fri, 13 Jun 1997, Michal Jaegermann wrote: > 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. Yea, I guess I didnt see any mention of errors in http_main.c. > 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. So what you're saying is that the headers for Digital UNIX and the headers for Linux/AXP are the same? The #defines for OSF are different than those for Linux, which makes me believe differently... Thanks for the patch! Aa. -- 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 ^ permalink raw reply [flat|nested] 5+ messages in thread
[parent not found: <Pine.LNX.3.95.970613153358.15454G-100000@comet.hotwired.com>]
* Re: Apache httpd compile problems [not found] <Pine.LNX.3.95.970613153358.15454G-100000@comet.hotwired.com> @ 1997-06-14 0:41 ` Michal Jaegermann 0 siblings, 0 replies; 5+ messages in thread From: Michal Jaegermann @ 1997-06-14 0:41 UTC (permalink / raw) 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)<D2]OS1NVD1I4=1Q8-D7%->"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^<DM/V-RS@/@V(X[AAO'(=YY0DTI4PZ2%B M/@E\)Y]LJ(%6X#^8Y`E41@DEA@$J31R:D\^@C(8P^**UU8:KM)^E,.4)N^?4 M)V'$[T$L)"^)41DT8?1A7ELYS%?F/@MVEB:G>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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MEKEW^+[03E)"?2A@014M&GCV=6N=+H]?\#*7+AU#0: "```` ` end -- 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 ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Apache httpd compile problems @ 1997-06-13 12:44 Jim Nance 1997-06-13 22:43 ` Aaron M. Gowatch 0 siblings, 1 reply; 5+ messages in thread From: Jim Nance @ 1997-06-13 12:44 UTC (permalink / raw) 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 ? I took a look at alloc.c from Apache 1.2: static void fd_cleanup (void *fdv) { close ((int)fdv); } So it definitly is casting a pointer to an int, but it looks like this is being done quite deliberatly. I suspect that the source of your problems is elsewhere. Also, www.digital.com is running apache, so I suspect that all the 64/32 bit problems have been cleaned up. If I had to guess, I would say there is probably a problem in glibc. Can you run the server in the debugger (in the non-forking mode), and see if you can get a line number where the crash is occuring? Thanks, Jim -- 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 ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Apache httpd compile problems 1997-06-13 12:44 Jim Nance @ 1997-06-13 22:43 ` Aaron M. Gowatch 0 siblings, 0 replies; 5+ messages in thread From: Aaron M. Gowatch @ 1997-06-13 22:43 UTC (permalink / raw) On Fri, 13 Jun 1997, Jim Nance wrote: > 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 ? > > I took a look at alloc.c from Apache 1.2: > > static void fd_cleanup (void *fdv) { close ((int)fdv); } > > So it definitly is casting a pointer to an int, but it looks like this > is being done quite deliberatly. I suspect that the source of your > problems is elsewhere. Also, www.digital.com is running apache, so I > suspect that all the 64/32 bit problems have been cleaned up. If I had > to guess, I would say there is probably a problem in glibc. Can you run > the server in the debugger (in the non-forking mode), and see if you can > get a line number where the crash is occuring? According to one of the Apache Developers, the int size warnings can be safely ignored. 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". Digital runs their webservers on Digital UNIX, not Linux. Apache compiles cleanly under DU. ------------------------------------------------------------------------ Aaron M. Gowatch Winner. -- 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 ^ permalink raw reply [flat|nested] 5+ messages in thread
* Apache httpd compile problems @ 1997-06-13 2:14 C. Jon Larsen 0 siblings, 0 replies; 5+ messages in thread From: C. Jon Larsen @ 1997-06-13 2:14 UTC (permalink / raw) Hello, 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: [Wed Jun 11 17:59:00 1997] httpd: caught SIGSEGV, attempting to dump core . . . For every apache source distribution, I seem to get some of the same errors when compiling (the new 1.2, and older 1.1.x versions.) I have compiled many times for i386, w/o any trouble at all. So finally, I grabbed the SRPM off of my 4.1 cd, and tried to build it - only to get the same compiler warings: rpm -bb apache-1.1.1.spec >& build.att 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 ? Any and all help much appreciated ! -- 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 ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~1997-06-14 0:41 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <199706140041.SAA06362@ellpspace.math.ualberta.ca>
1997-06-14 0:03 ` Apache httpd compile problems Aaron M. Gowatch
[not found] <Pine.LNX.3.95.970613153358.15454G-100000@comet.hotwired.com>
1997-06-14 0:41 ` Michal Jaegermann
1997-06-13 12:44 Jim Nance
1997-06-13 22:43 ` Aaron M. Gowatch
-- strict thread matches above, loose matches on Subject: below --
1997-06-13 2:14 C. Jon Larsen
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox