On Mon, 2014-04-14 at 19:43 +0200, Gerhard Sittig wrote: > > in the absence of OpenSSL headers in the host, builds for the > u-boot-mkimage-native package fail with the following error > > mxsimage.c:18:25: fatal error: openssl/evp.h: No such file or directory > > the error goes unnoticed when the host has libssl-dev installed, which > could be considered another issue because one could argue the host's > OpenSSL configuration should not influence the Yocto build
Maybe I should rephrase this and provide a little more context for clarity. Here is the situation: bitbake wants to compile u-boot-mkimage-native, because the machine's conf specifies uImage as the kernel format, so the build process depends on the mkimage(1) host tool. The mxsimage.o object creation fails because OpenSSL headers are not found, _although_ they reside in the x86_64 sysroot. This is the actual problem. Existing headers are not referenced. As if the sysroot spec "got lost" when building U-Boot tools. When libssl-dev is installed in the build machine (outside of Yocto's sysroot), these headers "are found". Which is another issue that can be considered independent from the first one. Software would get built against a different set of header files than the libraries which get referenced at runtime. The customer faced this compile error after he started a project with a newly setup build machine. I did not notice, because my workstation had libssl-dev installed. When I removed the host's package, I could reproduce the build error. The patch fixes the build error. I do agree that building the 'tools' part of the U-Boot project somehow isn't trivial. It's not as straightforward as building other applications is. virtually yours Gerhard Sittig -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr. 5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-0 Fax: +49-8142-66989-80 Email: [email protected] _______________________________________________ eldk mailing list [email protected] http://lists.denx.de/mailman/listinfo/eldk
