[gelößt] suPHP Installitionsprobleme

Apache, Lighttpd, nginx, Cherokee
acepilot
Posts: 86
Joined: 2003-07-30 17:42

[gelößt] suPHP Installitionsprobleme

Post by acepilot » 2006-12-22 14:36

Hallo zusammen,

Wende mich heut emal mit einer Frage an euch, die ich bisher durch googeln und suchen im Netz nicht lösen konnte.

Habe die Tage meine Daten vom neuen Server bekommen. Installiert ist Suse 10.1 (32 Bit) mit Confixx3.

Weiterhin handelt es sich um Apache mit PHP5.

Die suPHP Sourcen habe ich von suphp.org gezogen.

Bei dem Versuch den Server mit suphp 0.6.2 zu versehen mußte ich erstmal feststellen, dass das Apache devel Paket nicht installiert war, also eben nachinstalliert. 8)

Leider schlägt der Versuch die Sourcen zu kompilieren immer fehl. :?

Code: Select all

./configure --with-min-uid=30 --with-min-gid=30 --with-apache-user=wwwrun --with-php=/usr/bin/php5 --with-logfile=/var/log/apache/suphp.log --with-apxs=/usr/sbin/apxs2
Der Configure Befehl wirft folgendes raus.

Code: Select all

...
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... no
checking for dynamic Apache module support (via APXS)... found at /usr/sbin/apxs2 (version 2.2.0)
configure: error: APR is needed to build mod_suphp for Apache 2.x but was not found
Wenn ich das richtig sehe ist mit APR doch die Apache Portable Runtime Bibliothek gemeint oder? Wenn das so ist verstehe ich nicht warum er meckert, denn die sind meiner Meinung nach alle installiert.

Code: Select all

libapr-util1
libapr-util1-devel
libapr1
libapr1-devel
Falls jemanden etwas auffallen sollte an das ich nicht gedacht habe, oder sonst irgendwelche Tips helfen könnten, wäre ich für die sehr dankbar.

Gruß
Markus
Last edited by acepilot on 2007-01-03 00:04, edited 1 time in total.

User avatar
Joe User
Project Manager
Project Manager
Posts: 11138
Joined: 2003-02-27 01:00
Location: Hamburg

Re: [gelößt] suPHP Installitionsprobleme

Post by Joe User » 2006-12-22 17:46

suPHP ist (noch?) nicht mit Apache 2.2.x kompatibel...
PayPal.Me/JoeUserFreeBSD Remote Installation
Wings for LifeWings for Life World Run

„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.

acepilot
Posts: 86
Joined: 2003-07-30 17:42

Re: [gelößt] suPHP Installitionsprobleme

Post by acepilot » 2006-12-22 18:27

Joe User wrote:suPHP ist (noch?) nicht mit Apache 2.2.x kompatibel...
Mmh das verstehe ich nicht so ganz, stimmt die Angabe auf der Website von suPHP nicht? Denn dort steht folgendes:

Code: Select all

suPHP 0.6.2 has been released.
The following problems have been fixed with this release: 
Double free() problem with certain versions of GCC 
Dead locked Apache processes when a script wrote more than 4096 bytes to stderr. 
Problems with PATH_INFO environment variable 
Features / improvements: 
Apache 2.2 compatibility 
(Basic) mod_userdir support 
Demnach sollte es doch Kompatible zu Apache 2.2.0 sein, oder gibt es dort noch Bugs, von denen ich nichts weiß? :roll:

Gruß
Markus

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

Re: [gelößt] suPHP Installitionsprobleme

Post by Roger Wilco » 2006-12-22 19:15

Joe User wrote:suPHP ist (noch?) nicht mit Apache 2.2.x kompatibel...
Seit Version 0.6.2 schon. Auch ohne Third-Party Patch.

@Acepilot: Schau in das Logfiles, welches das configure-Skript generiert. Da sollte drin stehen, was er genau braucht bzw. was er nicht findet.

acepilot
Posts: 86
Joined: 2003-07-30 17:42

Re: [gelößt] suPHP Installitionsprobleme

Post by acepilot » 2006-12-23 11:30

Mmh, ich denke du meinst das vom configure geschrieben config.log. Dort steht aber auch nicht viel drin was er nicht auch auf dem Schrim ausgeben würde. Das Script hängt halt weil er das APR nicht findet. EIn Auszug aus dem Logfile zeigt das ja auch.

Code: Select all

configure:19212: checking for APR
configure:19278: result: no
configure:19284: checking for dynamic Apache module support (via APXS)
configure:19342: result: found at /usr/sbin/apxs2 (version 2.2.0)
configure:19359: error: APR is needed to build mod_suphp for Apache 2.x but was not found
Wenn ich nun in das Configure script schaue ab Zeile 19212 sieht man, bzw. sollte man sehen was er sucht und benötigt.

Code: Select all

# Find apr-config


  apr_found="no"

  if test "$ac_cv_emxos2" = "yes"; then
    # Scripts don't pass test -x on OS/2
    TEST_X="test -f"
  else
    TEST_X="test -x"
  fi

  echo "$as_me:$LINENO: checking for APR" >&5
echo $ECHO_N "checking for APR... $ECHO_C" >&6

