end0tknr's kipple - web写経開発

太宰府天満宮の狛犬って、妙にカワイイ

xml-security-c-1.7.2のmakeで relocation R_X86_64_32S against エラー

$ wget http://ftp.kddilabs.jp/infosystems/apache/santuario/c-library/xml-security-c-1.7.2.tar.gz
$ tar -zxvf xml-security-c-1.7.2.tar.gz
$ cd xml-security-c-1.7.2
$ ./configure --with-openssl=/usr/local/openssl
$ make
  :
/usr/bin/ld: /usr/local/openssl/lib/libcrypto.a(mem.o): relocation R_X86_64_32S against `.text' can not be used when making a shared object; recompile with -fPIC
/usr/local/openssl/lib/libcrypto.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[2]: *** [libxml-security-c.la] Error 1
make[2]: Leaving directory `/home/endo/tmp/xml-security-c-1.7.2/xsec'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/endo/tmp/xml-security-c-1.7.2'
make: *** [all] Error 2
[endo@cent62 xml-security-c-1.7.2]$ make -fPIC
make: PIC: No such file or directory
make: *** No rule to make target `PIC'.  Stop.
$

openssl 0.9.8のconfigオプションの影響らしい。
openssl config で「shared」を追加し、解消

$ ./config --prefix=/usr/local/openssl shared
$ make
$ make test
$ su 
# make install