vserver recompile zlib.h error

2009-01-21 Thread Declan Mullen

Hi

I'm trying to compile the source for Lenny's 
linux-image-2.6.26-1-vserver-686 kernel (version 2.6.26-13), but I'm 
getting the below zlib.h missing error. Any ideas what I am doing wrong?


Compile error:

  /usr/bin/makeARCH=i386 \
   -C Documentation/lguest
  make[1]: Entering directory
  `/usr/src/linux-source-2.6.26/Documentation/lguest'
  cc -Wall -Wmissing-declarations -Wmissing-prototypes -O3
  -I../../includelguest.c  -lz -o lguest
  lguest.c:34:18: error: zlib.h: No such file or directory
  make[1]: *** [lguest] Error 1
  make[1]: Leaving directory
  `/usr/src/linux-source-2.6.26/Documentation/lguest'
  make: *** [debian/stamp/build/kernel] Error 2

A find for zlib.h finds:

  /usr/src/linux-source-2.6.26/include/config/jffs2/zlib.h
  /usr/src/linux-source-2.6.26/include/linux/zlib.h

I have installed linux-source-2.6.26 and linux-patch-debian-2.6.26, then 
patched the source with the vserver patches, ie:


  # cd /usr/src/linux-source-2.6.26
  # /usr/src/kernel-patches/all/2.6.26/apply/debian -a i386 -f vserver

Then put in place the default .config from 
linux-image-2.6.26-1-vserver-686 package:


  # make clean
  # make mrproper
  # cp /boot/config-2.6.26-1-vserver-686 .config

Then edited the .config to remove only the IPv6 support via:

  # make menuconfig

Then attempted the compile:

  # make-kpkg clean
  # make-kpkg --initrd kernel_image

Eventually I get the above zlib.h not found error.

Any ideas what I have done wrong ?

BTW, installing linux-patch-debian-2.6.26 also installed its 
dependency linux-support-2.6.26-1 which put in place 
/usr/src/linux-support-2.6.26-1, was I suppose to have done anything 
with that ?


Thanks,
Declan


--
To UNSUBSCRIBE, email to debian-kernel-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Re: vserver recompile zlib.h error

2009-01-21 Thread dann frazier
On Wed, Jan 21, 2009 at 11:39:52PM +1100, Declan Mullen wrote:
 Hi

 I'm trying to compile the source for Lenny's 
 linux-image-2.6.26-1-vserver-686 kernel (version 2.6.26-13), but I'm 
 getting the below zlib.h missing error. Any ideas what I am doing wrong?

 Compile error:

   /usr/bin/makeARCH=i386 \
-C Documentation/lguest
   make[1]: Entering directory
   `/usr/src/linux-source-2.6.26/Documentation/lguest'
   cc -Wall -Wmissing-declarations -Wmissing-prototypes -O3
   -I../../includelguest.c  -lz -o lguest
   lguest.c:34:18: error: zlib.h: No such file or directory
   make[1]: *** [lguest] Error 1
   make[1]: Leaving directory
   `/usr/src/linux-source-2.6.26/Documentation/lguest'
   make: *** [debian/stamp/build/kernel] Error 2

Try:
 apt-get install zlib1g-dev

-- 
dann frazier


-- 
To UNSUBSCRIBE, email to debian-kernel-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org