httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rob Hartill <r...@imdb.com>
Subject Apache compile warnings (fwd)
Date Thu, 06 Feb 1997 19:19:31 GMT

Not acked

---------- Forwarded message ----------
Date: Thu, 06 Feb 1997 14:23:11 +0000
From: Maarten Merlevede <mem@olv>
To: brian@hyperreal.com
Subject: Apache compile warnings

Hello,

I started some months ago with a Webserver in our site. First i used
CERN but some problems made me take the step towards apache. I run at
this moment apache 1.2b2 which works almost fine. Only one problem :
while loading a page the first time, the loading process hangs on 100%
loaded ( in Netscape 3.1 ) during a long period.
I wanted to change to 1.2b6 but i got ( again ) some warning while
compiling. The system I use is a HP9000 G40 machine with HP-UX 10.01 on
it. The gcc version is 2.7.2.1.

The following output ( after a Configure ) is produced :

root>make
        gcc -c   -O2 -DHPUX10   alloc.c
        gcc -c   -O2 -DHPUX10   http_main.c
http_main.c: In function `lingering_close':
http_main.c:372: warning: passing arg 2 of `select' from incompatible
pointer te
http_main.c:372: warning: passing arg 4 of `select' from incompatible
pointer te
http_main.c: In function `child_main':
http_main.c:1592: warning: passing arg 2 of `select' from incompatible
pointer e
http_main.c:1623: warning: passing arg 2 of `select' from incompatible
pointer e
        gcc -c   -O2 -DHPUX10   http_core.c
        gcc -c   -O2 -DHPUX10   http_config.c
        gcc -c   -O2 -DHPUX10   http_request.c
        gcc -c   -O2 -DHPUX10   http_log.c
        gcc -c   -O2 -DHPUX10   http_protocol.c
        gcc -c   -O2 -DHPUX10   rfc1413.c
        gcc -c   -O2 -DHPUX10   util.c
        gcc -c   -O2 -DHPUX10   util_script.c
        gcc -c   -O2 -DHPUX10   modules.c
        gcc -c   -O2 -DHPUX10   buff.c
buff.c: In function `btestread':
buff.c:429: warning: passing arg 2 of `select' from incompatible pointer
type
        gcc -c   -O2 -DHPUX10   md5c.c
        gcc -c   -O2 -DHPUX10   util_md5.c
        gcc -c   -O2 -DHPUX10   explain.c
        gcc -c   -O2 -DHPUX10   http_bprintf.c
        gcc -c   -O2 -DHPUX10   util_date.c
        gcc -c   -O2 -DHPUX10   util_snprintf.c
        gcc -c   -O2 -DHPUX10   mod_mime.c
        gcc -c   -O2 -DHPUX10   mod_access.c
        gcc -c   -O2 -DHPUX10   mod_auth.c
        gcc -c   -O2 -DHPUX10   mod_negotiation.c
        gcc -c   -O2 -DHPUX10   mod_include.c
        gcc -c   -O2 -DHPUX10   mod_negotiation.c 
        gcc -c   -O2 -DHPUX10   mod_include.c
        gcc -c   -O2 -DHPUX10   mod_dir.c
        gcc -c   -O2 -DHPUX10   mod_cgi.c
        gcc -c   -O2 -DHPUX10   mod_userdir.c
        gcc -c   -O2 -DHPUX10   mod_alias.c
        gcc -c   -O2 -DHPUX10   mod_env.c
        gcc -c   -O2 -DHPUX10   mod_log_config.c
        gcc -c   -O2 -DHPUX10   mod_asis.c
        gcc -c   -O2 -DHPUX10   mod_imap.c
        gcc -c   -O2 -DHPUX10   mod_actions.c
        gcc -c   -O2 -DHPUX10   mod_browser.c
        gcc    -o httpd alloc.o http_main.o http_core.o http_config.o
http_request.o http_log.o http_protocol.o rfc1413.o util.o util_script.o
modules.o buff.o md5c.o util_md5.o explain.o http_bprintf.o util_date.o
util_snprintf.o mod_mime.o mod_access.o  mod_auth.o  mod_negotiation.o 
mod_include.o  mod_dir.o  mod_cgi.o  mod_userdir.o  mod_alias.o 
mod_env.o  mod_log_config.o  mod_asis.o  mod_imap.o  mod_actions.o 
mod_browser.o
*** Error exit code 1
1 exit status
/usr/bin/ld: Unsatisfied symbols:
   getwd (code)

The last error I could eliminate by the following code in mod_include.c
:

   if(!strcmp(tag,"file")) {
        getparents(tag_val); /* get rid of any nasties */
        /* getwd(dir); */
        getcwd(dir,MAX_STRING_LEN);
        to_send = make_full_path (r->pool, dir, tag_val);
        if(stat(to_send,finfo) == -1) {
            log_printf(r->server,
                    "unable to get information about %s in parsed file
%s",
                    to_send, r->filename);
            rputs(error, r);
            return -1;
        }
        return 0;

The warnings are still a questionmark to me. What can be done ? What's
wrong ? Is it possible that this warning, that i had in 1.2.b2 also, 
causes the 'hang' ?

Greetings

Maarten Merlevede
Sysadmin Psych. Clinic OLV Brugge Belgium



-- 

---------------------------------------------------------------
Maarten Merlevede - Systeembeheer OLV - RB     
OLV mailto:mem@olv  ***  Internet  mailto:m_merlev@tornado.be
---------------------------------------------------------------




Mime
View raw message