질문&답변
클라우드/리눅스에 관한 질문과 답변을 주고 받는 곳입니다.
리눅스 분류

SSL설치관련..

작성자 정보

  • chozzalinuxer 작성
  • 작성일

컨텐츠 정보

본문

이틀째 삽질중입니다.

64비트 CentOS4.6사용중이며 apache-1.3.37 + mod_ssl-2.8.28-1.3.37 + openssl-0.9.8b 로 DSO방식으로 구성을 하려고 합니다.

kisa홈페이지 및 네이버,구글등을 다 뒤져봤는데도 안되네요..ㅡㅡ;;

cd /usr/local/src/openssl-0.9.8b

./config

make

make install

cd ../mod_ssl-2.8.28-1.3.37

./configure --with-apache=../apache-1.3.37 --with-ssl=../openssl-0.9.8b(/usr/local/ssl로도 해봤음) --prefix=/usr/local/apache

cd ../apache-1.3.37

SSL_BASE=../openssl-0.9.8b ./configure --prefix=/usr/local/apache --enable-rule=SHARED_CORE --enable-shared=max --enable-module=so --enable-module=rewrite --enable-module=ssl --enable-shared=ssl

make

하면...

/usr/bin/ld: /usr/local/ssl/lib/libssl.a(s2_srvr.o): relocation R_X86_64_32 against `a local symbol' can not be used when making a shared obje                ct; recompile with -fPIC
/usr/local/ssl/lib/libssl.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[4]: *** [libssl.so] 오류 1
make[3]: *** [all] 오류 1
make[2]: *** [subdirs] 오류 1
make[2]: Leaving directory `/usr/local/src/apache_1.3.37/src'
make[1]: *** [build-std] 오류 2
make[1]: Leaving directory `/usr/local/src/apache_1.3.37'
make: *** [build] 오류 2

이런 에러만 계속 뜨네요..

openssl 컴파일할때 -fPIC 옵션도 포함해보면 마찬가지로

/usr/bin/ld: /usr/local/src/openssl-0.9.8b/libcrypto.a(x86_64cpuid.o): relocation R_X86_64_PC32 against `OPENSSL_cpuid_setup' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Bad value
collect2: ld returned 1 exit status
make[4]: *** [libssl.so] 오류 1
make[3]: *** [all] 오류 1
make[2]: *** [subdirs] 오류 1
make[2]: Leaving directory `/usr/local/src/apache_1.3.37/src'
make[1]: *** [build-std] 오류 2
make[1]: Leaving directory `/usr/local/src/apache_1.3.37'
make: *** [build] 오류 2

openssl쪽에서 에러가 나는듯 하구요..

도와주세요

관련자료

댓글 2

도리님의 댓글

  • 도리
  • 작성일
64Bit라서
 -fPIC
이 옵션을 컴파일할 때 주고 해야 합니다.
그러니...

CFLAGS="-fPIC" ./configure

뭐 이런식으로 컴파일러에 옵션을 넣어 줍니다.

chozzalinu님의 댓글

  • chozzalinu
  • 작성일
역시 같네요..
아파치 컴파일할때 --enable-shared=max 나 --enable-shared=ssl옵션만 넣으면

/usr/bin/ld: /usr/local/src/openssl-0.9.8g/libcrypto.a(x86_64cpuid.o): relocation R_X86_64_PC32 against `OPENSSL_cpuid_setup' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Bad value
collect2: ld returned 1 exit status
make[4]: *** [libssl.so] 오류 1
make[3]: *** [all] 오류 1
make[2]: *** [subdirs] 오류 1
make[2]: Leaving directory `/usr/local/src/apache_1.3.37/src'
make[1]: *** [build-std] 오류 2
make[1]: Leaving directory `/usr/local/src/apache_1.3.37'
make: *** [build] 오류 2
이런 오류를..

결국 ssl은 static으로..php는 DSO로..참 웃기게 되었네요..
더 찾아봐야겠습니다.

공지사항


뉴스광장


  • 현재 회원수 :  60,037 명
  • 현재 강좌수 :  35,810 개
  • 현재 접속자 :  95 명