arm-linux-gcc 오류 입니다.

sirano979의 이미지

제가 크로스 컴파일을 하는데 이러한 오류가 뜹니다.

arm-linux-gcc wclient.o client.o common.o -o wclient -L/usr/local/openssl-arm/lib -lssl -lcrypto
/usr/cross-tools/arm-linux/bin/ld: warning: libgcc_s.so.1, needed by /usr/local/openssl-arm/lib/libssl.so, not found (try using -rpath or -rpath-link)
/usr/local/openssl-arm/lib/libcrypto.so: undefined reference to `__ctype_b_loc@GLIBC_2.3'
/usr/local/openssl-arm/lib/libssl.so: undefined reference to `__modsi3@GCC_3.0'
/usr/local/openssl-arm/lib/libssl.so: undefined reference to `__udivsi3@GCC_3.0'
/usr/local/openssl-arm/lib/libcrypto.so: undefined reference to `__udivdi3@GLIBC_2.0'
/usr/local/openssl-arm/lib/libssl.so: undefined reference to `__divsi3@GCC_3.0'
/usr/local/openssl-arm/lib/libcrypto.so: undefined reference to `__umoddi3@GLIBC_2.0'
/usr/local/openssl-arm/lib/libssl.so: undefined reference to `__ashldi3@GCC_3.0'
/usr/local/openssl-arm/lib/libcrypto.so: undefined reference to `__ctype_tolower_loc@GLIBC_2.3'
/usr/local/openssl-arm/lib/libssl.so: undefined reference to `__umodsi3@GCC_3.0'

어떻게 해결할 수 없을까요?
조그마한 관심이라도 부탁드립니다.

hys545의 이미지

즐린

arm용 libgcc_s.so.1 파일을 링크시켜보세여

즐린

sirano979의 이미지

근데 ,, 링크시키는 법좀 자세히 알려주시면 감사하겠습니다. ㅜㅜ

hys545의 이미지

즐린

우선 이 파일이 arm=gcc패키지에 있는지 확인하세여
없으면 arm=gcc다시 깔아보세여
원래 따로 링크할 필요는 없는거로 압니다.
원래 gcc에서 자동으로 링크시켜주는거라서

즐린

sirano979의 이미지

/usr/local/arm/3.3.2/lib/libgcc_s.so.1 과 /usr/local/arm/3.3.2/arm-linux/lib/libgcc_s.so.1 에 존재 합니다.
아마 답변 해주신분으 말처럼 링크가 되어 있지 않은것 같은데 ,, 어떻게 링크를 시켜야 할지 ,, ㅜㅡ 알려주시면 감사하겠습니다.

hys545의 이미지

즐린

그 전에 ln -s libgcc_s.so.1 libgcc_s.so
해보세여

즐린

sirano979의 이미지

--rpath-link /usr/local/arm/3.3.2/lib/libgcc_s.so.1
이렇게 추가를 시켜 링크를 해주었습니다. 덕분에(?) 링크가 잘 된것인지 다른 오류가 발생합니다. ㅜㅡ

arm-linux-gcc wclient.o client.o common.o -o wclient -L/usr/local/openssl-arm/lib -lssl -lcrypto --rpath-link /usr/local/arm/3.3.2/lib/libgcc_s.so.1
/usr/local/openssl-arm/lib/libcrypto.so: undefined reference to `__ctype_b_loc@GLIBC_2.3'
/usr/local/arm/3.3.2/lib/libgcc_s.so.1: undefined reference to `dl_iterate_phdr@GLIBC_2.2.4'
/usr/local/openssl-arm/lib/libcrypto.so: undefined reference to `__ctype_tolower_loc@GLIBC_2.3'
collect2: ld returned 1 exit status
make: *** [wclient] 오류 1

오류가 줄어서 기쁘긴 하지만 계속 산넘어 산이라는 말을 실감합니다. ,,, ㅜㅜ
번거롭게 계속 질문해서 죄송합니다. 고수분들의 관심 부탁 드립니다.
답변을 성실히 해주신 hys545님 정말 감사합니다.

hys545의 이미지

즐린
-lc
해보세여
그런데 여기 링크시키는 glibc는 반드시! arm용 glibc이어야 합니다.

즐린

댓글 달기

Filtered HTML

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

BBCode

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param>
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

Textile

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • You can use Textile markup to format text.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Markdown

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • Quick Tips:
    • Two or more spaces at a line's end = Line break
    • Double returns = Paragraph
    • *Single asterisks* or _single underscores_ = Emphasis
    • **Double** or __double__ = Strong
    • This is [a link](http://the.link.example.com "The optional title text")
    For complete details on the Markdown syntax, see the Markdown documentation and Markdown Extra documentation for tables, footnotes, and more.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Plain text

  • HTML 태그를 사용할 수 없습니다.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 줄과 단락은 자동으로 분리됩니다.
댓글 첨부 파일
이 댓글에 이미지나 파일을 업로드 합니다.
파일 크기는 8 MB보다 작아야 합니다.
허용할 파일 형식: txt pdf doc xls gif jpg jpeg mp3 png rar zip.
CAPTCHA
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.