Yes, zlib.h is present in /usr/include. I added it as a symlink to
/usr/src/kernels/4.4.6-rt14-1608221704nfv/include/linux/zlib.h.
Regards,
Sundar
From: Krishna [mailto:[email protected]]
Sent: Wednesday, March 22, 2017 11:32 PM
To: Nadathur, Sundar <[email protected]>
Cc: [email protected]
Subject: Re: Rumprun build fails due to zlib requirement
On 23 March 2017 at 04:50, Nadathur, Sundar
<[email protected]<mailto:[email protected]>> wrote:
When I run buildrump.sh, I get this error:
[… buildrump.sh]$ ./buildrump.sh
>> Fetching NetBSD sources to ./src using git
From https://github.com/rumpkernel/src-netbsd
* branch buildrump-src -> FETCH_HEAD
>> checkout done
>> NATIVE build environment probed
>> ERROR:
>> Host zlib (libz, -lz) required, please install one!
This comes from doesitbuild_host() in maketools(). But the equivalent program
compiles fine:
#!/usr/bin/env sh
doesitbuild_host ()
{
theprog="${1}"
shift
printf "${theprog}" \
| ${HOST_CC} -x c - -o /dev/null $*
}
doesitbuild_host \
'#include <zlib.h>
#include <stdlib.h>
int main() {gzopen(NULL, NULL); return 0;}' -lz \
|| die 'Host zlib (libz, -lz) required, please install one!'
Further, libz.so exists in /usr/lib64.
Please let me know how to proceed.
is zlib.h present as well?
cheers,
--krishna
--
Rivers know this: there is no hurry. We shall get there some day.
-- Winnie-the-pooh