Steve,<br> Try to replace the xlib_libXt-1.0.5-makestrs-nocc.patch with this one.<br><br>I grabbed it from upstream a while back and haven't had time to submit it.<br>It fixed the problem for me, but I don't know if it 'does the right thing(tm)'.<br>
<br>Dan Lykowski<br><br><br><br><br><div class="gmail_quote">On Mon, Jul 27, 2009 at 10:30 AM, Steve Bennett <span dir="ltr"><<a href="mailto:sablists@earthlink.net">sablists@earthlink.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi!<br>
<br>
I've been trying to setup a buildroot configuration (in this case an x86 environment, although PPC is next...) and have run into a snag getting an X11 environment included.   I've done pretty much the minimum configuration needed - setting the X Windows System server to tinyx and turning on xorg-server.<br>

<br>
But the build is hanging in the middle of the X11 build, in particular when building the makestrs.c module in the xlib libXt package.   It fails with an error:<br>
<br>
        makestrs.c:33:21: error: X11/Xos.h: No such file or directory<br>
<br>
I've put the full output at the end of this message.  (The string library function warnings bother me too, but they're at least just warnings...)  I've done quite a lot of searching and trying to figure this out before coming here, and it looks to me like the compiler command line is missing an include path to the staging directory's /usr/include directory.   That seems to be correctly referenced in the packages xlib_libXt.mk file (in XLIB_LIBXT_CONF_ENV), but there is also a patch (xlib_libXt-1.0.5-makestrs-nocc.patch) in the package folder which sets it up to use gcc (the HOST_CC part of the patch) and doesn't seem to take into account the staging directory.<br>

<br>
I'm making an educated guess that the patch effectively overrides the XLIB_LIBXT_CONF_ENV setting (or something else isn't including that setting), but I'm not sure what the right fix for this is.   A brute force fix would be something like changing the patch to read:<br>

<br>
        HOST_CC=gcc -I$(STAGING_DIR)/usr/include<br>
<br>
...but is that the correct approach here?  And why hasn't anything regarding this issue come up before?  It seems odd that nobody else is running into this.<br>
<br>
-->Steve Bennett<br>
<br>
----<br>
>>> xlib_libXt 1.0.5 Building<br>
PATH="/home/steveb/Documents/CTBaseLinux/buildroot-2009.05/toolchain_build_i486/bin:/home/steveb/Documents/CTBaseLinux/buildroot-2009.05/build_i486/host_dir/bin:/home/steveb/Documents/CTBaseLinux/buildroot-2009.05/build_i486/host_dir/usr/bin:/home/steveb/Documents/CTBaseLinux/buildroot-2009.05/build_i486/staging_dir/bin:/home/steveb/Documents/CTBaseLinux/buildroot-2009.05/build_i486/staging_dir/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games"  /usr/bin/make -j1  -C /home/steveb/Documents/CTBaseLinux/buildroot-2009.05/build_i486/xlib_libXt-1.0.5/<br>

