리눅스 커널을 컴파일 하려는데 라이브러리를 못찾습니다.

Shinkyo의 이미지

임베디드 리눅스를 컴파일 하는데 자꾸 라이브러리를 못찾아서 에러가 발생합니다.

실제로 인클루드 폴더에 가보면 라이브러리가 설치되어 있지 않구요..

glibc밖에 설치한 기억이 없네요.. 어떤 라이브러리를 설치해야 하나요?

에러 메세지는 다음과 같습니다.

------------------------------------------

/root/working/kernel/linux-2.4.19/include/asm/system.h:44:29: asm/proc/system.h:
그런 파일이나 디렉토리가 없음

/root/working/kernel/linux-2.4.19/include/asm/semaphore.h:13:28: asm/proc/locks.
h: 그런 파일이나 디렉토리가 없음

------------------------------------------

/usr/include/asm 디렉토리로 가보면 실제로 하위 디렉토리인 /proc 가 존재하지 않습니다. 커널 소스 내부에서 인크루드 폴터내에 저 위치를 가르키는 링크파일이 있는데 역시 깨져있구요

어떤 라이브러리를 설치해야 하는지 도움 부탁드립니다.

bushi의 이미지

용어가 부적절하게 사용되었습니다.
커널은 컴파일러 외에 추가적인 라이브러리나 헤더파일을 필요로하지 않습니다.

config 를 하지 않았거나 기타 오류로 include/ 밑의 링크들이 생기지 않았습니다.

/usr/ 등 host 의 헤더파일은 아무 상관이 없으니 엄한 데서 삽질하지 마시고요.

Shinkyo의 이미지

문제 해결했습니다. 역시 커널 소스와 헤더가 설치되어 있지 않았습니다.

페도라 시디에서 kernel-headers RPM과 kernel-source RPM을 설치하고

위의 문제를 이상없이 해결했습니다. 삽질이라니요.. make config할때

커널소스 내부의 include 에서 asm 등을 운영중인 커널의 include에서 링크를 하나봅니다.

이 부분에서 운영중인 커널의 include에 asm 헤더를 포함한 파일들이 존재하지 않았었구요

이때문에 잘못된 링크로 인한 문제가 발생했었습니다.

참, 위에 오류문구 중에 "asm/proc/system.h" 이부분이 운영중인 커널을 참조하는 부분이었습니다.

댓글 달기

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
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.