LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux > Linux - Distributions > Arch
User Name
Password
Arch This Forum is for the discussion of Arch Linux.

Notices

Reply
 
Thread Tools
Old 10-27-2009, 04:49 PM   #1
BenoitSvB
LQ Newbie
 
Registered: Jul 2005
Location: ENSCHEDE, The Netherlands
Posts: 3
Thanked: 0
problem compiling ppscsi module for HP ScanJet 5100C


[Log in to get rid of this advertisement]
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.
linux BenoitSvB is offline     Reply With Quote
Old 10-28-2009, 06:35 AM   #2
~sHyLoCk~
Member
 
Registered: Jul 2008
Location: /dev/null
Distribution: Arch64 / openSUSE
Posts: 474
Blog Entries: 4
Thanked: 46
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
linuxarch ~sHyLoCk~ is offline     Reply With Quote
Old 10-28-2009, 07:08 AM   #3
BenoitSvB
LQ Newbie
 
Registered: Jul 2005
Location: ENSCHEDE, The Netherlands
Posts: 3
Thanked: 0

Original Poster
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...
windows_xp_2003 BenoitSvB is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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


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


All times are GMT -5. The time now is 07:45 AM.

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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration