Hi All,
While i am trying to compile suphp-0.7.1 with apache-2.4.3 i got following errors.Plz help me by giving your valuable suggestions.
[root <at> mr suphp-0.7.1]# ./configure --prefix=/lamp/suphp --with-apxs=/lamp/apache/bin/apxs --with-apache-user=daemon --with-logfile=/var/log/httpd/suphp_log --with-setid-mode=paranoid --sysconfdir=/etc --with-apr=/lamp/apache/bin/apr-1-config --with-php=/lamp/php/bin/php-cgi --enable-suphp_USE_USERGROUP=yes
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether build environment is sane... yes
checking for a BSD-compatible install... /usr/bin/install -c
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 ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognize dependent libraries... pass_all
checking how to run the C preprocessor... gcc -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 dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking how to run the C++ preprocessor... g++ -E
checking for g77... no
checking for xlf... no
checking for f77... no
checking for frt... no
checking for pgf77... no
checking for cf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for xlf90... no
checking for f90... no
checking for pgf90... no
checking for pghpf... no
checking for epcf90... no
checking for gfortran... no
checking for g95... no
checking for xlf95... no
checking for f95... no
checking for fort... no
checking for ifort... no
checking for ifc... no
checking for efc... no
checking for pgf95... no
checking for lf95... no
checking for ftn... no
checking whether we are using the GNU Fortran 77 compiler... no
checking whether accepts -g... no
checking the maximum length of command line arguments... 98304
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if gcc supports -fno-rtti -fno-exceptions... no
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 whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by g++... /usr/bin/ld -m elf_x86_64
checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
(cached) (cached) checking how to hardcode library paths into programs... immediate
appending configuration tag "F77" to libtool
checking for ANSI C header files... (cached) yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for unistd.h... (cached) yes
checking for APR... yes
checking for dynamic Apache module support (via APXS)... found at /lamp/apache/bin/apxs (version 2.4.3)
checking for set-UID/set-GID mode... ok - using paranoid
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating src/apache/Makefile
config.status: creating src/apache2/Makefile
config.status: creating src/config.h
config.status: executing depfiles commands
[root <at> mr suphp-0.7.1]# make
Making all in src
make[1]: Entering directory `/root/suphp-0.7.1/src'
make all-recursive
make[2]: Entering directory `/root/suphp-0.7.1/src'
Making all in apache
make[3]: Entering directory `/root/suphp-0.7.1/src/apache'
/bin/sh ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../src -I/lamp/apache/include -DSUPHP_PATH_TO_SUPHP=\"/lamp/suphp/sbin/suphp\" -DSUPHP_USE_USERGROUP -g -O2 -MT mod_suphp.lo -MD -MP -MF .deps/mod_suphp.Tpo -c -o mod_suphp.lo mod_suphp.c
mkdir .libs
gcc -DHAVE_CONFIG_H -I. -I../../src -I/lamp/apache/include -DSUPHP_PATH_TO_SUPHP=\"/lamp/suphp/sbin/suphp\" -DSUPHP_USE_USERGROUP -g -O2 -MT mod_suphp.lo -MD -MP -MF .deps/mod_suphp.Tpo -c mod_suphp.c -fPIC -DPIC -o .libs/mod_suphp.o
mod_suphp.c:47: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before âsuphp_moduleâ
mod_suphp.c:59: error: expected specifier-qualifier-list before âtableâ
mod_suphp.c:66: error: expected â)â before â*â token
mod_suphp.c:84: error: expected â)â before â*â token
mod_suphp.c:125: error: expected â)â before â*â token
mod_suphp.c:145: error: expected â)â before â*â token
mod_suphp.c: In function âsuphp_handle_cmd_engineâ:
mod_suphp.c:191: error: âsuphp_moduleâ undeclared (first use in this function)
mod_suphp.c:191: error: (Each undeclared identifier is reported only once
mod_suphp.c:191: error: for each function it appears in.)
mod_suphp.c: In function âsuphp_handle_cmd_configâ:
mod_suphp.c:207: warning: assignment makes pointer from integer without a cast
mod_suphp.c: In function âsuphp_handle_cmd_user_groupâ:
mod_suphp.c:222: error: âsuphp_moduleâ undeclared (first use in this function)
mod_suphp.c:224: warning: assignment makes pointer from integer without a cast
mod_suphp.c:225: warning: assignment makes pointer from integer without a cast
mod_suphp.c: In function âsuphp_handle_cmd_add_handlerâ:
mod_suphp.c:238: error: âsuphp_moduleâ undeclared (first use in this function)
mod_suphp.c:241: error: âsuphp_confâ has no member named âhandlersâ
mod_suphp.c: In function âsuphp_handle_cmd_remove_handlerâ:
mod_suphp.c:253: error: âsuphp_moduleâ undeclared (first use in this function)
mod_suphp.c:256: error: âsuphp_confâ has no member named âhandlersâ
mod_suphp.c: In function âsuphp_handle_cmd_phppathâ:
mod_suphp.c:266: error: âsuphp_moduleâ undeclared (first use in this function)
mod_suphp.c:268: error: âsuphp_confâ has no member named âphp_pathâ
mod_suphp.c: At top level:
mod_suphp.c:277: warning: initialization from incompatible pointer type
mod_suphp.c:279: warning: initialization from incompatible pointer type
mod_suphp.c:282: warning: initialization from incompatible pointer type
mod_suphp.c:285: warning: initialization from incompatible pointer type
mod_suphp.c:287: warning: initialization from incompatible pointer type
mod_suphp.c:289: warning: initialization from incompatible pointer type
mod_suphp.c:296: error: expected declaration specifiers or â...â before âchild_infoâ
mod_suphp.c: In function âsuphp_source_childâ:
mod_suphp.c:299: error: âpoolâ undeclared (first use in this function)
mod_suphp.c:299: error: âpâ undeclared (first use in this function)
mod_suphp.c:302: error: âsuphp_moduleâ undeclared (first use in this function)
mod_suphp.c:309: warning: assignment makes pointer from integer without a cast
mod_suphp.c:310: error: âsuphp_confâ has no member named âphp_pathâ
mod_suphp.c:310: warning: assignment makes pointer from integer without a cast
mod_suphp.c:312: warning: assignment makes pointer from integer without a cast
mod_suphp.c:325: error: âsuphp_confâ has no member named âphp_pathâ
mod_suphp.c:329: error: âsuphp_confâ has no member named âphp_pathâ
mod_suphp.c:329: warning: passing argument 5 of âap_log_error_â makes integer from pointer without a cast
mod_suphp.c:329: warning: passing argument 6 of âap_log_error_â from incompatible pointer type
mod_suphp.c: At top level:
mod_suphp.c:336: error: expected declaration specifiers or â...â before âchild_infoâ
mod_suphp.c: In function âsuphp_childâ:
mod_suphp.c:339: error: âpoolâ undeclared (first use in this function)
mod_suphp.c:339: error: âpâ undeclared (first use in this function)
mod_suphp.c:351: warning: assignment makes pointer from integer without a cast
mod_suphp.c:368: warning: passing argument 5 of âap_log_error_â makes integer from pointer without a cast
mod_suphp.c:368: warning: passing argument 6 of âap_log_error_â from incompatible pointer type
mod_suphp.c:368: error: too few arguments to function âap_log_error_â
mod_suphp.c:376: warning: passing argument 5 of âap_log_error_â makes integer from pointer without a cast
mod_suphp.c:376: warning: passing argument 6 of âap_log_error_â from incompatible pointer type
mod_suphp.c:376: error: too few arguments to function âap_log_error_â
mod_suphp.c:384: warning: passing argument 5 of âap_log_error_â makes integer from pointer without a cast
mod_suphp.c:384: warning: passing argument 6 of âap_log_error_â from incompatible pointer type
mod_suphp.c:384: error: too few arguments to function âap_log_error_â
mod_suphp.c:392: warning: passing argument 5 of âap_log_error_â makes integer from pointer without a cast
mod_suphp.c:392: warning: passing argument 6 of âap_log_error_â from incompatible pointer type
mod_suphp.c:392: error: too few arguments to function âap_log_error_â
mod_suphp.c:412: warning: passing argument 5 of âap_log_error_â makes integer from pointer without a cast
mod_suphp.c:412: warning: passing argument 6 of âap_log_error_â from incompatible pointer type
mod_suphp.c: In function âsuphp_source_handlerâ:
mod_suphp.c:424: error: âpoolâ undeclared (first use in this function)
mod_suphp.c:424: error: âpâ undeclared (first use in this function)
mod_suphp.c:426: error: âBUFFâ undeclared (first use in this function)
mod_suphp.c:426: error: âscript_inâ undeclared (first use in this function)
mod_suphp.c:426: error: âscript_outâ undeclared (first use in this function)
mod_suphp.c:426: error: âscript_errâ undeclared (first use in this function)
mod_suphp.c:433: error: âsuphp_moduleâ undeclared (first use in this function)
mod_suphp.c:434: error: âsuphp_confâ has no member named âphp_pathâ
mod_suphp.c:445: warning: passing argument 5 of âap_log_rerror_â makes integer from pointer without a cast
mod_suphp.c:445: warning: passing argument 6 of âap_log_rerror_â from incompatible pointer type
mod_suphp.c:449: warning: passing argument 5 of âap_log_rerror_â makes integer from pointer without a cast
mod_suphp.c:449: warning: passing argument 6 of âap_log_rerror_â from incompatible pointer type
mod_suphp.c:453: warning: passing argument 5 of âap_log_rerror_â makes integer from pointer without a cast
mod_suphp.c:453: warning: passing argument 6 of âap_log_rerror_â from incompatible pointer type
mod_suphp.c:459: error: âkill_after_timeoutâ undeclared (first use in this function)
mod_suphp.c:462: warning: passing argument 5 of âap_log_rerror_â makes integer from pointer without a cast
mod_suphp.c:462: warning: passing argument 6 of âap_log_rerror_â from incompatible pointer type
mod_suphp.c: In function âsuphp_handlerâ:
mod_suphp.c:514: error: storage size of âfinfoâ isnât known
mod_suphp.c:521: error: âpoolâ undeclared (first use in this function)
mod_suphp.c:521: error: âpâ undeclared (first use in this function)
mod_suphp.c:523: error: âBUFFâ undeclared (first use in this function)
mod_suphp.c:523: error: âscript_inâ undeclared (first use in this function)
mod_suphp.c:523: error: âscript_outâ undeclared (first use in this function)
mod_suphp.c:523: error: âscript_errâ undeclared (first use in this function)
mod_suphp.c:527: error: âsuphp_moduleâ undeclared (first use in this function)
mod_suphp.c:539: error: âsuphp_confâ has no member named âhandlersâ
mod_suphp.c:539: warning: comparison between pointer and integer
mod_suphp.c:540: error: âsuphp_confâ has no member named âhandlersâ
mod_suphp.c:540: warning: comparison between pointer and integer
mod_suphp.c:541: error: âsuphp_confâ has no member named âhandlersâ
mod_suphp.c:541: error: invalid type argument of âunary *â
mod_suphp.c:544: error: âsuphp_confâ has no member named âhandlersâ
mod_suphp.c:544: error: invalid type argument of âunary *â
mod_suphp.c:563: warning: passing argument 5 of âap_log_rerror_â makes integer from pointer without a cast
mod_suphp.c:563: warning: passing argument 6 of âap_log_rerror_â from incompatible pointer type
mod_suphp.c:567: warning: passing argument 5 of âap_log_rerror_â makes integer from pointer without a cast
mod_suphp.c:567: warning: passing argument 6 of âap_log_rerror_â from incompatible pointer type
mod_suphp.c:571: warning: passing argument 5 of âap_log_rerror_â makes integer from pointer without a cast
mod_suphp.c:571: warning: passing argument 6 of âap_log_rerror_â from incompatible pointer type
mod_suphp.c:587: warning: initialization makes pointer from integer without a cast
mod_suphp.c:596: warning: assignment makes pointer from integer without a cast
mod_suphp.c:597: error: dereferencing pointer to incomplete type
mod_suphp.c:599: warning: assignment makes pointer from integer without a cast
mod_suphp.c:600: error: dereferencing pointer to incomplete type
mod_suphp.c:602: warning: assignment makes pointer from integer without a cast
mod_suphp.c:620: warning: passing argument 5 of âap_log_rerror_â makes integer from pointer without a cast
mod_suphp.c:620: warning: passing argument 6 of âap_log_rerror_â from incompatible pointer type
mod_suphp.c:620: error: too few arguments to function âap_log_rerror_â
mod_suphp.c:649: warning: assignment makes pointer from integer without a cast
mod_suphp.c:658: warning: assignment makes pointer from integer without a cast
mod_suphp.c:659: warning: assignment makes pointer from integer without a cast
mod_suphp.c:690: error: âkill_after_timeoutâ undeclared (first use in this function)
mod_suphp.c:693: warning: passing argument 5 of âap_log_rerror_â makes integer from pointer without a cast
mod_suphp.c:693: warning: passing argument 6 of âap_log_rerror_â from incompatible pointer type
mod_suphp.c:742: warning: assignment makes pointer from integer without a cast
mod_suphp.c:755: warning: assignment makes pointer from integer without a cast
mod_suphp.c:768: error: âREDIRECTâ undeclared (first use in this function)
mod_suphp.c: At top level:
mod_suphp.c:789: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before âsuphp_handlersâ
mod_suphp.c:798: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before âsuphp_moduleâ
make[3]: *** [mod_suphp.lo] Error 1
make[3]: Leaving directory `/root/suphp-0.7.1/src/apache'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/root/suphp-0.7.1/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/root/suphp-0.7.1/src'
make: *** [all-recursive] Error 1
--
Regards
Jaseem