Re: linux module problem again

From: Peter T. Breuer (ptb_at_oboe.it.uc3m.es)
Date: 11/05/05

  • Next message: Anonymous: "Where could I find ifo to delop a Linux USB driver?"
    Date: Sat, 5 Nov 2005 17:06:35 +0100
    
    

    Winnie <zy.zhangyue@gmail.com> wrote:
    > hello-1.o: unresolved symbol proc_register
    > hello-1.o: unresolved symbol proc_unregister

    > and then?

    Link them in, or compile them in - what else do you expect anyone to
    say?

    You are compiling for 2.4? Please provide appropriate context.

    Anyway, proc_register is NOT a symbol in my 2.4 kernel (2.4.22). So
    *I* would say that if you have compiled a module that references it,
    perhaps you have either written or compiled it wrong.

      % grep proc_register /usr/local/src/linux-2.4.22-xfs/fs/proc/*.c
      /usr/local/src/linux-2.4.22-xfs/fs/proc/generic.c:static int proc_register(struct proc_dir_entry * dir, struct proc_dir_entry * dp)

    so it's declared static in my kernel source, which measn that you have
    written your code wrong. It shouldn't call that symbol.

    proc_register is used in proc_symlink and proc_mknod, etc. I would
    imagine you are not using the advertised interface, but I know that
    you looking in your codebase would tell you. Please fix your code.

    Peter


  • Next message: Anonymous: "Where could I find ifo to delop a Linux USB driver?"

    Relevant Pages

    • Re: VIA Velocity 6120 driver
      ... here are the errors I get when I compile the driver (I am running ... sounds like you've got a kernel source problem or a gcc versioning ...
      (comp.os.linux.hardware)
    • Re: FreeBSD 5.1 PowerPak Installation problem
      ... I have just compiled the kernel source and installed it. ... FreeBSD 5.1 PowerPak Installation problem ... Compile your kernel with debug symbols, ...
      (freebsd-questions)
    • Re: Running low on disk space in Gentoo...
      ... > So I have to manually delete stuff from the programs I unmerge? ... When you compile the kernel other files (object files and the .config file ... Some external drivers need the kernel source and need it to be in a certain ... Yes but the latest one will be re-emerged if you don't mask them. ...
      (alt.os.linux)
    • questions about fc3
      ... What I need to know though are some basic questions. ... First of all if I want to recompile the kernel where do i find the kernel source and how do I lay it out? ... Secondly I am totally blind and just need to confirm is Brltty included in the packages of which I can update too or do I need to install the src.rpm from mielke.cc? ... Thirdly I will want to use Speakup a screen review program but I am wondering if it is okay to compile it after putting Brltty in because I don't have a serial port for a hardware synthesizer so I am going to want software speech. ...
      (alt.os.linux.redhat)
    • Re: I want to use gphoto2.1.5.
      ... differ from one machine to another, and puts together a makefile. ... Unfortunately the documentation fails to compile, ... file to the standard directory: ... But have you got the kernel source installed? ...
      (comp.os.linux.misc)