wer hier öfters vorbeischaut, dürfte mitbekommen haben, daß ich Probleme hatte, überhaupt apache mit php zum Laufen zu bringen (naja, eigentlich lief ja alles, nur nicht so wie ich´s mir vorgestellt hatte
![Wink ;-)](./images/smilies/icon_wink.gif)
![Wink ;-)](./images/smilies/icon_wink.gif)
So. Jetzt versuche ich php statisch zu apache zu linken, und meine letzte hoffnung war die php-doku...ich habe mich an deren vorgabe gehalten, und noch einige andere switches gesetzt; das Problem ist, dass ich bei --activate-module den Pfad zur "php4-Moduldatei" angeben soll...in der doku wird beschrieben :
für PHP 3: ./configure --activate-module=src/modules/php3/libphp3.a
für PHP 4: ./configure --activate-module=src/modules/php4/libphp4.a
Es macht mir Angst, festzustellen, daß sich unter dem pfad "src/modules/php4/" mehrere lib*-dateien befinden, ABER KEINE LIBPHP4.A !!!
Dort gibt es :
libmodphp4.a Makefile.libdir mod_php4.c mod_php4.h mod_php4.o
libphp4.module Makefile.tmpl mod_php4.exp mod_php4.lo
So, die ganzen mod-teile hab ich mal vernachlässigt
![Wink ;-)](./images/smilies/icon_wink.gif)
Configuring for Apache, Version 1.3.27
+ using installation path layout: Apache (config.layout)
+ activated php4 module (modules/php4/libphp4.a)
Creating Makefile
Creating Configuration.apaci in src
+ enabling mod_so for DSO support
Creating Makefile in src
+ configured for Linux platform
+ setting C compiler to gcc
+ setting C pre-processor to gcc -E
+ checking for system header files
+ adding selected modules
o rewrite_module uses ConfigStart/End
+ using -ldb1 for DBM support
enabling DBM support for mod_rewrite
o dbm_auth_module uses ConfigStart/End
o php4_module uses ConfigStart/End
+ using system Expat
+ using -ldl for vendor DSO support
+ checking sizeof various data types
+ doing sanity check on compiler and options
** A test compilation with your Makefile configuration
** failed. The below error output from the compilation
** test will give you an idea what is failing. Note that
** Apache requires an ANSI C Compiler, such as gcc.
======== Error Output for sanity check ========
cd ..; gcc -DLINUX=22 -I/usr/include/db1 `./apaci` -o helpers/dummy helpers/dummy.c -Wl,-rpath,/usr/lib/mysql -rdynamic -L/usr/lib/mysql -Lmodules/php4 -L../modules/php4 -L../../modules/php4 -lmodphp4 -export-symbols /usr/local/src/lamp/php-4.3.0/sapi/apache/php.sym -rdynamic -L/usr/lib/mysql -lpanel -lncurses -lmysqlclient -lgmp -lgd -lgdbm -lcurl -lcrypt -ldmalloc -lresolv -lm -ldl -lnsl -lcrypt -lcurl -lssl -lcrypto -ldl -lm -lcrypt -ldb1 -lexpat -ldl
/usr/bin/ld:/usr/local/src/lamp/php-4.3.0/sapi/apache/php.sym: file format not recognized; treating as linker script
/usr/bin/ld:/usr/local/src/lamp/php-4.3.0/sapi/apache/php.sym:2: parse error
collect2: ld returned 1 exit status
make: *** [dummy] Error 1
============= End of Error Report =============
Aborting!
Ok, ich kann mir einiges denken, aber nix genaues weiss ich nicht; hängt es mit mysql zusammen ?? Welche Datei soll ich angeben, um php statisch mit apache zu kompilieren ? Ich meine, ich kann ja weiterraten, aber das hat mich jetzt erstmal von den Socken gehauen, daß das Beispiel von http://www.php.net/manual/de/install.apache.php nicht möglich ist, weil diese Datei (noch ?) garnet existiert ....