Gentoo Archives: gentoo-embedded

From: Jason <gentoo@××××××××××.net>
To: gentoo-embedded@l.g.o
Subject: Re: [gentoo-embedded] openssl zlib.h failure for armeb
Date: Thu, 26 Apr 2007 18:25:24
Message-Id: 4630EE62.3030203@lakedaemon.net
In Reply to: [gentoo-embedded] openssl zlib.h failure for armeb by Jason
1 Jason wrote:
2 > My problem is that openssl-0.9.8{d,e} dies with:
3 >
4 > c_zlib.c:25:18: zlib.h: No such file or directory
5 >
6 > However, I xmerge'd zlib, and zlib.h is in ${ROOT}/usr/include/zlib.h.
7 > I could set USE="-zlib", but openssh dies with a similar error, so I
8 > eventually need it. And I'd like to find the core of the problem, since
9 > this is a learning exercise.
10 >
11 > I think the problem lies in ${SYSROOT} != ${ROOT}, since
12 > ${SYSROOT}/usr/include/ doesn't have zlib.h. Which makes sense since
13 > crossdev doesn't do that.
14
15 I hate to respond to my own post, but I think I just made some headway.
16 Out of frustration with Google, I started digging through my own
17 archive of gentoo-embedded. I found a reply from Mike F for a similar
18 problem. It doesn't appear to be in the archives, so I'll quote it here:
19
20 Re: [g-e] Cross compiling fails because of missing dependencies
21 on 20070324
22
23 you're expecting the cross-compiler to magically know
24 about all the headers/libraries in ROOT ... while this
25 would be nice, it'd be a breakdown in the logical
26 separation that exists with ROOT
27
28 if you did `ROOT=/usr/$CTARGET emerge lzo --nodeps`,
29 i bet it'd work then ...
30 -mike
31
32 This sounds like the solution to my problem, although I'm a bit hesitant
33 to muddy my ${SYSROOT}...
34
35 Also, this appears equivalent to 'xmerge --nodeps lzo', ie, dump it in
36 ${SYSROOT}, so I'll give it a shot.
37
38 Is this what most people do (libs/headers to SYSROOT)?
39
40 Jason.
41 --
42 gentoo-embedded@g.o mailing list

Replies

Subject Author
Re: [gentoo-embedded] openssl zlib.h failure for armeb Mike Frysinger <vapier@g.o>