#1 repos.c doesn't compile using gcc

open
nobody
None
5
2014-08-10
2003-02-18
Anonymous
No

bash-2.05$ make
/bin/sh /opt/apache2/build/libtool --silent
--mode=compile gcc -g -O2 -pthread -Wall
-I/opt/apache2/include -I/usr/local/pgsql/include/psql
-I/usr/local/pgsql/include -o mod_dav_psql.lo -c
mod_dav_psql.c
/bin/sh /opt/apache2/build/libtool --silent
--mode=compile gcc -g -O2 -pthread -Wall
-I/opt/apache2/include -I/usr/local/pgsql/include/psql
-I/usr/local/pgsql/include -o repos.lo -c repos.c
repos.c: In function `dav_psql_get_resource':
repos.c:200: parse error before `const'
repos.c:203: `relative' undeclared (first use in this
function)
repos.c:203: (Each undeclared identifier is reported
only once
repos.c:203: for each function it appears in.)
repos.c: In function `dav_psql_deliver':
repos.c:305: parse error before `char'
repos.c:309: `title' undeclared (first use in this
function)
repos.c:321: parse error before `int'
repos.c:322: `pad' undeclared (first use in this function)
repos.c:323: parse error before `char'
repos.c:328: `icon' undeclared (first use in this function)
repos.c:335: `comment' undeclared (first use in this
function)
repos.c:335: warning: field width is not type int (arg 7)
repos.c: In function `dav_psql_mkresponse':
repos.c:362: `ap_text_header' undeclared (first use in
this function)
repos.c:362: parse error before `hdr'
repos.c:361: warning: unused variable `s'
repos.c:362: warning: control reaches end of non-void
function
repos.c: At top level:
repos.c:363: parse error before `hdr_ns'
repos.c:363: warning: type defaults to `int' in
declaration of `hdr_ns'
repos.c:363: warning: data definition has no type or
storage class
repos.c:364: braced-group within expression allowed
only inside a function
repos.c:364: warning: type defaults to `int' in
declaration of `__s'
repos.c:364: warning: data definition has no type or
storage class
repos.c:364: parse error before `}'
repos.c:364: warning: initialization makes pointer from
integer without a cast
repos.c:364: initializer element is not constant
repos.c:364: parse error before `switch'
repos.c:364: warning: type defaults to `int' in
declaration of `__u'
repos.c:364: conflicting types for `__u'
repos.c:364: previous declaration of `__u'
repos.c:364: warning: initialization makes integer from
pointer without a cast
repos.c:364: initializer element is not constant
repos.c:364: warning: data definition has no type or
storage class
repos.c:364: parse error before `case'
repos.c:364: warning: type defaults to `int' in
declaration of `__u'
repos.c:364: redefinition of `__u'
repos.c:364: `__u' previously defined here
repos.c:364: warning: initialization makes integer from
pointer without a cast
repos.c:364: initializer element is not constant
repos.c:364: warning: data definition has no type or
storage class
repos.c:364: parse error before `case'
repos.c:364: warning: type defaults to `int' in
declaration of `__u'
repos.c:364: redefinition of `__u'
repos.c:364: `__u' previously defined here
repos.c:364: warning: initialization makes integer from
pointer without a cast
repos.c:364: initializer element is not constant
repos.c:364: warning: data definition has no type or
storage class
repos.c:364: parse error before `case'
repos.c:364: warning: type defaults to `int' in
declaration of `__u'
repos.c:364: redefinition of `__u'
repos.c:364: `__u' previously defined here
repos.c:364: warning: initialization makes integer from
pointer without a cast
repos.c:364: initializer element is not constant
repos.c:364: warning: data definition has no type or
storage class
repos.c:364: parse error before `->'
repos.c:364: warning: type defaults to `int' in
declaration of `__u'
repos.c:364: redefinition of `__u'
repos.c:364: `__u' previously defined here
repos.c:364: warning: initialization makes integer from
pointer without a cast
repos.c:364: initializer element is not constant
repos.c:364: warning: data definition has no type or
storage class
repos.c:364: parse error before `case'
repos.c:364: warning: type defaults to `int' in
declaration of `__u'
repos.c:364: redefinition of `__u'
repos.c:364: `__u' previously defined here
repos.c:364: warning: initialization makes integer from
pointer without a cast
repos.c:364: initializer element is not constant
repos.c:364: warning: data definition has no type or
storage class
repos.c:364: parse error before `case'
repos.c:364: warning: type defaults to `int' in
declaration of `__u'
repos.c:364: redefinition of `__u'
repos.c:364: `__u' previously defined here
repos.c:364: warning: initialization makes integer from
pointer without a cast
repos.c:364: initializer element is not constant
repos.c:364: warning: data definition has no type or
storage class
repos.c:364: parse error before `case'
repos.c:364: warning: type defaults to `int' in
declaration of `__u'
repos.c:364: redefinition of `__u'
repos.c:364: `__u' previously defined here
repos.c:364: warning: initialization makes integer from
pointer without a cast
repos.c:364: initializer element is not constant
repos.c:364: warning: data definition has no type or
storage class
repos.c:364: parse error before `case'
repos.c:364: warning: type defaults to `int' in
declaration of `__u'
repos.c:364: redefinition of `__u'
repos.c:364: `__u' previously defined here
repos.c:364: warning: initialization makes integer from
pointer without a cast
repos.c:364: initializer element is not constant
repos.c:364: warning: data definition has no type or
storage class
repos.c:364: parse error before `case'
repos.c:364: warning: type defaults to `int' in
declaration of `__u'
repos.c:364: redefinition of `__u'
repos.c:364: `__u' previously defined here
repos.c:364: warning: initialization makes integer from
pointer without a cast
repos.c:364: initializer element is not constant
repos.c:364: warning: data definition has no type or
storage class
repos.c:364: parse error before `case'
repos.c:364: warning: type defaults to `int' in
declaration of `__u'
repos.c:364: redefinition of `__u'
repos.c:364: `__u' previously defined here
repos.c:364: warning: initialization makes integer from
pointer without a cast
repos.c:364: initializer element is not constant
repos.c:364: warning: data definition has no type or
storage class
repos.c:364: parse error before `case'
repos.c:364: warning: type defaults to `int' in
declaration of `__u'
repos.c:364: redefinition of `__u'
repos.c:364: `__u' previously defined here
repos.c:364: warning: initialization makes integer from
pointer without a cast
repos.c:364: initializer element is not constant
repos.c:364: warning: data definition has no type or
storage class
repos.c:364: parse error before `case'
repos.c:364: warning: type defaults to `int' in
declaration of `__u'
repos.c:364: redefinition of `__u'
repos.c:364: `__u' previously defined here
repos.c:364: warning: initialization makes integer from
pointer without a cast
repos.c:364: initializer element is not constant
repos.c:364: warning: data definition has no type or
storage class
repos.c:364: parse error before `case'
repos.c:364: warning: type defaults to `int' in
declaration of `__s'
repos.c:364: warning: data definition has no type or
storage class
repos.c:364: parse error before `}'
repos.c:364: parse error before character constant
repos.c:364: warning: type defaults to `int' in
declaration of `__s'
repos.c:364: warning: data definition has no type or
storage class
repos.c:364: parse error before `}'
repos.c:371: parse error before `->'
repos.c:372: parse error before string constant
repos.c:376: parse error before string constant
repos.c:380: parse error before `->'
repos.c:381: warning: type defaults to `int' in
declaration of `ap_text_append' repos.c:381: warning:
data definition has no type or storage class
repos.c:390: warning: type defaults to `int' in
declaration of `s'
repos.c:390: `db_r' undeclared here (not in a function)
repos.c:392: `db_r' undeclared here (not in a function)
repos.c:392: warning: initialization makes integer from
pointer without a cast
repos.c:392: initializer element is not constant
repos.c:392: warning: data definition has no type or
storage class
repos.c:393: parse error before `->'
repos.c:393: warning: type defaults to `int' in
declaration of `ap_text_append' repos.c:393: warning:
data definition has no type or storage class
repos.c:397: parse error before `0'
repos.c:397: warning: type defaults to `int' in
declaration of `dav_format_time'repos.c:397:
conflicting types for `dav_format_time'
repos.c:116: previous declaration of `dav_format_time'
repos.c:397: warning: data definition has no type or
storage class
repos.c:398: warning: type defaults to `int' in
declaration of `s'
repos.c:398: redefinition of `s'
repos.c:390: `s' previously defined here
repos.c:398: `db_r' undeclared here (not in a function)
repos.c:398: warning: initialization makes integer from
pointer without a cast
repos.c:398: initializer element is not constant
repos.c:398: warning: data definition has no type or
storage class
repos.c:399: parse error before `->'
repos.c:399: warning: type defaults to `int' in
declaration of `ap_text_append' repos.c:399: warning:
data definition has no type or storage class
repos.c:400: parse error before `->'
repos.c:400: warning: type defaults to `int' in
declaration of `ap_text_append' repos.c:400: warning:
data definition has no type or storage class
repos.c:401: parse error before `->'
repos.c:401: warning: type defaults to `int' in
declaration of `ap_text_append' repos.c:401: warning:
data definition has no type or storage class
repos.c:403: parse error before `0'
repos.c:403: warning: type defaults to `int' in
declaration of `dav_format_time'repos.c:403: warning:
data definition has no type or storage class
repos.c:404: warning: type defaults to `int' in
declaration of `s'
repos.c:404: redefinition of `s'
repos.c:398: `s' previously defined here
repos.c:404: `db_r' undeclared here (not in a function)
repos.c:404: warning: initialization makes integer from
pointer without a cast
repos.c:404: initializer element is not constant
repos.c:404: warning: data definition has no type or
storage class
repos.c:405: parse error before `->'
repos.c:405: warning: type defaults to `int' in
declaration of `ap_text_append' repos.c:405: warning:
data definition has no type or storage class
repos.c:406: parse error before `->'
repos.c:406: warning: type defaults to `int' in
declaration of `ap_text_append' repos.c:406: warning:
data definition has no type or storage class
repos.c:407: parse error before `->'
repos.c:407: warning: type defaults to `int' in
declaration of `ap_text_append' repos.c:407: warning:
data definition has no type or storage class
repos.c:409: parse error before `->'
repos.c:409: warning: type defaults to `int' in
declaration of `ap_text_append' repos.c:409: warning:
data definition has no type or storage class
repos.c:410: parse error before `->'
repos.c:411: warning: type defaults to `int' in
declaration of `ap_text_append' repos.c:411: warning:
data definition has no type or storage class
repos.c:412: parse error before `->'
repos.c:412: warning: type defaults to `int' in
declaration of `ap_text_append' repos.c:412: warning:
data definition has no type or storage class
repos.c:415: parse error before `->'
repos.c:418: warning: type defaults to `int' in
declaration of `ap_text_append' repos.c:418: warning:
data definition has no type or storage class
repos.c:424: warning: type defaults to `int' in
declaration of `s'
repos.c:424: redefinition of `s'
repos.c:404: `s' previously defined here
repos.c:424: `db_r' undeclared here (not in a function)
repos.c:424: warning: initialization makes integer from
pointer without a cast
repos.c:424: initializer element is not constant
repos.c:424: warning: data definition has no type or
storage class
repos.c:425: parse error before `->'
repos.c:425: warning: type defaults to `int' in
declaration of `ap_text_append' repos.c:425: warning:
data definition has no type or storage class
repos.c:427: warning: type defaults to `int' in
declaration of `s'
repos.c:427: redefinition of `s'
repos.c:424: `s' previously defined here
repos.c:427: `db_r' undeclared here (not in a function)
repos.c:427: warning: initialization makes integer from
pointer without a cast
repos.c:427: initializer element is not constant
repos.c:427: warning: data definition has no type or
storage class
repos.c:428: parse error before `->'
repos.c:428: warning: type defaults to `int' in
declaration of `ap_text_append'
repos.c:428: warning: data definition has no type or
storage class
repos.c:430: warning: type defaults to `int' in
declaration of `s'
repos.c:430: redefinition of `s'
repos.c:427: `s' previously defined here
repos.c:430: `db_r' undeclared here (not in a function)
repos.c:431: warning: initialization makes integer from
pointer without a cast
repos.c:431: initializer element is not constant
repos.c:431: warning: data definition has no type or
storage class
repos.c:432: parse error before `->'
repos.c:432: warning: type defaults to `int' in
declaration of `ap_text_append'
repos.c:432: warning: data definition has no type or
storage class
repos.c:434: parse error before string constant
repos.c:397: warning: `dav_format_time' defined but not
used
make: *** [repos.lo] Error 1
--
ACannell@portlight.com

Discussion