Linux WEB



64bit 에서 php 컴파일시 에러 메세지 발생 시 대처방법


메세지예)

/usr/bin/ld: /usr/local/ssl/lib/libssl.a(s2_srvr.o): relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/local/ssl/lib/libssl.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make: *** [libphp5.la] Error 1


방법)

openssl,php 컴파일시 아래 옵션을 주고 다시 컴파일 합니다.
CFLAGS="-fPIC"