LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Arch
User Name
Password
Arch This Forum is for the discussion of Arch Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 10-27-2009, 03:49 PM   #1
BenoitSvB
LQ Newbie
 
Registered: Jul 2005
Location: ENSCHEDE, The Netherlands
Posts: 3

Rep: Reputation: 0
problem compiling ppscsi module for HP ScanJet 5100C


I am trying to get my ScanJet 5100C working under Arch; the most recent thread on ScanJet 5100C under Linux that I could find is: http://www.linuxquestions.org/questi...d.php?t=555861, so I use that as a guide. But in following it, I encountered problems...

1. Kernel-headers.
1.a. I am running (uname -r) 2.6.31-ARCH
1.b. The most recent headers (pacman -Sy kernel-headers): kernel-headers-2.6.30.5-1
1.c. My source tree: /usr/src/linux-2.6.31-ARCH

Are my kernel-headers out of sync?

2. Module source.
2.1 I succesfully downloaded ppscsi-beta2-20060424.tar.gz from http://penguin-breeder.org/kernel/download/ and

3. unpacked it into ~/HP ScanJet 5100C/ppscsi-beta2

Before applying the changes described in my guide I decided to check if the errors would occur as described:

As ordinary user I cd-ed into ~/HP ScanJet 5100C/ppscsi-beta2 and issued: make

*** make aborted with the following messages (different from my guide):

make -C /lib/modules/`uname -r`/build M=`pwd` modules
make[1]: Map '/usr/src/linux-2.6.31-ARCH' wordt binnengegaan
make[1]: *** Er is geen regel om doel 'ScanJet' te maken. Gestopt.
make[1]: Map '/usr/src/linux-2.6.31-ARCH' wordt verlaten
make: *** [all] Fout 2

In English it would be something like: no [line,rule] to make target 'ScanJet'

I am stuck and welcome suggestions to help me proceed.
 
Old 10-28-2009, 05:35 AM   #2
~sHyLoCk~
Senior Member
 
Registered: Jul 2008
Location: /dev/null
Posts: 1,173
Blog Entries: 12

Rep: Reputation: 126Reputation: 126
Quote:
Originally Posted by BenoitSvB View Post
I am trying to get my ScanJet 5100C working under Arch; the most recent thread on ScanJet 5100C under Linux that I could find is: http://www.linuxquestions.org/questi...d.php?t=555861, so I use that as a guide. But in following it, I encountered problems...

1. Kernel-headers.
1.a. I am running (uname -r) 2.6.31-ARCH
1.b. The most recent headers (pacman -Sy kernel-headers): kernel-headers-2.6.30.5-1
The most recent headers were upgraded yesterday [x86_64]
Code:
pacman -Qi kernel-headers
Name           : kernel-headers
Version        : 2.6.31.4-1
Quote:
1.c. My source tree: /usr/src/linux-2.6.31-ARCH

Are my kernel-headers out of sync?
I think so.

Quote:
2.1 I succesfully downloaded ppscsi-beta2-20060424.tar.gz from http://penguin-breeder.org/kernel/download/ and

3. unpacked it into ~/HP ScanJet 5100C/ppscsi-beta2

Before applying the changes described in my guide I decided to check if the errors would occur as described:

As ordinary user I cd-ed into ~/HP ScanJet 5100C/ppscsi-beta2 and issued: make

*** make aborted with the following messages (different from my guide):

make -C /lib/modules/`uname -r`/build M=`pwd` modules
make[1]: Map '/usr/src/linux-2.6.31-ARCH' wordt binnengegaan
make[1]: *** Er is geen regel om doel 'ScanJet' te maken. Gestopt.
make[1]: Map '/usr/src/linux-2.6.31-ARCH' wordt verlaten
make: *** [all] Fout 2

In English it would be something like: no [line,rule] to make target 'ScanJet'

I am stuck and welcome suggestions to help me proceed.
I think you should first do:
Code:
pacman -Syyu
and see if that pulls in the latest kernel-headers , else choose a different mirror.
Then retry compiling. Also make sure you have base-devel.
Code:
pacman -S base-devel
 
Old 10-28-2009, 06:08 AM   #3
BenoitSvB
LQ Newbie
 
Registered: Jul 2005
Location: ENSCHEDE, The Netherlands
Posts: 3

Original Poster
Rep: Reputation: 0
Thank you for your reaction; in the Arch forums (//http://bbs.archlinux.org/viewtopic.php?id=83381) I answered as follows:
Quote:
Originally Posted by BenoitSvB
sHyLoCk, Thank you for your reaction; probably best to focus on the Arch forum.

I upgraded today to binutils 2.20-1 gcc 4.4.2-2 gcc-libs 4.4.2-2 and kernel-headers 2.6.31.4-1, but it did not change the behaviour of make as described above.

The news I have (but which does not help me with the make problem for the moment) is:

a. from http://bbs.archlinux.org/viewtopic.php?id=69867
Quote:
Originally Posted by ataraxia
The kernel-headers package is meant to contain the version of the headers glibc was built against, so you can compile things that use kernel headers properly and have them link right against the rest of the userland. It won't normally match the actual kernel version.
b. There is a newer thread about this device driver here:
http://ubuntuforums.org/showthread.p...t+5100C&page=5

So it seems the device is working in the latest stable Ubuntu.
I suppose I do something wrong with compiling this device driver module against the Arch kernel...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Scanjet 5100c in Kubuntu Feisty broxtor Linux - Hardware 12 01-25-2010 06:05 PM
Problem of compiling ipw3845 module pdaeng Debian 3 09-24-2006 09:34 PM
Scanjet 5100C under Slackware ! Cdzin Slackware 2 05-04-2006 12:25 PM
Problem compiling FUSE module Jason_Bassett Linux - Software 1 04-12-2006 03:25 PM
problem with compiling a simple module pele21 Linux - Software 2 04-28-2005 02:29 AM


All times are GMT -5. The time now is 01:17 PM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration