I already have all of those packages installed.
I'm going to put aside the idea of building T2 on Debian. I'm going to
install T2 into a VM, and try having it build itself. Once I get some
experience with it in a known good environment, then I can come back and debug
my Debian problem.
Thanks for your help! I'm sure I'll be back asking for more :-)
--John
Aldas Nabazas wrote:
apt-get install subversion gcc g++ libncurses5-dev make gawk flex bzip2
curl bison zlib1g-dev
Let me know if you get stuck again or find any missing package yourself.
We might put it in howto section for others.
Cheers,
Aldas
On Tue, Aug 3, 2010 at 2:58 PM, John McNamee wrote:
> it's in bootstrap stage so it should be looking for host zlib ...
OK. I wasn't clear on where the headers were coming from at this
stage. zlib.h definitely exists in /usr/include.
I'm not sure if the T2 listserv allows EMAIL attachments, but I'll
give it a try. The squashfs-tools ERROR-LOG file is attached. If
there are other log files that might provides clues, please let me know.
The compiler error is:
Running make CC=gcc CPP=cpp CXX=g++
prefix=/home/jpm/work/t2-8.0/build/default-8.0-stable-generic-x86-i686-linux/TOOLCHAIN/tools.cross/usr
docdir=/home/jpm/work/t2-8.0/build/default-8.0-stable-generic-x86-i686-linux/TOOLCHAIN/tools.cross/usr/doc/squashfs-tools
CC_FOR_BUILD=cc BUILDCC=cc BUILD_CC=cc HOSTCC=cc HOST_CC=cc
STRIP=strip AR=ar LD=ld AS=as RANLIB=ranlib NM=nm
gcc -I. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -O2
-c -o mksquashfs.o mksquashfs.c
mksquashfs.c:39:18: error: zlib.h: No such file or directory
mksquashfs.c:834: error: expected ')' before '*' token
mksquashfs.c: In function 'mangle':
mksquashfs.c:910: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '*' token
mksquashfs.c:910: error: 'stream' undeclared (first use in this
function)
mksquashfs.c:910: error: (Each undeclared identifier is reported
only once
mksquashfs.c:910: error: for each function it appears in.)
mksquashfs.c: In function 'get_fragment':
mksquashfs.c:1674: error: 'Z_OK' undeclared (first use in this function)
mksquashfs.c:1675: error: 'Z_MEM_ERROR' undeclared (first use in
this function)
mksquashfs.c:1678: error: 'Z_BUF_ERROR' undeclared (first use in
this function)
mksquashfs.c: In function 'deflator':
mksquashfs.c:2368: error: 'z_stream' undeclared (first use in this
function)
mksquashfs.c:2368: error: 'stream' undeclared (first use in this
function)
mksquashfs.c: In function 'frag_deflator':
mksquashfs.c:2405: error: 'z_stream' undeclared (first use in this
function)
mksquashfs.c:2405: error: 'stream' undeclared (first use in this
function)
make: *** [mksquashfs.o] Error 1
Aldas Nabazas wrote:
it's in bootstrap stage so it should be looking for host zlib, what
error file says? it can't locate zlib.h?
On Tue, Aug 3, 2010 at 1:03 PM, John McNamee wrote:
zlib.h exists in /usr/include (on the host system), but not in
./build/.../usr/include.
-------- Original Message --------
Subject: Re: [t2] squashfs-tools build error
From: Aldas Nabazas <[email protected]>
To: T2 developers mailing list <[email protected]>
Date: 8/3/2010 6:25 AM
Hi John,
What's the location of your zlib.h? Also you can check
actual error
file for more details.
Cheers,
Aldas
On Tue, Aug 3, 2010 at 4:39 AM, John McNamee wrote:
I've got T2 8.0 hosted on a Debian Lenny system, and
ran into an
build error on squashfs-tools. It's trying to include
zlib.h, which
doesn't exist within the cross-compiled "build" tree (it
does exist
on the host Debian system). I'm not sure how to
even begin
to debug
this. Any ideas?
== 18:02:47 =[0]=> Building
filesystem/squashfs-tools [4.0
8.0-stable].
-> Reading package config:
package/filesystem/squashfs-tools/squashfs-tools.conf
-> Preparing build in
src.squashfs-tools.default.20100802.180244.6972.jpm-debian
-> Building. Writing output to
$root/var/adm/logs/0-squashfs-tools.out
!> mksquashfs.c: In function 'deflator':
!> mksquashfs.c:2368: error: 'z_stream' undeclared
(first use in
this function)
!> mksquashfs.c:2368: error: 'stream' undeclared
(first use
in this
function)
!> mksquashfs.c: In function 'frag_deflator':
!> mksquashfs.c:2405: error: 'z_stream' undeclared
(first use in
this function)
!> mksquashfs.c:2405: error: 'stream' undeclared
(first use
in this
function)
!> Due to previous errors, no 0-squashfs-tools.log file!
!> (Try enabling xtrace in the config to track an error
inside the
build system.)
-> $root/var/adm/logs/0-squashfs-tools.out ->
0-squashfs-tools.err
== 08/02/10 18:03:21 =[0]=> Aborted building package
squashfs-tools.
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[email protected] with a subject of: unsubscribe t2