Re: Is it possible to install older linux-headers on Debian 8

2015-06-18 Thread Reco
 Hi.

Please do not top-post.
Please do not CC me, I'm subscribed to the list.

On Thu, 18 Jun 2015 17:06:09 +0530
Dhiraj Bhor  wrote:

> One quick question:
> If ata.h is missing from latest package then which file is replacement for
> it?

Looking in the problem further, I realized that I was wrong.
linux-headers-3.16-0-4-686-pae package actually provides ata.h, although
it's location is unconventional somewhat. Specifically,

/usr/src/linux-headers-3.16.0-4-686-pae/include/config/ata.h

So, it's no wonder that scons is unable to locate the needed header.
Not is was *that* big problem for building kernel module, but I don't
recall any *userspace* program that requires that part of kernel
headers (and that's clearly userspace one as they don't write kernel
in C++).

And, the good news are - there's no need for this old packages trickery.
The bad news being - you'll need to convince scons to look the header
there. Personally I'd say 'screw it' and patch the source with the
following diff:

-#include 
-#include "/usr/src/linux-headers-3.16.0-4-686-pae/include/config/ata.h"

Reco


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: 
https://lists.debian.org/20150618233219.66b722063a83f91679a3d...@gmail.com



Re: Is it possible to install older linux-headers on Debian 8

2015-06-18 Thread Dhiraj Bhor
One quick question:
If ata.h is missing from latest package then which file is replacement for
it?
May be i need to ask this on libc-help mailing list but asking if anyone
knows about it.

On Thu, Jun 18, 2015 at 5:01 PM, Dhiraj Bhor  wrote:

> I am not in position to take first option.
> I have tried second option but it gave me error like
> *$ sudo dpkg -i linux-kernel-headers_2.6.18-7_i386.deb*
> Selecting previously unselected package linux-kernel-headers.
> dpkg: regarding linux-kernel-headers_2.6.18-7_i386.deb containing
> linux-kernel-headers:
>  linux-libc-dev:i386 conflicts with linux-kernel-headers
>   linux-kernel-headers (version 2.6.18-7) is to be installed.
>
> dpkg: error processing archive linux-kernel-headers_2.6.18-7_i386.deb
> (--install):
>  conflicting packages - not installing linux-kernel-headers
> Errors were encountered while processing:
>  linux-kernel-headers_2.6.18-7_i386.deb
>
>
> Googling does not show much help.
> Do i need to do something else?
>
>
>
> On Tue, Jun 16, 2015 at 6:52 PM, Reco  wrote:
>
>>  Hi.
>>
>> On Tue, Jun 16, 2015 at 04:57:56PM +0530, Dhiraj Bhor wrote:
>> > Hey,
>> > Can anyone redirect me to correct link or clue?
>> >
>> > On Mon, Jun 15, 2015 at 5:10 PM, Dhiraj Bhor 
>> wrote:
>> >
>> > Hi all,
>> >
>> > I have one build system which is legacy and  i am just compiling
>> the older code on new debian 8 machine.
>> > Its a scons build and when i started the build, i got following
>> error.
>> > scons: done reading SConscript files.
>> > scons: Building targets ...
>> > scons: building associated BuildDir targets: OUTPUT/
>> > C++ OUTPUT/MyCppFile.o
>> > SOURCE/MyCppFile.cpp:35:23: fatal error: linux/ata.h: No such file
>> or directory
>> >  #include 
>> >^
>> > compilation terminated.
>> > scons: *** [OUTPUT/MyCppFile.o] Error 1
>> > scons: building terminated because of errors.
>> > Makefile:116: recipe for target 'test' failed
>> > make: *** [test] Error 2
>> >
>> > I searched on internet but no clue.
>> > I have linux-headers installed and here is output:
>> > $ dpkg -l | grep linux-headers
>> > ii  linux-headers-3.16.0-4-686-pae 3.16.7-ckt9-3~deb8u1
>>  i386 Header files for Linux 3.16.0-4-686-pae
>> > ii  linux-headers-3.16.0-4-common  3.16.7-ckt9-3~deb8u1
>>  i386 Common header files for Linux 3.16.0-4
>> >
>> > Can someone help in this?
>>
>>  should translate to /usr/include/linux/ata.h, unless scons
>> does some black magic with includes location.
>>
>> /usr/include/linux belongs to linux-libc-dev package, not kernel
>> headers.
>>
>> Since co-installing different versions of linux-libc-dev is not possible
>> in current stable Debian (jessie), you have the following options:
>>
>> 1) Use debootstap to make a chroot of older Debian version (presumably,
>> squeeze or older, as wheezy's linux-libc-dev does not have linux/ata.h).
>>
>> 2) Try to install an old linux-libc-dev (presumably, from squeeze),
>> possibly breaking your current installation beyond repair.
>>
>> Reco
>>
>>
>> --
>> To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
>> with a subject of "unsubscribe". Trouble? Contact
>> listmas...@lists.debian.org
>> Archive: https://lists.debian.org/20150616132243.GA11179@x101h
>>
>>
>