# Check whether --with-apr or --without-apr was given.
if test "${with_apr+set}" = set; then
  withval="$with_apr"

    if test "$withval" = "no" || test "$withval" = "yes"; then
      { { echo "$as_me:$LINENO: error: --with-apr requires a directory to be provided" >&5
echo "$as_me: error: --with-apr requires a directory to be provided" >&2;}
   { (exit 1); exit 1; }; }
    fi

    if $TEST_X "$withval/bin/apr-config"; then
      apr_found="yes"
      apr_config="$withval/bin/apr-config"
    elif $TEST_X "$withval/apr-config"; then
      apr_found="yes"
      apr_config="$withval/apr-config"
    elif $TEST_X "$withval/bin/apr-1-config"; then
      apr_found="yes"
      apr_config="$withval/bin/apr-1-config"
    elif $TEST_X "$withval/apr-1-config"; then
      apr_found="yes"
      apr_config="$withval/apr-1-config"
    elif $TEST_X "$withval" && $withval --help > /dev/null 2>&1 ; then
      apr_found="yes"
      apr_config="$withval"
    fi

        if test "$apr_found" != "yes"; then
      { { echo "$as_me:$LINENO: error: the --with-apr parameter is incorrect. It must specify an install prefix, a
build directory, or an apr-config file." >&5
echo "$as_me: error: the --with-apr parameter is incorrect. It must specify an install prefix, a
build directory, or an apr-config file." >&2;}
   { (exit 1); exit 1; }; }
    fi

else

        if test -d ""; then
      apr_temp_abs_srcdir="`cd  && pwd`"
      apr_found="reconfig"
      if test -n ""; then
        apr_config="/apr-config"
      else
        apr_config="/apr-config"
      fi
    fi
    if test "$apr_found" = "no" && test -n "1" && test "1" = "1"; then
      if apr-config --help > /dev/null 2>&1 ; then
        apr_found="yes"
        apr_config="apr-config"
      else
                for lookdir in /usr /usr/local /opt/apr /usr/local/apache2 ; do
          if $TEST_X "$lookdir/bin/apr-config"; then
            apr_found="yes"
            apr_config="$lookdir/bin/apr-config"
            break
          fi
        done
      fi
    fi

fi;

  echo "$as_me:$LINENO: result: $apr_found" >&5
echo "${ECHO_T}$apr_found" >&6
Die Frage die ich mir jetzt stelle, die für mich weder auf der suphp Seite noch in den mitgelieferten Readme's beantwortet wird ist was dieses APR aufsich hat, denn aus dem configure Script schließe ich das ich auch ohne APR suphp bauen kann, aber bevor ich was weglasse würde ich gern wissen um was es sich da handelt, und welches Paket es denn eigentlich sein sollte. :(

Gruß
Markus

acepilot
Posts: 86
Joined: 2003-07-30 17:42

Re: [gelößt] suPHP Installitionsprobleme

Post by acepilot » 2006-12-30 17:01

Mmh, ich muß nochmal fragen. Hat wirklich keiner eine Ahnung wodran das liegen könnte. Habe mittlerweile auch schon Opensuse 10.2 in einer VMWare Umgebung getestet mit dem selben Verhalten.

Verstehe es nicht das auf suPHP.org steht das apache 2.2.0 unterstüzt wird, aber das configure script schon scheitert. :evil:

Mittlerweile binich echt ratlos und weiß nicht mehr weiter.

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

Re: [gelößt] suPHP Installitionsprobleme

Post by Roger Wilco » 2006-12-31 15:49

Ok, ich habe das mal mit OpenSuSE 10.2 (x86_64) in einem VMWare-Container durchgespielt.
Zunächst brauchst du mal das Paket php5-fastcgi, denn unter /usr/bin/php5 liegt nur die CLI-Version von PHP. Das Binary liegt nach der Installation unter /srv/www/cgi-bin/php5.
Außerdem heißt das APR Binary (bzw. das entsprechende Config-Skript) unter OpenSuSE /usr/bin/apr-1-config.
Mit folgenden Kommandos funktioniert das Kompilieren von SuPHP:

Code: Select all

./configure --with-min-uid=30 --with-min-gid=30 --with-apache-user=wwwrun --with-php=/srv/www/cgi-bin/php5 --with-logfile=/var/log/apache2/suphp.log --with-apxs=/usr/sbin/apxs2 --with-apr=/usr/bin/apr-1-config && make && make install
BTW: Ich habe mit Freude zur Kenntnis genommen, dass die PHP5-Pakete von OpenSuSE 10.2 jetzt standardmäßig mit Suhosin gepatched werden.

acepilot
Posts: 86
Joined: 2003-07-30 17:42

Re: [gelößt] suPHP Installitionsprobleme

Post by acepilot » 2007-01-02 17:36

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

acepilot
Posts: 86
Joined: 2003-07-30 17:42

Re: [gelößt] suPHP Installitionsprobleme

Post by acepilot » 2007-01-02 19:22

Hallo zusammen,

wollte nur eben entwarnung geben. Das Problem hat sich gelößt. Und zwae befanden sich die oben beschriebenen Files im Verzeichniss /usr/lib/apr-1 und nicht dort wo sie gesucht wurden /usr/lib. Also Dateien eben dort reinkopiert und alles lief. :lol:

Troztdem nochmals vielen Dank für die tolle Hilfe :-D

Gruß
Markus