[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

cdrecord,/dev/pg0 & /usr/include/linux



Greetings Debi-one's,

Are you trying to compile the "cdrecord" or some other thing that
makes use of the "pg" driver?

Are you having no joy? Does the @#%$%$! cdrecord merely say "Cannot
open SCSI" and then exit?

Are you losing your hair by the fistful whilst you beat upon your
breast and keyboard with equal ferocity?

Have you upgraded both kernel and cdrecord without reward?

Cry no more.

cd /usr/include
ls -ld linux
drwxr-xr-x   2 root     root         2048 Oct 10 17:13 linux

Note that 'd' in the first column. It is your enemy. 

Debian hamm (and maybe others) didn't distribute the kernel source. So
instead of that being a shambolic link into the kernel source, it is a
standalone directory full of the header files for the linux-2.0.3?
whatever kernel hamm was built around.

Now having upgraded to linux-2.2.3, that standalone directory stands
there alone with a bunch of obsolete header files. "cdrecord" looks in
there, doesn't find pg.h and doesn't build in the ability to talk to
the /dev/pg0.

Solution :-

su
cd /usr/include
rm -rvf linux
ln -s /usr/src/linux/include/linux linux
ls -ld linux
lrwxrwxrwx   1 root     root           28 Mar 18 10:40 linux -> /usr/src/linux/include/linux


Rebuild ab initio cdrecord. Hah! It works!


John Carter                    EMail: ece@dwaf-hri.pwv.gov.za
Telephone : 27-12-808-0374x194 Fax:- 27-12-808-0338
<http://www.geocities.com/SoHo/Cafe/5947> or <http://iwqs.pwv.gov.za>

Knock. Knock.
Who's there?
GNU.
GNU who?
Don't cry Billy.



Reply to: