기존 이솝 임베디드 포럼의 지식인 서비스가 게시판 형태로 변경되었습니다.

Openssl 0.9.8a를 암용으로 크로스 컴파일중인데요,
컴파일을 다 해놓고 보니 정적라이브러리만 만들어지고 동적라이브러리는 없었습니다.
보드에 정적라이브러리 올려서 테스트 프로그램 돌려서 잘돌아가서 일단 정적라이브러리를 사용하려고 했는데요,

이 openssl 라이브러리를 사용하는 다른 어플에서 ld 가 lssl 을 찾을수 없다고 오류가 나옵니다.
분명히 Makefile에서 CFLAGS, LDFLAGS는 명시해주었고, 그래도 오류가 나서 ld.so.conf에까지도 포함을 해주기까지 했거든요...

openssl0.9.8 이상으로 크로스 컴파일 성공하신 분들 계시면 도움좀 부탁드립니다.

고현철

2006.05.28 02:17:33
*.117.46.252

ld.so.conf는 static일 경우 상관없습니다. 전혀 상관없는 거거든요.

다른 application의 Makefile이 뭔가 잘 못되었을 듯...

그리고, 공지사항요!.

로그 없으면 대답하기 무쟈게 힘듭니다....^^

서연석

2006.05.31 01:53:00
*.240.203.107

오류중 일부 메세지를 첨부하였습니다.
오류내용을 보면 ssl 관련 라이브러리를 참조할 수 없기 때문에
발생하는 오류인데요, Makefile에서는 SSL에 대한 헤더파일의 대한
경로는 -I 로, 라이브러리(정적라이브러리)는 -L로 명시해주었습니다.

항상 답변 감사합니다.
이것때문에 한주동안 헤매고 있습니다. ㅎ

GNU C version 3.3.4 (arm-linux)
compiled by GNU C version 3.3.4.
GGC heuristics: --param ggc-min-expand=81 --param ggc-min-heapsize=96984
/usr/local/aesoptool/gcc-3.3.4-glibc-2.3.3/arm-linux/bin/../lib/gcc-lib/arm-linux/3.3.4/../../../../arm-linux/bin/as --traditional-format -o common/ssl_common.o ssl_common.s
arm-linux-gcc -lssl -lcrypto -lfuse -pthread -Wall -g -ggdb -O3 -v -save-temps client/assoc_array.o client/base64.o client/fs_oper.o client/hash_func.o client/libclient.o client/main.o client/names_cache.o client/network.o client/ssl_opts.o client/symcrypt.o common/common.o common/network_common.o common/rb.o common/ssl_common.o -o client/fsfsc -L/usr/local/aesoptool/gcc-3.3.4-glibc-2.3.3/arm-linux/arm-linux/lib -L/home/suh1978/CustomLIB/ARM_ssl_0.9.8a/lib -L/home/suh1978/Download/PROJECTS/fuse-2.5.3/lib -L/home/suh1978/Download/PROJECTS/fuse-2.5.3/lib/.libs
Reading specs from /usr/local/aesoptool/gcc-3.3.4-glibc-2.3.3/arm-linux/bin/../lib/gcc-lib/arm-linux/3.3.4/specs
Configured with: /home/ghc/crosstool-0.38/build/arm-linux/gcc-3.3.4-glibc-2.3.3/gcc-3.3.4/configure --target=arm-linux --host=i686-host_pc-linux-gnu --prefix=/korea-dokdo/aesoptool/gcc-3.3.4-glibc-2.3.3/arm-linux --with-float=soft --with-cpu=arm9tdmi --with-headers=/korea-dokdo/aesoptool/gcc-3.3.4-glibc-2.3.3/arm-linux/arm-linux/include --with-local-prefix=/korea-dokdo/aesoptool/gcc-3.3.4-glibc-2.3.3/arm-linux/arm-linux --disable-nls --enable-threads=posix --enable-symvers=gnu --enable-__cxa_atexit --enable-languages=c,c++ --enable-shared --enable-c99 --enable-long-long
Thread model: posix
gcc version 3.3.4
/usr/local/aesoptool/gcc-3.3.4-glibc-2.3.3/arm-linux/bin/../lib/gcc-lib/arm-linux/3.3.4/collect2 -dynamic-linker /lib/ld-linux.so.2 -X -m armelf_linux -p -o client/fsfsc /usr/local/aesoptool/gcc-3.3.4-glibc-2.3.3/arm-linux/bin/../lib/gcc-lib/arm-linux/3.3.4/../../../../arm-linux/lib/crt1.o /usr/local/aesoptool/gcc-3.3.4-glibc-2.3.3/arm-linux/bin/../lib/gcc-lib/arm-linux/3.3.4/../../../../arm-linux/lib/crti.o /usr/local/aesoptool/gcc-3.3.4-glibc-2.3.3/arm-linux/bin/../lib/gcc-lib/arm-linux/3.3.4/crtbegin.o -L/usr/local/aesoptool/gcc-3.3.4-glibc-2.3.3/arm-linux/arm-linux/lib -L/home/suh1978/CustomLIB/ARM_ssl_0.9.8a/lib -L/home/suh1978/Download/PROJECTS/fuse-2.5.3/lib -L/home/suh1978/Download/PROJECTS/fuse-2.5.3/lib/.libs -L/usr/local/aesoptool/gcc-3.3.4-glibc-2.3.3/arm-linux/bin/../lib/gcc-lib/arm-linux/3.3.4 -L/usr/local/aesoptool/gcc-3.3.4-glibc-2.3.3/arm-linux/bin/../lib/gcc-lib -L/usr/local/aesoptool/gcc-3.3.4-glibc-2.3.3/arm-linux/bin/../lib/gcc-lib/arm-linux/3.3.4/../../../../arm-linux/lib -lssl -lcrypto -lfuse client/assoc_array.o client/base64.o client/fs_oper.o client/hash_func.o client/libclient.o client/main.o client/names_cache.o client/network.o client/ssl_opts.o client/symcrypt.o common/common.o common/network_common.o common/rb.o common/ssl_common.o -lgcc --as-needed -lgcc_s --no-as-needed -lpthread -lc -lgcc --as-needed -lgcc_s --no-as-needed /usr/local/aesoptool/gcc-3.3.4-glibc-2.3.3/arm-linux/bin/../lib/gcc-lib/arm-linux/3.3.4/crtend.o /usr/local/aesoptool/gcc-3.3.4-glibc-2.3.3/arm-linux/bin/../lib/gcc-lib/arm-linux/3.3.4/../../../../arm-linux/lib/crtn.o
client/fs_oper.o(.text+0x37a8):client/fs_oper.c:927: undefined reference to `EVP_aes_256_cbc'
client/fs_oper.o(.text+0x3a48):client/fs_oper.c:980: undefined reference to `EVP_aes_256_cbc'
client/fs_oper.o(.text+0x4218):client/fs_oper.c:1089: undefined reference to `EVP_aes_256_cbc'
client/fs_oper.o(.text+0x4650):client/fs_oper.c:1156: undefined reference to `EVP_aes_256_cbc'
client/fs_oper.o(.text+0x471c):client/fs_oper.c:1157: undefined reference to `EVP_aes_256_cbc'
client/libclient.o(.text+0xb98):client/libclient.c:406: more undefined references to `EVP_aes_256_cbc' follow
client/main.o(.text+0xac):client/main.c:68: undefined reference to `SSL_write'
client/main.o(.text+0x164):client/main.c:69: undefined reference to `ERR_get_error'
client/main.o(.text+0x16c):client/main.c:69: undefined reference to `ERR_error_string'
client/main.o(.text+0x2b4):client/main.c:98: undefined reference to `SSL_CTX_free'
client/main.o(.text+0x5a8):client/main.c:148: undefined reference to `ERR_free_strings'
client/main.o(.text+0x6ec):client/main.c:148: undefined reference to `ERR_free_strings'
client/main.o(.text+0x788):client/main.c:148: undefined reference to `ERR_free_strings'
client/main.o(.text+0x868):client/main.c:148: undefined reference to `ERR_free_strings'
client/main.o(.text+0x98c):client/main.c:148: undefined reference to `ERR_free_strings'
client/main.o(.text+0xa10):client/main.c:148: more undefined references to `ERR_free_strings' follow
client/network.o(.text+0x330):client/network.c:40: undefined reference to `SSL_free'
client/network.o(.text+0x594):client/network.c:40: undefined reference to `SSL_free'
client/network.o(.text+0x76c):client/network.c:40: undefined reference to `SSL_free'
client/network.o(.text+0x804):client/network.c:40: undefined reference to `SSL_free'

