Mantis Bugtracker
  

Viewing Issue Advanced Details Jump to Notes ] View Simple ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0000922 [Resin] block always 02-07-06 16:01 03-27-06 16:46
Reporter jgagner View Status public  
Assigned To
Priority normal Resolution fixed Platform
Status closed   OS
Projection none   OS Version
ETA none Fixed in Version 3.0.19 Product Version 3.0.17
  Product Build
Summary 0000922: Cannot compile mod_caucho on CentOS4 apache2
Description Attempting to compile mod_caucho w/ apache2/httpd-devel packages installed (from base repository) produces "mod_caucho.c:54: error: syntax error before "caucho_module""




Steps To Reproduce
Additional Information Configured with:

./configure --with-apxs=/usr/sbin/apxs


Configure output:

[root@yourbox resin]# ./configure --with-apxs=/usr/sbin/apxs
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... none
checking for ld used by GCC... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking sys/poll.h usability... yes
checking sys/poll.h presence... yes
checking for sys/poll.h... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking for a sed that does not truncate output... /bin/sed
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking command to parse /usr/bin/nm -B output... ok
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for ranlib... ranlib
checking for strip... strip
checking for objdir... .libs
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.lo... yes
checking if gcc supports -fno-rtti -fno-exceptions... no
checking whether the linker (/usr/bin/ld) supports shared libraries... yes
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking whether -lc should be explicitly linked in... no
creating libtool
Using shared library flags from /usr/sbin/apxs
checking for JAVA_HOME... /usr/java/jdk1.5.0_06
checking if Java is 64-bit... no
Using Apache configuration /etc/httpd/conf/httpd.conf
Using Apache CFLAGS: -O2 -g -pipe -m32 -march=i386 -mtune=pentium4
checking for JNI in /usr/java/jdk1.5.0_06/include/linux ... found
Using JVMTI for class reloading
Using openssl include in ... /usr/include
Using openssl lib in ... /usr/lib
Using openssl libraries in ... -lssl -lcrypto
configure: creating ./config.status
config.status: creating Makefile
config.status: creating bin/wrapper.pl
config.status: creating modules/c/src/Makefile
config.status: creating modules/c/src/common/Makefile
config.status: creating modules/c/src/apache1/Makefile
config.status: creating modules/c/src/apache2/Makefile
config.status: creating modules/c/src/resin_os/Makefile
config.status: creating contrib/init.resin
config.status: executing depfiles commands
[root@yourbox resin]#



Make output:


