Donnerstag, 24. Januar 2008
PHP, ssh2 und OSX
Geschrieben von Harald Lapp in PHP um 09:16
Als Merkhilfe für mich:
Problem:
pecl ssh2 0.10 lässt sich nicht compilieren.
Wie im PHP Bug Tracker beschrieben, muss ssh2.c editiert und folgendermassen geändert werden:
- #if LIBSSH2_APINO < 200412301450
+ #if LIBSSH2_VERSION_NUM < 0x001000
Der Patch wurde bereits Anfang August letzten Jahres im Bug Tracker veröffentlicht - ich frage mich, warum er es noch immer nicht in ein neues Release der ssh2 extension geschafft hat ...
Mittwoch, 23. Januar 2008
PHP, syck und SuSE 64bit
Geschrieben von Harald Lapp in PHP um 14:39
Als Merkhilfe für mich:
Problem:
~/syck-0.9.2 # make
[...]
gcc -shared .libs/phpext.o -L/usr/local/lib -lsyck -Wl,-rpath -Wl,/usr/local/lib -Wl,-soname -Wl,syck.so -o .libs/syck.so
/usr/lib64/gcc/x86_64-suse-linux/4.2.1/../../../../x86_64-suse-linux/bin/ld: /usr/local/lib/libsyck.a(emitter.o): relocation R_X86_64_32S against `a local symbol' can not be used when making a shared object; recompile with -fPIC
/usr/local/lib/libsyck.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make: *** [syck.la] Error 1
Wie in der Fehlermeldung ersichtlich sollte syck mit -fPIC neu compiliert werden:
~/syck-0.55 # export CFLAGS=-fPIC; ./configure; make
Danach sollte sich das syck modul ohne weitere Probleme installieren lassen.




