PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Nachträgliche Moduleinbindung



Silverfang
10.10.02, 14:48
Hallo auch,

Erst mal Sorry für den Fall das des hier im falschen Bereich steht und nochmal weil s eigentlich eher innen PHP Board gehören würde wahrscheinlich, weiß auch nicht aber ich hab hier ein recht großes Problem, groß in sofern das ichs GARNICHT versteh was der von mir will und auch Niemanden mal so eben fragen kann. Wär also nett wenn ihr s lesen würdet...

ich habe folgendes Problem mit einem SuSE Linux 7,2 Server :
Innerhalb einer bereits kompilierten PHP Version, soll ein Modul nachträglich eingebunden werden (Imap). Meinem Erfahrungsstand nach ist dies eigentlich nicht so problematisch da man hier zu einfach nur nochmals den Configure String den man bereits hat mit der Erweiterung die man einbauen will abrufen muss , nachdem man den config.cache entfernt hat, dann make, make install (ggf vorher noch n make clean? nachem configure)

Soweit die Theorie, in der Praxis kommt nun aber nach dem Abruf des Config Strings :

./configure --bindir=/usr/bin --datadir=/usr/share/php --enable-discard-path --enable-force-cgi-redirect --enable-ftp --enable-magic-quotes --enable-sockets --enable-sysvsem --enable-sysvshm --enable-track-vars=yes --enable-trans-sid --enable-versioning --enable-wddx --enable-yp --with-apxs=/usr/sbin/apxs --with-config-file-path=/etc --with-exec-dir=/usr/lib/php/bin --with-gd=/usr/local/typo3sh --with-gettext --with-jpeg-dir --with-mysql=/usr --with-png-dir --with-readline --with-tiff-dir --with-ttf=/usr/local/typo3sh --with-xml --with-zlib=yes --enable-gd-native-ttf --with-imap=yes --with-imap-ssl

erst einmal die Bestätigung das alles glatt lief und dieses Thank You for using PhP etc...

Bis dahin ist noch alles in Ordnung. Jedoch jetzt beim folgenden Make - Schritt meldet er diesen Fehler hier, mit dem ich so richtig garnichts mehr anzufangen weiß :
/usr/i486-suse-linux/bin/ld: cannot find -lcrypto
collect2: ld returned 1 exit status
make[1]: *** [libphp4.la] Error 1
make[1]: Leaving directory `/usr/src/packages/BUILD/php-4.2.3'
make: *** [all-recursive] Error 1


Kann mir wer dabei helfen?

zander
10.10.02, 15:07
Nach libcrypto wird vermutlich wegen '-- with-imap-ssl' verlangt, Du musst z.B. das OpenSSL Entwicklerpaket installieren.

Silverfang
10.10.02, 15:10
Hatte am Anfang with-ssl garnicht drinn gehabt und da maulte er was von wegen das das System für Sicherheitsmodus konfiguriert wäre (oder sowas in der Art wars) und ich deshalb --with-ssl einbaun soll. Darum is das eigentlich auch nur drinn.

Das mit dem SSLdev Kit ist n guter Tip, das hab ich naemlich NICHT drauf (weiß ich) , hoffen wir mal das es daran liegt, wenn nicht post ich gleich hier noch mal.

Thx für die schnelle Antwort

zander
10.10.02, 15:17
Gern geschehen.

Silverfang
10.10.02, 15:35
Hrm....

Also nach install von der Openssl-devel konnt ich das alles ohne Probs durch ziehn wie du scho recht vermutet hattest.

Jetzt hab ich grad den Apache restartet und dabei kam das hier :

Syntax error on line 14 of /etc/httpd/suse_loadmodule.conf:
Cannot load /usr/lib/apache/libphp4.so into server: /usr/lib/libc-client.so: undefined symbol: pam_end

Syntax Error inner Mod.conf???

Was den da jetzt?


P.S.
In Zeile 14 steht der mod_php include Eintrag

Silverfang
11.10.02, 09:56
Sooo dalle,

hab des Rätsels Lösung gefunden und posts mal hier rüber, für den Fall das noch wer mal das gleiche Prob haben sollte.

Das ganze lag am fehlendem Pam_Devel Paket. Ich poste hier mal den original Text von der PHP.NET Seite rein, der mir weiter geholfen hat.


************************************************** *********************
31-Jan-2002 11:02
Here’s how I installed php4.1.1 with mysql and imap support for apache 1.3.19. I hope it help you.

I used:
./configure --with-apxs=/usr/local/apache/bin/apxs --with-mysql --with-imap --with-kerberos --with-imap-ssl

and it worked fine but i got this error during make:

/usr/bin/ld: cannot find -lgssapi_krb5
collect2: ld returned 1 exit status
make[1]: *** [libphp4.la] Error 1
make[1]: Leaving directory `/root/tars/php-4.1.1'
make: *** [all-recursive] Error 1
When exporting env vars (export LDFLAGS="-L/usr/kerberos/lib -lkrb5 -lgssapi_krb5 -lpam") i get: checking whether the C compiler (gcc -L/usr/kerberos/lib -lkrb5 -lgssapi_krb5 -lpam) works... no

configure: error: installation or configuration problem: C compiler cannot create executables.

Obviously, this didn’t work, I simply installed krb5-devel and reinstalled without exporting the env var.

This allowed me to compile successfully, but when I started apache I got

Cannot load /usr/local/apache/libexec/libphp4.so into server: undefined symbol:pam_end

I checked to make sure the libraries were linked properly:

The cause for this was not having libpam_devel installed. Make sure that if you clear config.cache and run make clean after configure.

Install krb5-devel
Install libpam –devel
ldconfig
./configure --with-apxs=/usr/local/apache/bin/apxs --with-mysql --with-imap --with-kerberos --with-imap-ssl

make clean
make
make install

if you come into any other errors, try installing the devel packages and recompiling don’t forget to remove config.cache before each compile attempt.
************************************************** *********************


Greets,
-Silverfang-