make[1]: Entering directory `/home/steveb/Documents/CTBaseLinux/buildroot-2009.05/build_i486/xlib_libXt-1.0.5'<br>
/usr/bin/make  all-recursive<br>
make[2]: Entering directory `/home/steveb/Documents/CTBaseLinux/buildroot-2009.05/build_i486/xlib_libXt-1.0.5'<br>
Making all in util<br>
make[3]: Entering directory `/home/steveb/Documents/CTBaseLinux/buildroot-2009.05/build_i486/xlib_libXt-1.0.5/util'<br>
if gcc -DHAVE_CONFIG_H -I. -I. -I..      -MT makestrs-makestrs.o -MD -MP -MF ".deps/makestrs-makestrs.Tpo" -c -o makestrs-makestrs.o `test -f 'makestrs.c' || echo './'`makestrs.c; \<br>
        then mv -f ".deps/makestrs-makestrs.Tpo" ".deps/makestrs-makestrs.Po"; else rm -f ".deps/makestrs-makestrs.Tpo"; exit 1; fi<br>
makestrs.c:33:21: error: X11/Xos.h: No such file or directory<br>
makestrs.c: In function ‚Äòifopen‚Äô:<br>
makestrs.c:106: warning: incompatible implicit declaration of built-in function ‚Äòstrlen‚Äô<br>
makestrs.c:111: warning: incompatible implicit declaration of built-in function ‚Äòstrcpy‚Äô<br>
makestrs.c:112: warning: incompatible implicit declaration of built-in function ‚Äòstrcat‚Äô<br>
makestrs.c: In function ‚ÄòCopyTmplProlog‚Äô:<br>
makestrs.c:236: warning: incompatible implicit declaration of built-in function ‚Äòstrlen‚Äô<br>
makestrs.c: In function ‚ÄòWriteHeader‚Äô:<br>
makestrs.c:280: warning: incompatible implicit declaration of built-in function ‚Äòstrlen‚Äô<br>
makestrs.c:284: warning: incompatible implicit declaration of built-in function ‚Äòstrlen‚Äô<br>
makestrs.c: In function ‚ÄòDoLine‚Äô:<br>
makestrs.c:479: warning: incompatible implicit declaration of built-in function ‚Äòstrlen‚Äô<br>
makestrs.c:509: warning: incompatible implicit declaration of built-in function ‚Äòstrcpy‚Äô<br>
makestrs.c:528: warning: incompatible implicit declaration of built-in function ‚Äòstrcpy‚Äô<br>
makestrs.c:550: warning: incompatible implicit declaration of built-in function ‚Äòstrcpy‚Äô<br>
makestrs.c:592: warning: incompatible implicit declaration of built-in function ‚Äòindex‚Äô<br>
makestrs.c:598: warning: incompatible implicit declaration of built-in function ‚Äòstrcat‚Äô<br>
makestrs.c: In function ‚ÄòIntelABIIndexEntries‚Äô:<br>
makestrs.c:633: warning: incompatible implicit declaration of built-in function ‚Äòstrlen‚Äô<br>
makestrs.c: In function ‚ÄòDefaultIndexEntries‚Äô:<br>
makestrs.c:647: warning: incompatible implicit declaration of built-in function ‚Äòstrlen‚Äô<br>
makestrs.c: In function ‚ÄòDoComment‚Äô:<br>
makestrs.c:675: warning: incompatible implicit declaration of built-in function ‚Äòindex‚Äô<br>
makestrs.c:680: warning: incompatible implicit declaration of built-in function ‚Äòstrncpy‚Äô<br>
makestrs.c: In function ‚Äòmain‚Äô:<br>
makestrs.c:742: warning: incompatible implicit declaration of built-in function ‚Äòstrlen‚Äô<br>
make[3]: *** [makestrs-makestrs.o] Error 1<br>
make[3]: Leaving directory `/home/steveb/Documents/CTBaseLinux/buildroot-2009.05/build_i486/xlib_libXt-1.0.5/util'<br>
make[2]: *** [all-recursive] Error 1<br>
make[2]: Leaving directory `/home/steveb/Documents/CTBaseLinux/buildroot-2009.05/build_i486/xlib_libXt-1.0.5'<br>
make[1]: *** [all] Error 2<br>
make[1]: Leaving directory `/home/steveb/Documents/CTBaseLinux/buildroot-2009.05/build_i486/xlib_libXt-1.0.5'<br>
make: *** [/home/steveb/Documents/CTBaseLinux/buildroot-2009.05/build_i486/xlib_libXt-1.0.5/.stamp_built] Error 2<br>
<br>
_______________________________________________<br>
buildroot mailing list<br>
<a href="mailto:buildroot@busybox.net" target="_blank">buildroot@busybox.net</a><br>
<a href="http://lists.busybox.net/mailman/listinfo/buildroot" target="_blank">http://lists.busybox.net/mailman/listinfo/buildroot</a><br>
</blockquote></div><br>