Jason wrote:
> My problem is that openssl-0.9.8{d,e} dies with:
> 
> c_zlib.c:25:18: zlib.h: No such file or directory
> 
> However, I xmerge'd zlib, and zlib.h is in ${ROOT}/usr/include/zlib.h.
> I could set USE="-zlib", but openssh dies with a similar error, so I
> eventually need it.  And I'd like to find the core of the problem, since
> this is a learning exercise.
> 
> I think the problem lies in ${SYSROOT} != ${ROOT}, since
> ${SYSROOT}/usr/include/ doesn't have zlib.h.  Which makes sense since
> crossdev doesn't do that.

I hate to respond to my own post, but I think I just made some headway.
 Out of frustration with Google, I started digging through my own
archive of gentoo-embedded.  I found a reply from Mike F for a similar
problem.  It doesn't appear to be in the archives, so I'll quote it here:

        Re: [g-e] Cross compiling fails because of missing dependencies
        on 20070324

        you're expecting the cross-compiler to magically know
        about all the headers/libraries in ROOT ... while this
        would be nice, it'd be a breakdown in the logical
        separation that exists with ROOT

        if you did `ROOT=/usr/$CTARGET emerge lzo --nodeps`,
        i bet it'd work then ...
        -mike

This sounds like the solution to my problem, although I'm a bit hesitant
to muddy my ${SYSROOT}...

Also, this appears equivalent to 'xmerge --nodeps lzo', ie, dump it in
${SYSROOT}, so I'll give it a shot.

Is this what most people do (libs/headers to SYSROOT)?

Jason.
-- 
[EMAIL PROTECTED] mailing list

Reply via email to