고현철

2006.05.31 08:49:59
*.190.41.69

해당 함수들이 없다는 얘기네요. 그리고, 컴파일 메세지가 은근히 이상하네요...
하여간 link시 못찾겠다는 얘기인데 여기서 더 이상 제가 알 방법은 없을 듯 합니다.

직접 보지 않는한은....쩝.

역쉬 리눅스는 별루에요...ㅎㅎ,

서연석

2006.06.02 00:15:03
*.240.203.112

사용한 버전이 0.9.8인데,

0.9.7로 버전을 낮추고 메인프로그램을 수정해서 해결을 하긴했는데요,

정말 왜 이런 오류가 나는지는 모르겠어요..

#. 답변 감사합니다.

List of Articles
번호 제목 글쓴이 날짜sort 조회 수
6288 usb무선랜 관련 질문입니다<--완료 [2] 이상화 2006-05-27 1081
6287 sdl key 버튼 안 먹네요...[완료] [3] 오용석 2006-05-27 1066
» openssl 크로스 컴파일중에 대해 질문드립니다. <-- 완료 [4] 서연석 2006-05-28 1247
6285 [re] sdl key 버튼 안 먹네요... [1] 고현철 2006-05-28 1153
6284 무선랜 관련 에러 질문드립니다 <-[완료] [6] 이용휴 2006-05-30 1332
6283 질문입니다.<--완료 [5] 신재곤 2006-05-30 904
6282 [질문] jffs2 mount 에러 [2] 민세홍 2006-05-30 1490
6281 커널 2.6.13 컴파일 할때요<--완료 [7] 이상화 2006-05-31 1265
6280 2G SD카드 인식 [6] 김대영 2006-06-01 1743
6279 LCD인터페이스 질문입니다. <- 완료. [5] 한지훈 2006-06-02 1237
6278 [질문] jffs2 mount 에러 2 [1] 민세홍 2006-06-02 1555
6277 고현철님 또 질문있습니다 ㅜㅜ [2] 이상화 2006-06-02 1044
6276 현철님 그문서 어디에있나여??ㅋ portmap설치하는거욤..^^;<--[완료] [3] 이용휴 2006-06-21 1307
6275 s3c2440a칩 문의 [1] 김창식 2006-06-22 1322
6274 timer에 대한 질문입니다. - 완료 서연석 2006-06-23 1101
6273 [re] timer에 대한 질문입니다. [2] 고현철 2006-06-23 1320
6272 [질문] 양산시의 Nand 퓨징에 관해서... [6] 이재훈 2006-06-24 3024
6271 사용한 lcd 사양좀 부탁드립니다. [3] 김창식 2006-06-24 949
6270 madplay SDL_Thread 사용하기 질문요...[완료] [2] 오용석 2006-06-25 1299
6269 컴파일러 옵션....? [2] 윤현승 2006-06-26 1048

사용자 로그인