[root@yourbox resin]# make
(cd modules/c/src; make)
make[1]: Entering directory `/resin/modules/c/src'
for dir in common apache1 resin_os; do (cd $dir; make); done
make[2]: Entering directory `/resin/modules/c/src/common'
/usr/bin/ld -r -o common.o stream.o config.o memory.o
make[2]: Leaving directory `/resin/modules/c/src/common'
make[2]: Entering directory `/resin/modules/c/src/apache1'
/resin/libtool --silent --mode=compile gcc -o mod_caucho.lo -c -I/usr/include/httpd -I/usr/include/apr-0 -DRESIN_HOME=\"/resin\" -I../common -g -O2 -DPOLL -DHAS_JVMTI -O2 -g -pipe -m32 -march=i386 -mtune=pentium4 mod_caucho.c
mod_caucho.c:54: error: syntax error before "caucho_module"
mod_caucho.c:54: warning: data definition has no type or storage class
mod_caucho.c:60: error: syntax error before '*' token
mod_caucho.c:60: warning: data definition has no type or storage class
mod_caucho.c:165: warning: "struct pool" declared inside parameter list
mod_caucho.c:165: warning: its scope is only this definition or declaration, which is probably not what you want
mod_caucho.c: In function `cse_module_init':
mod_caucho.c:167: warning: passing arg 1 of `ap_add_version_component' from incompatible pointer type
mod_caucho.c:167: error: too few arguments to function `ap_add_version_component'
mod_caucho.c: At top level:
mod_caucho.c:171: error: syntax error before '*' token
mod_caucho.c: In function `cse_create_server_config':
mod_caucho.c:176: error: `p' undeclared (first use in this function)
mod_caucho.c:176: error: (Each undeclared identifier is reported only once
mod_caucho.c:176: error: for each function it appears in.)
mod_caucho.c:176: warning: assignment makes pointer from integer without a cast
mod_caucho.c: At top level:
mod_caucho.c:190: error: syntax error before '*' token
mod_caucho.c: In function `cse_create_dir_config':
mod_caucho.c:195: error: `p' undeclared (first use in this function)
mod_caucho.c:195: warning: assignment makes pointer from integer without a cast
mod_caucho.c: In function `cse_get_module_config':
mod_caucho.c:218: error: request for member `module_index' in something not a structure or union
mod_caucho.c:223: error: request for member `module_index' in something not a structure or union
mod_caucho.c: In function `cse_get_cmd_config':
mod_caucho.c:235: error: request for member `module_index' in something not a structure or union
mod_caucho.c:240: error: request for member `module_index' in something not a structure or union
mod_caucho.c: In function `cse_clean_jsessionid':
mod_caucho.c:415: error: request for member `module_index' in something not a structure or union
mod_caucho.c:429: error: structure has no member named `st_mode'
mod_caucho.c:438: error: request for member `module_index' in something not a structure or union
mod_caucho.c:452: error: structure has no member named `st_mode'
mod_caucho.c: In function `get_session_index':
mod_caucho.c:512: error: `array_header' undeclared (first use in this function)
mod_caucho.c:512: error: `hdrs_arr' undeclared (first use in this function)
mod_caucho.c:513: error: `table_entry' undeclared (first use in this function)
mod_caucho.c:513: error: `hdrs' undeclared (first use in this function)
mod_caucho.c:513: error: syntax error before ')' token
mod_caucho.c:533: error: request for member `module_index' in something not a structure or union
mod_caucho.c: In function `write_env':
mod_caucho.c:576: error: request for member `module_index' in something not a structure or union
mod_caucho.c:591: warning: passing arg 3 of `cse_write_string' makes pointer from integer without a cast
mod_caucho.c:593: error: too few arguments to function `ap_get_remote_host'
mod_caucho.c:601: error: request for member `sin_port' in something not a structure or union
mod_caucho.c:601: warning: passing arg 3 of `cse_write_string' makes pointer from integer without a cast
mod_caucho.c:603: error: structure has no member named `user'
mod_caucho.c:604: error: structure has no member named `user'
mod_caucho.c:605: error: structure has no member named `ap_auth_type'
mod_caucho.c:606: error: structure has no member named `ap_auth_type'
mod_caucho.c: In function `write_headers':
mod_caucho.c:652: error: `array_header' undeclared (first use in this function)
mod_caucho.c:652: error: `hdrs_arr' undeclared (first use in this function)
mod_caucho.c:653: error: `table_entry' undeclared (first use in this function)
mod_caucho.c:653: error: `hdrs' undeclared (first use in this function)
mod_caucho.c:653: error: syntax error before ')' token
mod_caucho.c: In function `write_added_headers':
mod_caucho.c:681: error: `array_header' undeclared (first use in this function)
mod_caucho.c:681: error: `hdrs_arr' undeclared (first use in this function)
mod_caucho.c:682: error: `table_entry' undeclared (first use in this function)
mod_caucho.c:682: error: `hdrs' undeclared (first use in this function)
mod_caucho.c:682: error: syntax error before ')' token
mod_caucho.c:702: error: structure has no member named `user'
mod_caucho.c: In function `send_data':
mod_caucho.c:819: warning: assignment makes pointer from integer without a cast
mod_caucho.c:827: warning: assignment makes pointer from integer without a cast
mod_caucho.c: In function `caucho_request':
mod_caucho.c:965: error: request for member `module_index' in something not a structure or union
mod_caucho.c:967: error: request for member `module_index' in something not a structure or union
mod_caucho.c: At top level:
mod_caucho.c:1194: error: syntax error before "pool"
mod_caucho.c:1208: error: syntax error before "pool"
mod_caucho.c:1249: error: syntax error before "caucho_handlers"
mod_caucho.c:1251: warning: braces around scalar initializer
mod_caucho.c:1251: warning: (near initialization for `caucho_handlers[0]')
mod_caucho.c:1251: warning: initialization makes integer from pointer without a cast
mod_caucho.c:1251: warning: excess elements in scalar initializer
mod_caucho.c:1251: warning: (near initialization for `caucho_handlers[0]')
mod_caucho.c:1252: warning: braces around scalar initializer
mod_caucho.c:1252: warning: (near initialization for `caucho_handlers[1]')
mod_caucho.c:1252: warning: initialization makes integer from pointer without a cast
mod_caucho.c:1252: warning: excess elements in scalar initializer
mod_caucho.c:1252: warning: (near initialization for `caucho_handlers[1]')
mod_caucho.c:1253: warning: braces around scalar initializer
mod_caucho.c:1253: warning: (near initialization for `caucho_handlers[2]')
mod_caucho.c:1253: warning: initialization makes integer from pointer without a cast
mod_caucho.c:1254: warning: data definition has no type or storage class
mod_caucho.c:1265: error: conflicting types for 'caucho_module'
mod_caucho.c:54: error: previous declaration of 'caucho_module' was here
mod_caucho.c:1267: error: `this_module_needs_to_be_ported_to_apache_2_0' undeclared here (not in a function)
mod_caucho.c:1267: error: initializer element is not constant
mod_caucho.c:1267: error: (near initialization for `caucho_module.version')
mod_caucho.c:1268: warning: initialization makes integer from pointer without a cast
mod_caucho.c:1269: warning: initialization makes integer from pointer without a cast
mod_caucho.c:1273: warning: initialization makes integer from pointer without a cast
mod_caucho.c:1274: warning: initialization from incompatible pointer type
mod_caucho.c:1275: warning: initialization from incompatible pointer type
mod_caucho.c:1279: warning: initialization from incompatible pointer type
mod_caucho.c:1281: warning: excess elements in struct initializer
mod_caucho.c:1281: warning: (near initialization for `caucho_module')
mod_caucho.c:1282: warning: excess elements in struct initializer
mod_caucho.c:1282: warning: (near initialization for `caucho_module')
mod_caucho.c:1283: warning: excess elements in struct initializer
mod_caucho.c:1283: warning: (near initialization for `caucho_module')
mod_caucho.c:1284: warning: excess elements in struct initializer
mod_caucho.c:1284: warning: (near initialization for `caucho_module')
mod_caucho.c:1285: warning: excess elements in struct initializer
mod_caucho.c:1285: warning: (near initialization for `caucho_module')
make[2]: *** [mod_caucho.lo] Error 1
make[2]: Leaving directory `/resin/modules/c/src/apache1'
make[2]: Entering directory `/resin/modules/c/src/resin_os'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/resin/modules/c/src/resin_os'
make[1]: Leaving directory `/resin/modules/c/src'


Installed packages:

[root@yourbox resin]# yum search httpd | grep installed
mod_dav_svn.i386 1.1.4-2.ent installed
httpd-suexec.i386 2.0.52-22.ent.centos4 installed
mod_ssl.i386 1:2.0.52-22.ent.centos installed
httpd.i386 2.0.52-22.ent.centos4 installed
httpd-devel.i386 2.0.52-22.ent.centos4 installed
[root@yourbox resin]#
Attached Files

- Relationships

- Notes
(0000956)
ferg
03-27-06 16:46

improper detection of apache1 vs apache2
 

- Issue History
Date Modified Username Field Change
02-07-06 16:01 jgagner New Issue
02-07-06 16:16 jgagner Issue Monitored: jgagner
03-27-06 16:46 ferg Note Added: 0000956
03-27-06 16:46 ferg Status new => closed
03-27-06 16:46 ferg Resolution open => fixed
03-27-06 16:46 ferg Fixed in Version  => 3.0.19


Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
30 total queries executed.
26 unique queries executed.
Powered by Mantis Bugtracker