suphp 0.6.2 Configure fehler

Apache, Lighttpd, nginx, Cherokee
schluffi
Posts: 75
Joined: 2005-10-17 19:26

suphp 0.6.2 Configure fehler

Post by schluffi » 2007-07-02 11:36

Hallo Forum,

ich versuche gerade auf einem Suse 10.1 suphp 0.6.2 für php 5.2.1 zu backen.

Der Configure ist wie folgt:

Code: Select all

./configure  --sysconfdir=/etc --with-apxs=/usr/sbin/apxs2 --with-min-uid=500 --with-min-gid=500 --with-apache-user=wwwrun --with-php=/opt/php5.2.1-fastcgi/bin/php --with-setid-mode=owner --with-logfile=/var/log/apache2/suPHP.log --with-apr=/usr/bin/apr-1-config
Das ganze läuft so ab und endet aprupt:

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... 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 egrep... grep -E
checking for ld used by gcc... /usr/x86_64-suse-linux/bin/ld
checking if the linker (/usr/x86_64-suse-linux/bin/ld) is GNU ld... yes
checking for /usr/x86_64-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/x86_64-suse-linux/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/x86_64-suse-linux/bin/ld -m elf_x86_64
checking if the linker (/usr/x86_64-suse-linux/bin/ld -m elf_x86_64) is GNU ld... yes
checking whether the g++ linker (/usr/x86_64-suse-linux/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/x86_64-suse-linux/bin/ld -m elf_x86_64) 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 owner
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
make endet natürlich auch fehlerhaft. hab den ganzen Morgen mit googlen verbracht, ausser eine Lösung das file src/apache2/Makefile.in zu ändern, was allerdings nichts gebracht hat, habe ich leider nichts verwertbares gefunden.

Kann mir da einer weiterhelfen?

Danke und Gruß Manfred

Roger Wilco
Administrator
Administrator
Posts: 5924
Joined: 2004-05-23 12:53

Re: suphp 0.6.2 Configure fehler

Post by Roger Wilco » 2007-07-02 12:07

Wo siehst du da einen Fehler?

schluffi
Posts: 75
Joined: 2005-10-17 19:26

Re: suphp 0.6.2 Configure fehler

Post by schluffi » 2007-07-02 12:58

Code: Select all

Making all in src
make[1]: Entering directory `/temp/suphp-0.6.2/src'
make  all-recursive
make[2]: Entering directory `/temp/suphp-0.6.2/src'
Making all in apache2
make[3]: Entering directory `/temp/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  -I/usr/include/apache2 -I/usr/include -pthread -DSUPHP_PATH_TO_SUPHP="/usr/local/sbin/suphp"  -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 -I/usr/include/apache2 -I/usr/include -pthread -DSUPHP_PATH_TO_SUPHP="/usr/local/sbin/suphp" -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: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 `/temp/suphp-0.6.2/src/apache2'
make[2]: *** [all-recursive] Fehler 1
make[2]: Leaving directory `/temp/suphp-0.6.2/src'
make[1]: *** [all] Fehler 2
make[1]: Leaving directory `/temp/suphp-0.6.2/src'
make: *** [all-recursive] Fehler 1
Da hat was gefehlt, das ist das ergebnis von make.

Roger Wilco
Administrator
Administrator
Posts: 5924
Joined: 2004-05-23 12:53

Re: suphp 0.6.2 Configure fehler

Post by Roger Wilco » 2007-07-02 13:04

Dir fehlen die Entwicklerpakete für den Apache httpd bzw. APR.

schluffi
Posts: 75
Joined: 2005-10-17 19:26

Re: suphp 0.6.2 Configure fehler

Post by schluffi » 2007-07-02 13:14

Apache2 und dev sind drauf.

für apr ist das libapr0 installiert, weitere Pakete finde ich in yast keine. Sollte das dann ein libapr0-dev sein?

Danke für Deine Mühe

Roger Wilco
Administrator
Administrator
Posts: 5924
Joined: 2004-05-23 12:53

Re: suphp 0.6.2 Configure fehler

Post by Roger Wilco » 2007-07-02 13:17


schluffi
Posts: 75
Joined: 2005-10-17 19:26

Re: suphp 0.6.2 Configure fehler

Post by schluffi » 2007-07-02 14:15

Kurios, diese Pakete sind beide installiert...

schluffi
Posts: 75
Joined: 2005-10-17 19:26

Re: suphp 0.6.2 Configure fehler

Post by schluffi » 2007-07-02 14:31

Ok, hier nochmal:

Code: Select all

 │  i  │libapr-util1          │1.2.2        │1.2.2      │Apache Portable Runtime (APR) Bibliothek│   148.9 K│                                                                   │
 │  i  │libapr-util1-debuginfo│1.2.2        │1.2.2      │Apache Portable Runtime (APR) Bibliothek│   936.2 K│                                                                   │
 │  i  │libapr-util1-devel    │1.2.2        │1.2.2      │Apache Portable Runtime (APR) Bibliothek│     2.2 M│                                                                   │
 │  i  │libapr1               │1.2.2        │1.2.2      │Apache Portable Runtime (APR) Bibliothek│   258.9 K│                                                                   │
 │  i  │libapr1-debuginfo     │1.2.2        │1.2.2      │Apache Portable Runtime (APR) Bibliothek│     1.6 M│                                                                   │
 │  i  │libapr1-devel         │1.2.2        │1.2.2      │Apache Portable Runtime (APR) Bibliothek│     4.7 M│                                                                   │
 │                                                                                                                                                                              │
sowie

Code: Select all

 │  i  │apache2                         │2.2.0        │2.2.0      │The Apache Web Server Version 2.0                                                         │     2.8 M│       │
 │     │apache2-debuginfo               │2.2.0        │           │The Apache Web Server Version 2.0                                                         │    15.3 M│       │
 │  i  │apache2-devel                   │2.2.0        │2.2.0      │Apache 2.0 Header- und Include-Dateien                                                    │   600.8 K│       │

schluffi
Posts: 75
Joined: 2005-10-17 19:26

Re: suphp 0.6.2 Configure fehler

Post by schluffi » 2007-07-02 16:55

Kurios, obwohl alle devs installiert waren hat es erst funktionert nachdem alle apr* und apu*. files nach /usr/include/apache2 kopiert worden sind. ein --includedir=/*** auf das verzeichniss wo die headerfiles waren hat er genauso ingoriert wie alles andere auf.

Auf jeden Fall läuft suphp nun für den vhost und alle sind Glücklich. Danke Dir Roger dennoch für deine Unterstützung!

Gruß Manfred