Re: compiling latest sane on PowerPC Linux

From: Mehul N. Sanghvi (mehul@kirsun.ne.mediaone.net)
Date: Tue Jul 17 2001 - 06:06:09 PDT

  • Next message: Michael K Bender: "Re: compiling xscanimage on Solaris 8"

    I believe the other person would be me. PowerMac 7100, Linux 2.4.x is
    what I have.

    I am going to try 1.0.4 and see what happens with that. I know
    someone at LinuxPPC has made a RPM of it. I will see what I can find
    from the source RPM in regards to patches/fixes/changes.

    cheers,

       mehul

    >>>>> Major A writes:

    Andras> Fred,

    >> I've downloaded the lastest sane (1.0.5) or my PowerPC Linux
    >> system. The systems is glibc 2.1.3 and kernel 2.4.6 debian
    >> based. I get errors saying inb and outb are undefined.

    Andras> We had someone else on the list who had a very similar problem. You
    Andras> are running debian with a 2.4.x kernel (i.e. you built it yourself),
    Andras> and I have the same set-up (on i386 and alpha machines though).

    Andras> Note that a debian install has its own /usr/include/asm and
    Andras> /usr/include/linux directories, so if you build your own kernel, it
    Andras> might be worth replacing them by symbolic links to the two relevant
    Andras> directories in /usr/src/linux/include (I hope you keep your kernel
    Andras> source there).

    >> A check through the kernl header files yields no definitions
    >> except in one of the asm headers. Including the asm
    >> header did not work so I suspect the problem was at
    >> the linker stage.

    Andras> Is it the ld command that complains? If so, you have the same problem
    Andras> as that other user (can't remember their name).

    >> Doesn't inb and outb have something to do with the ISA bus?
    >> My PowerPC machine has no ISA bus.

    Andras> It has to do with the stupid I/O handling on i386 machines. If you ask
    Andras> me, it should not really be needed for any other architecture. Maybe
    Andras> it just makes writing cross-platform stuff easier to keep it for all
    Andras> platforms.

    Andras> Hope this helps, any corrections are welcome.

    Andras> Andras

    Andras> ===========================================================================
    Andras> Major András
    Andras> e-mail: andras@users.sourceforge.net
    Andras> www: http://andras.webhop.org/
    Andras> ===========================================================================

    Andras> --
    Andras> Source code, list archive, and docs: http://www.mostang.com/sane/
    Andras> To unsubscribe: echo unsubscribe sane-devel | mail majordomo@mostang.com

    -- 
    Mehul N. Sanghvi                  email: mehul@kirsun.ne.mediaone.net
    Superior software is always free!   URL: http://kirsun.ne.mediaone.net/~mehul
    

    "Assassination is the extreme form of censorship." George Bernard Shaw (1856-1950)

    -- Source code, list archive, and docs: http://www.mostang.com/sane/ To unsubscribe: echo unsubscribe sane-devel | mail majordomo@mostang.com



    This archive was generated by hypermail 2b29 : Tue Jul 17 2001 - 05:49:23 PDT