On Tue, Oct 14, 2008 at 4:54 PM, Hans Ekbrand <[EMAIL PROTECTED]>wrote:

>  On Tue, Oct 14, 2008 at 04:37:56PM +0300, Aioanei Rares wrote:
> > On Tue, Oct 14, 2008 at 3:15 PM, Hans Ekbrand <[EMAIL PROTECTED]
> >wrote:
> >
> > > On Tue, Oct 14, 2008 at 06:57:56AM -0500, Hugo Vanwoerkom wrote:
> > > > Hans Ekbrand wrote:
> > > > >Hi list!
> > > > >
> > > > >I was trying to backport libcups2-dev from lenny to etch when I met
> > > > >with the following error (from config.log)
> > > > >
> > > > <snip>
> > > > >/usr/include/bits/local_lim.h:36:26: error: linux/limits.h: No such
> file
> > > > >or directory
> > > >
> > > > <snip>
> > > > >
> > > > >How do I get around this?
> > > > >
> > > > >I did try to build cups again after having installed
> > > > >linux-headers-2.6.18-6-486, since linux/limit.h exist in that
> package,
> > > > >but that didn't help :-(
> > > > >
> > > >
> > > > What error did you get then? Because limits.h then existed.
> > >
> > > I got the same error. Which made me think, that I had to help the
> > > build process to find linux/limit.h. Even though I have read for quite
> > > some time ago, that in debian you should need to tamper with symlinks
> > > for kernel-headers, I did just that.
> > >
> > > # cd /usr/include/linux
> > > # ln -s /usr/src/linux-headers-2.6.18-6-486/include/linux/limits.h
> > >
> > > Tried to build again, and this time the build process got longer and
> > > bailed out with an other error:
> > >
> > > Making all in cups...
> > > make[2]: Entering directory `/root/cups-1.3.8/cups'
> > > Compiling adminutil.c...
> > > In file included from /usr/include/sys/socket.h:35,
> > >                 from http.h:43,
> > >                 from ipp.h:26,
> > >                 from cups.h:32,
> > >                 from adminutil.h:29,
> > >                 from adminutil.c:36:
> > > /usr/include/bits/socket.h:304:24: error: asm/socket.h: No such file or
> > > directory
> > > In file included from /usr/include/errno.h:36,
> > >                 from adminutil.c:39:
> > > /usr/include/bits/errno.h:25:26: error: linux/errno.h: No such file or
> > > directory
> > > In file included from /usr/include/signal.h:333,
> > >                 from /usr/include/sys/wait.h:30,
> > >                 from adminutil.c:45:
> > > /usr/include/bits/sigcontext.h:28:29: error: asm/sigcontext.h: No such
> file
> > > or directory
> > > make[2]: *** [adminutil.o] Error 1
> > >
> > > This time asm/socket.h is not on my system, but many very similar files
> do
> > > exist here:
> > >
> > > $ find /usr/include -iname socket.h
> > > /usr/include/bits/socket.h
> > > /usr/include/sys/socket.h
> > > /usr/include/asm-i486/socket.h
> > > /usr/include/asm-x86_64/socket.h
> > >
> > > but not asm/socket.h
> > >
> > > Rather than continuing to manually hack around each the compilation
> > > path/problem, I would like to understand what is wrong with my system.
> > >
> > > --
> > > Note that I use Debian version 4.0
> > > Linux amin 2.6.18-4-486 #1 Mon Mar 26 16:39:10 UTC 2007 i586 GNU/Linux
> > > Hans Ekbrand (http://sociologi.cjb.net) <[EMAIL PROTECTED]>
> > > GPG Fingerprint: 1408 C8D5 1E7D 4C9C C27E 014F 7C2C 872A 7050 614E
> > >
> > > -----BEGIN PGP SIGNATURE-----
> > > Version: GnuPG v1.4.6 (GNU/Linux)
> > >
> > > iD8DBQFI9I1sfCyHKnBQYU4RAs90AJ4rUQWuylI0aF4JXVxoZHbqHYCvSgCfbYST
> > > သ岿䣨ⳤ爣콘�=
> > > =jRHx
> > > -----END PGP SIGNATURE-----
> > >
> > > Do you have the kernel source (for your particular version) installed?
>
> No.
>
> $ uname -a
> Linux debian 2.6.18-6-486 #1 Thu Apr 24 07:59:30 UTC 2008 i486 GNU/Linux
>
> $ dpkg -l "linux-source-*" | grep ^ii
> ii  linux-source-2.6.24    2.6.24-6~etchnhalf.5   Linux kernel source for
> version 2.6.24 with Debian patches
>
> But I do have the header packages installed.
>
> $ dpkg -l "linux-*headers*" | grep ^ii
> ii  linux-headers-2.6.18-6     2.6.18.dfsg.1-22etch3 Common header files
> for Linux 2.6.18
> ii  linux-headers-2.6.18-6-486 2.6.18.dfsg.1-22etch3 Header files for Linux
> 2.6.18 on x86
> ii  linux-kernel-headers       2.6.18-7              Linux Kernel Headers
> for development
>
> --
> Hans Ekbrand (http://sociologi.cjb.net) <[EMAIL PROTECTED]>
> Q. What is that strange attachment in this mail?
> A. My digital signature, see www.gnupg.org for info on how you could
>   use it to ensure that this mail is from me and has not been
>   altered on the way to you.
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.6 (GNU/Linux)
>
> iD8DBQFI9KSifCyHKnBQYU4RAq1XAKDP1tcm5fJQi1GXJSBsaCUfx6ubaQCfWx38
> 6l17s7bLTNny/ebtM2yvvZo=
> =XSfd
> -----END PGP SIGNATURE-----
>
> Install the source for the kernel in use and see if the problem still
appears.

Reply via email to