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.
Trackbacks
Trackback-URL für diesen Eintrag
Keine Trackbacks




