[스샷]커널 컴파일에서 문제가 발생했습니다.

gorefined의 이미지

초보 리눅서입니다. 그냥 명령어 조금에 시스템 프로그래밍 약간 하는 정도인데요, 겁도 없이 커널을 컴파일해보려다가 문제가 발생했습니다. 사진 첨부합니다.

make xconfig로 환경을 설정하고, make dep과 make clean을 거쳐 make bzImage 명령어로 커널 소스를 컴파일하다 보니, 몇 분을 징징거리다가 스크린샷과 같은 메시지를 내뱉었다는.

사실 이 컴파일이, 시스템 함수 하나만들어보려고 src 폴더의 arch/i386/kernel/entry.S 파일과 include/asm-i386/unistd.h 파일 끄트머리를 살짝 조작(newsys라는 함수를 하나 제멋대로 만들어서 kernel 디렉토리에 newfile이라는 소스 코드로 구현-_-)해주고 kernel 폴더에 있는 Makefile 파일도 수정을 해줬는데, 에러 메시지 나온 것 보니까 뭔가 안 해준 거나, 빼먹고 정의를 안해준 게 있는가보다 싶어서요. (사실 에러 번호도 뭘 뜻하는 건지 모르겠네요-_-)

...새로작성한 소스코드에 표준 c 라이브러리 함수를 쓴다던가 하는 바보짓은 안했습니다.

참고로 제 리눅스 시스템은 페도라 코어 linux-2.4.22-1.2115.nptl 입니다. 커널 컴파일은 생판 처음이라 아직 잘 모르니 양해 바랍니다.

File attachments: 
첨부파일 크기
Image icon srccmp_err.png199.98 KB
chunmok의 이미지

gorefined wrote:
make xconfig로 환경을 설정하고, make dep과 make clean을 거쳐 make bzImage 명령어로 커널 소스를 컴파일하다 보니, 몇 분을 징징거리다가 스크린샷과 같은 메시지를 내뱉었다는.

함수가 컴파일된 object화일을 못찾거나, 함수가 빠지고 컴파일이 되어서 그런것 같습니다.

make clean은 빼고 (make clean은 모든 obejct화일을 지웁니다.)
make xconfig
make dep
make bzImage 순서로 해보시죠.

정준목.

댓글 달기

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