Re: Is it possible to install older linux-headers on Debian 8

2015-06-18 Thread Dhiraj Bhor
I am not in position to take first option.
I have tried second option but it gave me error like
*$ sudo dpkg -i linux-kernel-headers_2.6.18-7_i386.deb*
Selecting previously unselected package linux-kernel-headers.
dpkg: regarding linux-kernel-headers_2.6.18-7_i386.deb containing
linux-kernel-headers:
 linux-libc-dev:i386 conflicts with linux-kernel-headers
  linux-kernel-headers (version 2.6.18-7) is to be installed.

dpkg: error processing archive linux-kernel-headers_2.6.18-7_i386.deb
(--install):
 conflicting packages - not installing linux-kernel-headers
Errors were encountered while processing:
 linux-kernel-headers_2.6.18-7_i386.deb


Googling does not show much help.
Do i need to do something else?



On Tue, Jun 16, 2015 at 6:52 PM, Reco  wrote:

>  Hi.
>
> On Tue, Jun 16, 2015 at 04:57:56PM +0530, Dhiraj Bhor wrote:
> > Hey,
> > Can anyone redirect me to correct link or clue?
> >
> > On Mon, Jun 15, 2015 at 5:10 PM, Dhiraj Bhor 
> wrote:
> >
> > Hi all,
> >
> > I have one build system which is legacy and  i am just compiling the
> older code on new debian 8 machine.
> > Its a scons build and when i started the build, i got following
> error.
> > scons: done reading SConscript files.
> > scons: Building targets ...
> > scons: building associated BuildDir targets: OUTPUT/
> > C++ OUTPUT/MyCppFile.o
> > SOURCE/MyCppFile.cpp:35:23: fatal error: linux/ata.h: No such file
> or directory
> >  #include 
> >^
> > compilation terminated.
> > scons: *** [OUTPUT/MyCppFile.o] Error 1
> > scons: building terminated because of errors.
> > Makefile:116: recipe for target 'test' failed
> > make: *** [test] Error 2
> >
> > I searched on internet but no clue.
> > I have linux-headers installed and here is output:
> > $ dpkg -l | grep linux-headers
> > ii  linux-headers-3.16.0-4-686-pae 3.16.7-ckt9-3~deb8u1
>  i386 Header files for Linux 3.16.0-4-686-pae
> > ii  linux-headers-3.16.0-4-common  3.16.7-ckt9-3~deb8u1
>  i386 Common header files for Linux 3.16.0-4
> >
> > Can someone help in this?
>
>  should translate to /usr/include/linux/ata.h, unless scons
> does some black magic with includes location.
>
> /usr/include/linux belongs to linux-libc-dev package, not kernel
> headers.
>
> Since co-installing different versions of linux-libc-dev is not possible
> in current stable Debian (jessie), you have the following options:
>
> 1) Use debootstap to make a chroot of older Debian version (presumably,
> squeeze or older, as wheezy's linux-libc-dev does not have linux/ata.h).
>
> 2) Try to install an old linux-libc-dev (presumably, from squeeze),
> possibly breaking your current installation beyond repair.
>
> Reco
>
>
> --
> To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact
> listmas...@lists.debian.org
> Archive: https://lists.debian.org/20150616132243.GA11179@x101h
>
>


Re: Is it possible to install older linux-headers on Debian 8

2015-06-16 Thread Reco
 Hi.

