커널 컴파일 중 오류... TT

ktlsu1231의 이미지

안녕하세요.
무엇때문에 이런 오류가 났을까요?
ide지원 칩셋 오류가 나서 다 yes로 해주었는데 그 문제는 아닌 것 같기도
하고요. 전에 컴파일 했을 때는 제 드라이버만 선택해도 되었거든요?

감사합니다.
[code:1]
init/main.o: In function `do_basic_setup':
init/main.o(.text.init+0x75c): undefined reference to `isapnp_init'
drivers/char/char.o: In function `chr_dev_init':
drivers/char/char.o(.text.init+0x63): undefined reference to `sensors_init_all'
drivers/char/char.o: In function `probe_serial_pnp':
drivers/char/char.o(.text.init+0x1427): undefined reference to `isapnp_present'
drivers/char/char.o(.text.init+0x1435): undefined reference to `isapnp_devices'
drivers/char/char.o(.text.init+0x143b): undefined reference to `isapnp_devices'
drivers/char/char.o(.text.init+0x1571): undefined reference to `isapnp_devices'
drivers/net/net.o(.data+0x214): undefined reference to `local symbols in discarded section .text.exit'
drivers/ide/idedriver.o: In function `probe_for_hwifs':
drivers/ide/idedriver.o(.text.init+0x93d): undefined reference to `pnpide_init'
drivers/ide/idedriver.o: In function `pci_init_aec62xx':
drivers/ide/idedriver.o(.text.init+0xa65): undefined reference to `aec62xx_display_info'
drivers/ide/idedriver.o: In function `pci_init_ali15x3':
drivers/ide/idedriver.o(.text.init+0xbe3): undefined reference to `ali_display_info'
drivers/ide/idedriver.o: In function `pci_init_amd74xx':
drivers/ide/idedriver.o(.text.init+0xf66): undefined reference to `amd74xx_display_info'
drivers/ide/idedriver.o: In function `pci_init_cs5530':
drivers/ide/idedriver.o(.text.init+0x1775): undefined reference to `cs5530_display_info'
drivers/ide/idedriver.o: In function `pci_init_hpt366':
drivers/ide/idedriver.o(.text.init+0x2040): undefined reference to `hpt366_display_info'
drivers/ide/idedriver.o: In function `pci_init_pdc202xx':
drivers/ide/idedriver.o(.text.init+0x3c58): undefined reference to `pdc202xx_display_info'
drivers/ide/idedriver.o: In function `pci_init_piix':
drivers/ide/idedriver.o(.text.init+0x3e4b): undefined reference to `piix_display_info'
drivers/ide/idedriver.o: In function `pci_init_slc90e66':
drivers/ide/idedriver.o(.text.init+0x425f): undefined reference to `slc90e66_display_info'
drivers/ide/idedriver.o: In function `pci_init_via82cxxx':
drivers/ide/idedriver.o(.text.init+0x482c): undefined reference to `via_display_info'
make[1]: *** [kallsyms] ¿À·ù 1
make[1]: ³ª°¨ `/usr/src/linux-2.4.18-3' µð·ºÅä¸

쎄시봉의 이미지

혹시나 입니다만...

계속 알수 없는 변수를 사용한다는 메세지를 봐서는...

게시하신 에러 메세지 이외에 그 위쪽으로 가면 무슨무슨.h파일을 찾을 수 없다는

에러메세지가 있을 것 같은데요..

확인해 보시기 바랍니다.

dg의 이미지

아마도 make dep 안한체로 컴팔 한거 같은데
다시 압축풀고 컨피그 하고 make dep; make bzImage; make modules; make modules_install 하면 될겁니다..

ktlsu1231의 이미지

make dep 꼭 하고 컴파일 하거든요. 혹시
커널 재 컴파일시 커널 소스를 다시 풀고 재 컴파일을 해야하는지 알고 싶습니다. ^^
감사합니다

codebank의 이미지

혹시 레드헷9에 포함되어있는 커널소스를 사용하시는건가요?
만일 그렇다면 RPM으로 배포되는 소스말고 직접 kernel.org에서 LINUX커널
소스를 받아서 다시한번 테스트해보시기 바랍니다.
무슨이유에선지(뭔가 옵션이 있는것 같은데...) 레드헷에서 배포하는 소스는
컴파일과 설치가 잘 안되는것 같더군요.
직접 make를 하신다면 소스를 받아서 하시는게 더 좋을거라고 생각합니다.

------------------------------
좋은 하루 되세요.

ktlsu1231의 이미지

안녕하세요.
RH7.3배포판입니다. 그곳에 들은 소스 사용하고 있습니다. ^^

우여곡절 끝에 make bzImage와 make modules, make modules_install을 하였습니다. depmod a 2.4.18-3custom을 하면 아래와 같은 메시지가 나오면서 진행이 되지 않습니다.
아래 나온 모듈 들을 커널옵션에 지정해 주면 해결이 될까요?
isapnp
usb module
ieee1394
위에 수많은 옵션들 중 무엇이 빠졌는지 알 수 있는 방법이 있을까요?
어떤 부분을 손보면 되는지 알고 싶습니다.
감사합니다. ^^;

[root@home linux-2.4]# depmod a 2.4.18-3custom
# module             id=string
# pci module         vendor     device     subvendor  subdevice  class      class_mask driver_data
# isapnp module      cardvendor carddevice driver_data vendor     function   ...
# usb module         match_flags idVendor idProduct bcdDevice_lo bcdDevice_hi bDeviceClass bDeviceSubClass bDeviceProtocol bInterfaceClass bInterfaceSubClass bInterfaceProtocol driver_info
# module             pattern
# ieee1394 module    match_flags vendor_id model_id specifier_id version
# module             id
ktlsu1231의 이미지

안녕하세요.
이제는 bzImage 생성시 아래와 같은 오류가 나네요.. T_T 자증...
아무말씀이라도 부탁드립니다. 감사합니다. ^^;;

[code:1]
cpy.c
cc -D__KERNEL__ -I/usr/src/linux-2.4.18-3/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -Wno-unused -pipe -mpreferred-stack-boundary=2 -march=i686 -DKBUILD_BASENAME=strstr -c -o strstr.o strstr.c
rm -f lib.a
ar rcs lib.a checksum.o old-checksum.o delay.o usercopy.o getuser.o memcpy.o strstr.o
make[2]: ³ª°¨ `/usr/src/linux-2.4.18-3/arch/i386/lib' µð·ºÅä¸

diah의 이미지

본문과 같은 에러가나는 이유는 간단해요.
컴파일시는에는 제대로 컴파일이 되어도
전체 파일중 어느곳에도 해당 함수나 변수가 없기때문에
그것을 찾을수가 없어서 그런것입니다.
즉 그것과 관련된 함수가 포함된 파일을 첨가하거나
에러가 나는부분이 포함된 chipset을 disable 하고 하시면 될것입니다.

댓글 달기

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