[완료] MIPS 보드에서 openssl 컴파일 에러
글쓴이: kgykingdom / 작성시간: 목, 2007/07/12 - 5:55오후
제가 지금 MIPS 를 사용하는 보드에 openssl 을 이용한 어플리케이션을 올리려고 작업중입니다.
그런데 MIPS 용 크로스 컴파일러로 프로그램을 컴파일하면 계속 에러가 발생하네요.
라이브러리 링크 문제인데.. 이 방법 저 방법 다 동원하다 안되서 이렇게 도움을 청합니다.
mipsel-linux-gcc -O2 -DL_ENDIAN -DCPU=MIPS32 -DDEBUG -mcpu=5KC -o sdloader.exe init.o sdloader.o msg_io.o log.o image.o verify.o decrypt.o -L. -lssl -Wall /opt/toolchains/gcc-3.3.5/bin/../lib/gcc-lib/mipsel-linux-uclibc/3.3.5/../../../../mipsel-linux-uclibc/bin/ld: skipping incompatible ./libssl.a when searching for -lssl /opt/toolchains/gcc-3.3.5/bin/../lib/gcc-lib/mipsel-linux-uclibc/3.3.5/../../../../mipsel-linux-uclibc/bin/ld: skipping incompatible /opt/toolchains/gcc-3.3.5/bin/../lib/gcc-lib/mipsel-linux-uclibc/3.3.5/../../../../mipsel-linux-uclibc/lib/libssl.a when searching for -lssl /opt/toolchains/gcc-3.3.5/bin/../lib/gcc-lib/mipsel-linux-uclibc/3.3.5/../../../../mipsel-linux-uclibc/bin/ld: cannot find -lssl
원래는 openssl-0.9.8e 를 컴파일해서 해당 include 와 lib 디렉토리를 지정해주고 컴파일을 수행하도록 했는데.
안되서 아예 libssl.a libcrypto.a 라이브러리를 어플리케이션 디렉토리에 넣고, -L. -lssl 옵션을 주고 컴파일 했는데도.
에러가 발생하네요.. 그걸로 보아서는 아무래도 아키텍처 적인 문제 인거 같은데.. 뭐가 잘 못된건지 아시는분 있으시면 도움 부탁드립니다.
그럼 즐거운 하루 되세요.
Forums:
메시지를 보세요
메시지를 보면 "skipping incompatible ./libssl.a when searching for -lssl" 이라고 나옵니다. libssl.a가 MIPS용 openssl인가요?
음.
MIPS 용 openssl 이 따로 있는 건가요? 제가 알고 있기로는 openssl 에서 MIPS 아키텍처도 지원하는 것으로
알고 있는데.. 아닌건가요??
혹시 openssl 컴파일 할때 configure 실행에 인자로 mips 용으로 컴파일해서 사용해야 하는 건가요??
댓글 달기