From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Petazzoni Date: Thu, 17 May 2012 15:34:12 +0200 Subject: [Buildroot] [PATCH 1/2] socat: fix build failure due to ext2_fs.h header, bump version In-Reply-To: <1337253358-5050-1-git-send-email-thomas.petazzoni@free-electrons.com> References: <1337253358-5050-1-git-send-email-thomas.petazzoni@free-electrons.com> Message-ID: <20120517153412.1c5c10d3@skate> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net Le Thu, 17 May 2012 13:15:57 +0200, Thomas Petazzoni a ?crit : > In kernel >= 3.3, the ext2_fs.h can no longer be imported from > userspace. This has been fixed for internal toolchains by adding a > patch to kernel headers, but this doesn't work with toolchains > generated by Crosstool-NG, or potentially upcoming external > toolchains. > > socat in fact has a test in its configure.in, but the configure was > generated too long ago, and the generated test relies on the > preprocessor result and not the compiler result (but warns that in the > future, the compiler result will be used instead of the preprocessor > result). > > So, by running autoconf on this package, we fix the problem: it > properly checks whether ext2_fs is usable or not, and acts > accordingly. Of course, it means that with recent versions of the > kernel, ext2-specific features of socat are unavailable, and we'll > have to wait for the socat developers to adapt their code so that they > use the e2fsprogs headers. Forgot to say so in the commit log, but this fixes: http://autobuild.buildroot.org/results/fb8f118d0051d01f41cdc50a90df05f9d648e433/build-end.log Thomas -- Thomas Petazzoni, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. http://free-electrons.com