httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r...@imdb.com (Rob Hartill)
Subject Re: WWW Form Bug Report: "compile error (undefined int, absence of strdup) on next" on NeXT
Date Sat, 21 Dec 1996 02:40:41 GMT

Hi,

thanks for all the info. We'll see what use we can make of it for the
next beta.

cheers,
rob

smatsuad@molbio.med.osaka-u.ac.jp wrote:
>
>Submitter: smatsuad@molbio.med.osaka-u.ac.jp
>Operating system: NeXT, version: next3.2j
>Version of Apache Used: 1.2b2
>Extra Modules used: none
>URL exhibiting problem: not yet
>
>Symptoms:
>--
>On next i386 nextstep 3.2j, I could have compiled apache with following modifications.
>
>1 I set the regex in Configuration file.
>Rule WANTHSREGEX=yes
>2 If undifined pointer type was found, set them -Dtype=int.
>3 Compiling ./support/logresolve requires strdup, which next does not have. I used strdup.c
script, which I borrowed from other script.
>4 gnu cc gives a similar result for compiling httpd.
>5 Compiling ./support/htdigest gcc gives parse error, so I compiled them with cc.
>gcc -I../src -g httpd_monitor.c -o httpd_monitor
>In file included from ../src/httpd.h:60,
>                 from httpd_monitor.c:81:
>../src/alloc.h:211: parse error before `*'
>
>
>Below is the output of gnu make
>molbio> ./Configure
>Using 'Configuration' as config file
>./helpers/GuessOS: uname: not found
> + configured for NeXT platform
> + setting C compiler to gcc
>molbio> make
>(cd regex; make lib CC=gcc AUX_CFLAGS="-O2 -DNEXT " RANLIB=ranlib)
>make[1]: Entering directory `/disk1/Unix/src/apache_1.2b2/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 -DNEXT    -c regcomp.c
>regcomp.c:49: warning: `NEXT' redefined
>*Initialization*:1: warning: this is the location of the previous definition
>sh ./mkh  -p engine.c >engine.ih
>gcc -I. -DPOSIX_MISTAKE -O2 -DNEXT    -c regexec.c
>sh ./mkh  -p regerror.c >regerror.ih
>gcc -I. -DPOSIX_MISTAKE -O2 -DNEXT    -c regerror.c
>gcc -I. -DPOSIX_MISTAKE -O2 -DNEXT    -c regfree.c
>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 `/disk1/Unix/src/apache_1.2b2/src/regex'
>gcc -c -Iregex  -O2 -DNEXT   alloc.c
>gcc -c -Iregex  -O2 -DNEXT   http_main.c
>gcc -c -Iregex  -O2 -DNEXT   http_core.c
>http_core.c: In function `set_rlimit':
>http_core.c:975: `rlim_t' undeclared (first use this function)
>http_core.c:975: (Each undeclared identifier is reported only once
>http_core.c:975: for each function it appears in.)
>http_core.c:975: parse error before `cur'
>http_core.c:989: `cur' undeclared (first use this function)
>http_core.c:998: `max' undeclared (first use this function)
>make: *** [http_core.o] Error 1
>molbio> gcc -c -Iregex  -O2 -DNEXT -Drlim_t=int -Dcur=int -Dmax=int -o http_core.c
>molbio> make
>gcc -c -Iregex  -O2 -DNEXT   http_config.c
>gcc -c -Iregex  -O2 -DNEXT   http_request.c
>gcc -c -Iregex  -O2 -DNEXT   http_log.c
>gcc -c -Iregex  -O2 -DNEXT   http_protocol.c
>gcc -c -Iregex  -O2 -DNEXT   rfc1413.c
>gcc -c -Iregex  -O2 -DNEXT   util.c
>util.c: In function `gname2id':
>util.c:1109: warning: passing arg 1 of `getgrnam' discards `const' from pointer target
type
>util.c: In function `get_virthost_addr':
>util.c:1168: warning: passing arg 1 of `inet_addr' discards `const' from pointer target
type
>util.c:1176: warning: passing arg 1 of `gethostbyname' discards `const' from pointer target
type
>gcc -c -Iregex  -O2 -DNEXT   util_script.c
>gcc -c -Iregex  -O2 -DNEXT   modules.c
>gcc -c -Iregex  -O2 -DNEXT   buff.c
>gcc -c -Iregex  -O2 -DNEXT   md5c.c
>gcc -c -Iregex  -O2 -DNEXT   util_md5.c
>gcc -c -Iregex  -O2 -DNEXT   explain.c
>gcc -c -Iregex  -O2 -DNEXT   http_bprintf.c
>http_bprintf.c:33: warning: `FALSE' redefined
>/usr/local/lib/gcc-lib/i386-next-nextstep3/2.7.2/include/mach/boolean.h:48: warning: this
is the location of the previous definition
>http_bprintf.c:34: warning: `TRUE' redefined
>/usr/local/lib/gcc-lib/i386-next-nextstep3/2.7.2/include/mach/boolean.h:44: warning: this
is the location of the previous definition
>gcc -c -Iregex  -O2 -DNEXT   util_date.c
>gcc -c -Iregex  -O2 -DNEXT   mod_mime.c
>gcc -c -Iregex  -O2 -DNEXT   mod_access.c
>gcc -c -Iregex  -O2 -DNEXT   mod_auth.c
>gcc -c -Iregex  -O2 -DNEXT   mod_negotiation.c
>gcc -c -Iregex  -O2 -DNEXT   mod_include.c
>gcc -c -Iregex  -O2 -DNEXT   mod_dir.c
>gcc -c -Iregex  -O2 -DNEXT   mod_cgi.c
>gcc -c -Iregex  -O2 -DNEXT   mod_userdir.c
>gcc -c -Iregex  -O2 -DNEXT   mod_alias.c
>gcc -c -Iregex  -O2 -DNEXT   mod_env.c
>gcc -c -Iregex  -O2 -DNEXT   mod_log_config.c
>gcc -c -Iregex  -O2 -DNEXT   mod_asis.c
>gcc -c -Iregex  -O2 -DNEXT   mod_imap.c
>gcc -c -Iregex  -O2 -DNEXT   mod_actions.c
>gcc -c -Iregex  -O2 -DNEXT   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 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 regex/libregex.a
>molbio> cd ../support
>molbio> make
>gcc -g htpasswd.c -o htpasswd
>htpasswd.c: In function `add_password':
>htpasswd.c:91: warning: assignment makes pointer from integer without a cast
>gcc -g htdigest.c -o htdigest
>gcc -I../src -g httpd_monitor.c -o httpd_monitor
>In file included from ../src/httpd.h:60,
>                 from httpd_monitor.c:81:
>../src/alloc.h:211: parse error before `*'
>../src/alloc.h:211: warning: data definition has no type or storage class
>In file included from httpd_monitor.c:81:
>../src/httpd.h:659: parse error before `regmatch_t'
>In file included from httpd_monitor.c:82:
>../src/scoreboard.h:76: parse error before `pid_t'
>../src/scoreboard.h:76: warning: no semicolon at end of struct or union
>../src/scoreboard.h:91: parse error before `}'
>../src/scoreboard.h:91: warning: data definition has no type or storage class
>../src/scoreboard.h:101: parse error before `short_score'
>../src/scoreboard.h:101: warning: no semicolon at end of struct or union
>../src/scoreboard.h:103: parse error before `}'
>../src/scoreboard.h:103: warning: data definition has no type or storage class
>../src/scoreboard.h:108: parse error before `get_scoreboard_info'
>../src/scoreboard.h:108: warning: data definition has no type or storage class
>httpd_monitor.c: In function `main':
>httpd_monitor.c:95: `short_score' undeclared (first use this function)
>httpd_monitor.c:95: (Each undeclared identifier is reported only once
>httpd_monitor.c:95: for each function it appears in.)
>httpd_monitor.c:95: parse error before `scoreboard_image'
>httpd_monitor.c:199: `scoreboard_image' undeclared (first use this function)
>make: *** [httpd_monitor] Error 1
>
>So I changed to CC=cc.
>molbio> make
>cc -g htpasswd.c -o htpasswd
>htpasswd.c: In function `add_password':
>htpasswd.c:91: warning: assignment makes pointer from integer without a cast
>cc -g htdigest.c -o htdigest
>cc -I../src -g httpd_monitor.c -o httpd_monitor
>../src/alloc.h:211: undefined type, found `regex_t'
>../src/alloc.h:659: undefined type, found `regmatch_t'
>../src/alloc.h:76: undefined type, found `pid_t'
>make: *** [httpd_monitor] Error 1
>
>Define undefined type as int.
>Add strdup.o to logresolve in Makefile.
>logresolve: logresolve.c
>    $(CC) $(INCLUDES) $(CFLAGS) strdup.o logresolve.c -o logresolve $(EXTRA_LIBS
>)
>
>molbio> cc -I../src -g httpd_monitor.c -Dregex_t=int -Dregmatch_t=int -Dpid_t=int -o
httpd_monitor
>molbio> make
>cc -I../src -g rotatelogs.c -o rotatelogs
>cc -I../src -g strdup.o logresolve.c -o logresolve
>logresolve.c: In function `cgethost':
>logresolve.c:140: warning: passing arg 1 of `gethostbyaddr' discards `const' from pointer
target type
>logresolve.c:146: warning: assignment makes pointer from integer without a cast
>logresolve.c:150: warning: assignment makes pointer from integer without a cast
>logresolve.c:175: warning: assignment makes pointer from integer without a cast
>molbio>
>
>strdup.c is a simple code as follows.
>molbio> cat strdup.c
>char *strdup(str)
>        char *str;
>{
>        return (char*)strcpy((char*)malloc(strlen(str)+1),str);
>}
>
>--
>
>Backtrace:
>--
>no core.
>--
>


-- 
Rob Hartill.       Internet Movie Database Ltd.    http://www.imdb.com/  

Mime
View raw message