LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Syck doesn't want to compile (https://www.linuxquestions.org/questions/linux-server-73/syck-doesnt-want-to-compile-747108/)

centosfan 08-12-2009 04:26 PM

Syck doesn't want to compile
 
I need to install syck with command pecl install syck or with make/make install tgz file.But in both cases i get same error:
/usr/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 statu

Also there is one warning:
configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
I found solution on some german blog which say how this need to be done:
~/syck-0.55 # export CFLAGS=-fPIC; ./configure; make

But still same error after applying this one.
I tried this on syck-0.55(which is syck libralies) and on syck0.9.3
(which is same as command pecl install syck-beta)
Any idea what i missed?

knudfl 08-13-2009 12:00 PM

If you want the shared lib = libsyck.so.0 -> libsyck.so.0.0.55
and libsyck.so ( -> libsyck.so.0.0.55 ) .....
syck-0.55-4.el5.rf.i386.rpm , syck-devel-0.55-4.el5.rf.i386.rpm

... then the packages are available from the 'rpmforge.repo'
http://packages.sw.be/rpmforge-relea...l5.rf.i386.rpm

Direct links :
http://ftp.belnet.be/packages/dries....l5.rf.i386.rpm
http://ftp.belnet.be/packages/dries....l5.rf.i386.rpm

The result of 'yum search syck' :
Code:

perl-YAML-Parser-Syck.i386 : Wrapper for the YAML Parser Extension: libsyck
perl-YAML-Parser-Syck-debuginfo.i386 : Debug information for package perl-YAML-Parser-Syck
perl-YAML-Syck-debuginfo.i386 : Debug information for package perl-YAML-Syck
php-syck.i386 : YAML module for php
syck-devel.i386 : Extension for reading and writing YAML
syck.i386 : Extension for reading and writing YAML
python-syck.i386 : YAML module for python
perl-YAML-Syck.i386 : Fast, lightweight YAML loader and dumper
perl-YAML-Syck.i386 : Fast, lightweight YAML loader and dumper
syck-debuginfo.i386 : Debug information for package syck



All times are GMT -5. The time now is 05:04 PM.