HELP: cannot link calls to <asm/io.h>

HELP: cannot link calls to <asm/io.h>

Post by Ron Skopi » Mon, 18 Apr 1994 14:52:00



Hello,

        I am using the latest slackware post (linux v1.0). I am trying to
compile a "Device" driver that needs to make "out" assembler calls to write
to various ports.  I found the "outb" etc. functions in <asm/io.h> and am
using them as follows:

#include <asm/system.h>
#include <asm/io.h>

...

main() {

        outb(0x36, 0x1BB);
        outb(0x76, 0x1BB);
        outb(0xB6, 0x1BB);

        ...

Quote:}

the problem is that when i compile i get:

/tmp/cca069721.o: Undefined symbol ___outbc referenced from text segment
/tmp/cca069721.o: Undefined symbol ___outb referenced from text segment
/tmp/cca069721.o: Undefined symbol ___outbc referenced from text segment
/tmp/cca069721.o: Undefined symbol ___outb referenced from text segment
/tmp/cca069721.o: Undefined symbol ___outbc referenced from text segment

for every call to "outb" :/

I have checked every "*.h" file on the system, and i have linked with every
"lib*.a" file i could find.  I have rebuilt the kernel which uses these calls
and recieved none of these error messages.  Does anyone know how to link these
calls?  Am i missing something completely obvious (don't answer that! ;)

any help would be GREATLY appreciated as being able to do this is central to
the completion of my senior project!!! :}

                                Thank you,

                                        Ron Skopitz

                                        (please respond to this address
                                         if sending e-mail!)

 
 
 

1. STILL cannot link calls to <asm/io.h>

Somebody _PLEASE_ help...  I posted a request several days ago and have
gotten no response.  I have sent e-mail.. now i'm begging.  I have seen
4 or 5 requests for the same type of problem since then -- non with any
apparent answers.  It is VERY important to my academic career that i solve

ANY help!  a re-post follows:

-----------

Hello,

        I am using the latest slackware post (linux v1.0). I am trying to
compile a "Device" driver that needs to make "out" assembler calls to write
to various ports.  I found the "outb" etc. functions in <asm/io.h> and am
using them as follows (gcc 2.5.8):

#include <asm/system.h>
#include <asm/io.h>

...

main() {

        outb(0x36, 0x1BB);
        outb(0x76, 0x1BB);
        outb(0xB6, 0x1BB);

        ...

the problem is that when i compile i get:

/tmp/cca069721.o: Undefined symbol ___outbc referenced from text segment
/tmp/cca069721.o: Undefined symbol ___outb referenced from text segment
/tmp/cca069721.o: Undefined symbol ___outbc referenced from text segment
/tmp/cca069721.o: Undefined symbol ___outb referenced from text segment
/tmp/cca069721.o: Undefined symbol ___outbc referenced from text segment

for every call to "outb" :/

I have checked every "*.h" file on the system, and i have linked with every
"lib*.a" file i could find.  I have rebuilt the kernel which uses these calls
and recieved none of these error messages.  Does anyone know how to link these
calls?  Am i missing something completely obvious (don't answer that! ;)

any help would be GREATLY appreciated as being able to do this is central to
the completion of my senior project!!! :}

                                Thank you,

                                        Ron Skopitz

                                        (please respond to this address
                                         if sending e-mail!)

2. pthreads, statically linked, printf, RH8 - seg fault problem

3. RESOLVED: <asm/io.h> "linking" problems

4. what are glibc/libc5 differences?

5. Need help with <asm/io.h> include file

6. Mounting a MS-DOS Drive

7. #include <asm/bitops.h> -> #include <linux/bitops.h>

8. Uniplex Question

9. <asm/io.h> compile problems

10. Problem trying to include <asm/io.h>

11. [TRIVIAL] Add back in <asm/system.h> and <linux/linkage.h> to <linux/interrupt.h>

12. [RESEND] Add back in <asm/system.h> and <linux/linkage.h> to <linux/interrupt.h>

13. #define NOERROR in <sys/stream.h> and <arpa/nameser.h>