Erstmal schonmal vielen Dank für die Mühe die du dir gemacht hast. Habe suPHP nun in der VMWare Umgebung mit OpenSuse 10.2 auch kompiliert bekommen.
Aber leider will das nicht auf dem richtigem Server klappen. die beiden Outputs vom configure Befehl habe ich schon gegenüber gestellt, beide gleich.
Code: Select all
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 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 ANSI C... 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... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for a sed that does not truncate output... /usr/bin/sed
checking for egrep... grep -E
checking for ld used by gcc... /usr/i586-suse-linux/bin/ld
checking if the linker (/usr/i586-suse-linux/bin/ld) is GNU ld... yes
checking for /usr/i586-suse-linux/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 recognise 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 f77... no
checking for xlf... no
checking for frt... no
checking for pgf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for f90... no
checking for xlf90... no
checking for pgf90... no
checking for epcf90... no
checking for f95... no
checking for fort... no
checking for xlf95... no
checking for ifc... no
checking for efc... no
checking for pgf95... no
checking for lf95... no
checking for gfortran... 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... 32768
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 for correct ltmain.sh version... yes
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/i586-suse-linux/bin/ld) 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/i586-suse-linux/bin/ld
checking if the linker (/usr/i586-suse-linux/bin/ld) is GNU ld... yes
checking whether the g++ linker (/usr/i586-suse-linux/bin/ld) 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/i586-suse-linux/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
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 /usr/sbin/apxs2 (version 2.2.0)
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: src/config.h is unchanged
config.status: executing depfiles commands
Sobald ich aber auf dem richtigen Server make aufrufe schmeißt er sofort die ersten Fehler und bricht dann ab.
Code: Select all
Making all in src
make[1]: Entering directory `/root/downloads/suphp-0.6.2/src'
make all-recursive
make[2]: Entering directory `/root/downloads/suphp-0.6.2/src'
Making all in apache2
make[3]: Entering directory `/root/downloads/suphp-0.6.2/src/apache2'
if /bin/sh ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../../src -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -I/usr/include/apache2 -I/usr/include -pthread -DSUPHP_PATH_TO_SUPHP="/usr/local/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;
then mv -f ".deps/mod_suphp.Tpo" ".deps/mod_suphp.Plo"; else rm -f ".deps/mod_suphp.Tpo"; exit 1; fi
gcc -DHAVE_CONFIG_H -I. -I. -I../../src -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -I/usr/include/apache2 -I/usr/include -pthread -DSUPHP_PATH_TO_SUPHP="/usr/local/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:24:25: error: apr_buckets.h: No such file or directory
In file included from /usr/include/apache2/httpd.h:43,
from mod_suphp.c:29:
/usr/include/apache2/ap_config.h:26:23: error: apr_hooks.h: No such file or directory
/usr/include/apache2/ap_config.h:27:32: error: apr_optional_hooks.h: No such file or directory
In file included from mod_suphp.c:29:
/usr/include/apache2/httpd.h:54:25: error: apr_buckets.h: No such file or directory
/usr/include/apache2/httpd.h:723:21: error: apr_uri.h: No such file or directory
In file included from mod_suphp.c:29:
/usr/include/apache2/httpd.h:925: error: expected specifier-qualifier-list before 'apr_uri_t'
/usr/include/apache2/httpd.h:1085: error: expected specifier-qualifier-list before 'APR_RING_ENTRY'
/usr/include/apache2/httpd.h:1199: error: expected specifier-qualifier-list before 'apr_bucket_brigade'
/usr/include/apache2/httpd.h:1207: error: expected specifier-qualifier-list before 'apr_bucket_brigade'
In file included from mod_suphp.c:30:
/usr/include/apache2/http_config.h:975: error: expected ')' before 'int'
In file included from /usr/include/apache2/http_core.h:30,
from mod_suphp.c:31:
/usr/include/apr_hash.h:77: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
/usr/include/apr_hash.h:85: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
/usr/include/apr_hash.h:95: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
/usr/include/apr_hash.h:106: error: expected ')' before '*' token
/usr/include/apr_hash.h:116: error: expected ')' before '*' token
/usr/include/apr_hash.h:147: error: expected declaration specifiers or '...' before 'apr_hash_t'
/usr/include/apr_hash.h:174: error: expected ')' before '*' token
/usr/include/apr_hash.h:185: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
/usr/include/apr_hash.h:203: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
/usr/include/apr_hash.h:217: error: expected ';', ',' or ')' before '*' token
In file included from mod_suphp.c:31:
/usr/include/apache2/http_core.h:31:26: error: apr_optional.h: No such file or directory
In file included from /usr/include/apache2/http_core.h:32,
from mod_suphp.c:31:
/usr/include/apache2/util_filter.h:137: error: expected declaration specifiers or '...' before 'apr_bucket_brigade'
/usr/include/apache2/util_filter.h:139: error: expected declaration specifiers or '...' before 'apr_bucket_brigade'
/usr/include/apache2/util_filter.h:141: error: expected declaration specifiers or '...' before 'apr_read_type_e'
/usr/include/apache2/util_filter.h:296: error: expected declaration specifiers or '...' before 'apr_bucket_brigade'
/usr/include/apache2/util_filter.h:298: error: expected declaration specifiers or '...' before 'apr_read_type_e'
/usr/include/apache2/util_filter.h:310: error: expected declaration specifiers or '...' before 'apr_bucket_brigade'
/usr/include/apache2/util_filter.h:492: error: expected declaration specifiers or '...' before 'apr_bucket_brigade'
/usr/include/apache2/util_filter.h:493: error: expected declaration specifiers or '...' before 'apr_bucket_brigade'
/usr/include/apache2/util_filter.h:503: error: expected ')' before '*' token
/usr/include/apache2/util_filter.h:511: error: expected declaration specifiers or '...' before 'apr_bucket_brigade'
/usr/include/apache2/util_filter.h:548: error: expected declaration specifiers or '...' before 'apr_bucket_brigade'
/usr/include/apache2/util_filter.h:559: error: expected declaration specifiers or '...' before 'apr_bucket_brigade'
/usr/include/apache2/util_filter.h:562: error: format string argument not a string type
In file included from mod_suphp.c:31:
/usr/include/apache2/http_core.h:529: error: expected specifier-qualifier-list before 'apr_hash_t'
/usr/include/apache2/http_core.h:609: error: expected declaration specifiers or '...' before 'apr_bucket_brigade'
/usr/include/apache2/http_core.h:610: error: expected declaration specifiers or '...' before 'apr_read_type_e'
/usr/include/apache2/http_core.h:612: error: expected declaration specifiers or '...' before 'apr_bucket_brigade'
/usr/include/apache2/http_core.h:633: error: expected specifier-qualifier-list before 'apr_hash_t'
/usr/include/apache2/http_core.h:662: error: expected ')' before 'int'
/usr/include/apache2/http_core.h:680: error: expected declaration specifiers or '...' before 'ap_ident_lookup'
/usr/include/apache2/http_core.h:681: error: expected declaration specifiers or '...' before '(' token
/usr/include/apache2/http_core.h:681: warning: data definition has no type or storage class
In file included from mod_suphp.c:32:
/usr/include/apache2/http_log.h:335: error: expected ')' before 'void'
In file included from mod_suphp.c:34:
/usr/include/apache2/util_script.h:104: error: expected declaration specifiers or '...' before 'apr_bucket_brigade'
In file included from mod_suphp.c:38:
/usr/include/apache2/unixd.h:57: error: expected ')' before 'ap_unix_identity_t'
/usr/include/apache2/unixd.h:75: warning: data definition has no type or storage class
/usr/include/apache2/unixd.h:76: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'unixd_config'
mod_suphp.c:66: error: expected declaration specifiers or '...' before 'apr_bucket_brigade'
mod_suphp.c: In function 'suphp_brigade_read':
mod_suphp.c:71: error: 'apr_bucket' undeclared (first use in this function)
mod_suphp.c:71: error: (Each undeclared identifier is reported only once
mod_suphp.c:71: error: for each function it appears in.)
mod_suphp.c:71: error: 'b' undeclared (first use in this function)
mod_suphp.c:81: error: 'bb' undeclared (first use in this function)
mod_suphp.c:85: error: 'APR_BLOCK_READ' undeclared (first use in this function)
mod_suphp.c: At top level:
mod_suphp.c:336: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'bucket_type_suphp'
mod_suphp.c:343: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
mod_suphp.c:379: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
mod_suphp.c:394: error: expected ')' before '*' token
mod_suphp.c:430: error: expected ')' before '*' token
mod_suphp.c:475: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'bucket_type_suphp'
mod_suphp.c:486: error: expected ')' before '*' token
mod_suphp.c: In function 'suphp_handler':
mod_suphp.c:540: error: 'apr_bucket_brigade' undeclared (first use in this function)
mod_suphp.c:540: error: 'bb' undeclared (first use in this function)
mod_suphp.c:541: error: 'apr_bucket' undeclared (first use in this function)
mod_suphp.c:541: error: 'b' undeclared (first use in this function)
mod_suphp.c:547: error: 'request_rec' has no member named 'per_dir_config'
mod_suphp.c:548: error: 'request_rec' has no member named 'per_dir_config'
mod_suphp.c:598: warning: assignment makes pointer from integer without a cast
mod_suphp.c:699: warning: assignment makes pointer from integer without a cast
mod_suphp.c:758: error: 'bucket' undeclared (first use in this function)
mod_suphp.c:759: error: 'request_rec' has no member named 'input_filters'
mod_suphp.c:759: error: 'APR_BLOCK_READ' undeclared (first use in this function)
mod_suphp.c:759: error: too many arguments to function 'ap_get_brigade'
mod_suphp.c:813: error: too many arguments to function 'suphp_brigade_read'
mod_suphp.c:826: error: too many arguments to function 'ap_scan_script_header_err_brigade'
mod_suphp.c:869: error: 'request_rec' has no member named 'output_filters'
mod_suphp.c:869: error: too many arguments to function 'ap_pass_brigade'
mod_suphp.c:887: error: 'request_rec' has no member named 'proto_output_filters'
mod_suphp.c:892: error: 'request_rec' has no member named 'output_filters'
mod_suphp.c:892: error: 'request_rec' has no member named 'proto_output_filters'
mod_suphp.c:896: error: 'request_rec' has no member named 'output_filters'
mod_suphp.c:896: error: too many arguments to function 'ap_pass_brigade'
mod_suphp.c: In function 'suphp_register_hooks':
mod_suphp.c:910: error: 'APR_HOOK_MIDDLE' undeclared (first use in this function)
make[3]: *** [mod_suphp.lo] Fehler 1
make[3]: Leaving directory `/root/downloads/suphp-0.6.2/src/apache2'
make[2]: *** [all-recursive] Fehler 1
make[2]: Leaving directory `/root/downloads/suphp-0.6.2/src'
make[1]: *** [all] Fehler 2
make[1]: Leaving directory `/root/downloads/suphp-0.6.2/src'
make: *** [all-recursive] Fehler 1
Ich denke mal das er einige APR Header files nicht findet, so wie es der Output vom Make Befehl anzeigt. Allerdings sind die Header Dateien vorhanden, und das auf beiden System am gleichen Ort. Habe die ersten paar Dateien mal gesucht und sie auf beiden Systemen an folgendem Ort gefunden.
Code: Select all
c024:/ # find -noleaf -name apr_buckets.h
./usr/include/apr-1/apr_buckets.h
./usr/src/debug/apr-util-1.2.2/include/apr_buckets.h
c024:/ # find -noleaf -name apr_hooks.h
./usr/include/apr-1/apr_hooks.h
c024:/ # find -noleaf -name apr_optional_hooks.h
./usr/include/apr-1/apr_optional_hooks.h
Warum nun das kompilieren auf dem richtigen Server nicht klappt kann ich mir im Moment nicht erklären.
Kann mir nicht vorstellen das es nur an den verschiedenen Versionen von Apache und er APT liegt (10.1 zu 10.2).
Vielleicht hat ja noch jemand von euch einen Ratschlag, wie ich das Lösen kann. :?
Gruß
Markus