On Tue, Jun 16, 2015 at 04:57:56PM +0530, Dhiraj Bhor wrote:
> Hey,
> Can anyone redirect me to correct link or clue?
> 
> On Mon, Jun 15, 2015 at 5:10 PM, Dhiraj Bhor  wrote:
> 
> Hi all,
> 
> I have one build system which is legacy and  i am just compiling the 
> older code on new debian 8 machine.
> Its a scons build and when i started the build, i got following error.
> scons: done reading SConscript files.
> scons: Building targets ...
> scons: building associated BuildDir targets: OUTPUT/
> C++ OUTPUT/MyCppFile.o
> SOURCE/MyCppFile.cpp:35:23: fatal error: linux/ata.h: No such file or 
> directory
>  #include 
>                        ^
> compilation terminated.
> scons: *** [OUTPUT/MyCppFile.o] Error 1
> scons: building terminated because of errors.
> Makefile:116: recipe for target 'test' failed
> make: *** [test] Error 2
> 
> I searched on internet but no clue.
> I have linux-headers installed and here is output:
> $ dpkg -l | grep linux-headers
> ii  linux-headers-3.16.0-4-686-pae 3.16.7-ckt9-3~deb8u1          i386     
>     Header files for Linux 3.16.0-4-686-pae
> ii  linux-headers-3.16.0-4-common  3.16.7-ckt9-3~deb8u1          i386     
>     Common header files for Linux 3.16.0-4
> 
> Can someone help in this?

 should translate to /usr/include/linux/ata.h, unless scons
does some black magic with includes location.

/usr/include/linux belongs to linux-libc-dev package, not kernel
headers.

Since co-installing different versions of linux-libc-dev is not possible
in current stable Debian (jessie), you have the following options:

1) Use debootstap to make a chroot of older Debian version (presumably,
squeeze or older, as wheezy's linux-libc-dev does not have linux/ata.h).

2) Try to install an old linux-libc-dev (presumably, from squeeze),
possibly breaking your current installation beyond repair.

Reco


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/20150616132243.GA11179@x101h



Re: Is it possible to install older linux-headers on Debian 8

2015-06-16 Thread Dhiraj Bhor
Hey,
Can anyone redirect me to correct link or clue?

On Mon, Jun 15, 2015 at 5:10 PM, Dhiraj Bhor  wrote:

> Hi all,
>
> I have one build system which is legacy and  i am just compiling the older
> code on new debian 8 machine.
> Its a scons build and when i started the build, i got following error.
> scons: done reading SConscript files.
> scons: Building targets ...
> scons: building associated BuildDir targets: OUTPUT/
> C++ OUTPUT/MyCppFile.o
> SOURCE/MyCppFile.cpp:35:23: fatal error: linux/ata.h: No such file or
> directory
>  #include 
>^
> compilation terminated.
> scons: *** [OUTPUT/MyCppFile.o] Error 1
> scons: building terminated because of errors.
> Makefile:116: recipe for target 'test' failed
> make: *** [test] Error 2
>
> I searched on internet but no clue.
> I have linux-headers installed and here is output:
> $ dpkg -l | grep linux-headers
> ii  linux-headers-3.16.0-4-686-pae 3.16.7-ckt9-3~deb8u1  i386
> Header files for Linux 3.16.0-4-686-pae
> ii  linux-headers-3.16.0-4-common  3.16.7-ckt9-3~deb8u1  i386
> Common header files for Linux 3.16.0-4
>
> Can someone help in this?
>
> Thanks,
> Dhiraj
>


Is it possible to install older linux-headers on Debian 8

2015-06-15 Thread Dhiraj Bhor
Hi all,

I have one build system which is legacy and  i am just compiling the older
code on new debian 8 machine.
Its a scons build and when i started the build, i got following error.
scons: done reading SConscript files.
scons: Building targets ...
scons: building associated BuildDir targets: OUTPUT/
C++ OUTPUT/MyCppFile.o
SOURCE/MyCppFile.cpp:35:23: fatal error: linux/ata.h: No such file or
directory
 #include 
   ^
compilation terminated.
scons: *** [OUTPUT/MyCppFile.o] Error 1
scons: building terminated because of errors.
Makefile:116: recipe for target 'test' failed
make: *** [test] Error 2

I searched on internet but no clue.
I have linux-headers installed and here is output:
$ dpkg -l | grep linux-headers
ii  linux-headers-3.16.0-4-686-pae 3.16.7-ckt9-3~deb8u1  i386
  Header files for Linux 3.16.0-4-686-pae
ii  linux-headers-3.16.0-4-common  3.16.7-ckt9-3~deb8u1  i386
  Common header files for Linux 3.16.0-4

Can someone help in this?

Thanks,
Dhiraj