* Re: Apache httpd compile problems
@ 1997-06-13 12:44 Jim Nance
1997-06-13 22:17 ` Upgrading to 4.2 with MILO in flash Janne Zettergren
1997-06-13 22:43 ` Apache httpd compile problems Aaron M. Gowatch
0 siblings, 2 replies; 3+ 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] 3+ messages in thread
* Upgrading to 4.2 with MILO in flash
1997-06-13 12:44 Apache httpd compile problems Jim Nance
@ 1997-06-13 22:17 ` Janne Zettergren
1997-06-13 22:43 ` Apache httpd compile problems Aaron M. Gowatch
1 sibling, 0 replies; 3+ messages in thread
From: Janne Zettergren @ 1997-06-13 22:17 UTC (permalink / raw)
Maybe this is just another RTFM but.... I am trying
to upgrade a noname to RH4.2.
In my flashed MILO I have set
BOOT_DEV fd0
BOOT_STRING root=/dev/fd0
BOOT_FILE /vmlinux.gz
Using the latest noname.img I boot and get
the prompt to change the disk and insert
the root floppy (ramdisk.img)
after a short while the systems panics and
saying that it's unable to mount the root fs.
Am I missing someting or is it just a bad
ramdisk image?
Any help is appreciated
TIA
janne
--
\\\ Jan Zettergren janne@zettergren.pp.se
>>> Stockholm http://www.pi.se/zettergren
/// Sweden
--
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] 3+ messages in thread
* Re: Apache httpd compile problems
1997-06-13 12:44 Apache httpd compile problems Jim Nance
1997-06-13 22:17 ` Upgrading to 4.2 with MILO in flash Janne Zettergren
@ 1997-06-13 22:43 ` Aaron M. Gowatch
1 sibling, 0 replies; 3+ 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] 3+ messages in thread
end of thread, other threads:[~1997-06-13 22:43 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1997-06-13 12:44 Apache httpd compile problems Jim Nance
1997-06-13 22:17 ` Upgrading to 4.2 with MILO in flash Janne Zettergren
1997-06-13 22:43 ` Apache httpd compile problems Aaron M. Gowatch
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox