]> code.ossystems Code Review - openembedded-core.git/commit
apr: fix off_t size can't match when configure and in target glibc
authorDengke Du <dengke.du@windriver.com>
Tue, 20 Dec 2016 05:53:16 +0000 (13:53 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 22 Dec 2016 08:46:34 +0000 (08:46 +0000)
commite18820ca9202c07e2406d702c46f45415182b7a6
tree9ca34d66f2bd9c509fb674589bce98b9f63895e8
parentfbdfb39c011676fe61a4d58b62226126e0e9ec62
apr: fix off_t size can't match when configure and in target glibc

When subversion run on x86 and lib32 on x86-64, it use the APR's
apr.h header file. But when configure the APR, APR meets the cross
compiling, it was hardcoded in configure.in in apr source code. As
the following:

APR_CHECK_SIZEOF_EXTENDED([#include <sys/types.h>], off_t, 8)

It pass 8 bytes to off_t when meets cross compiling, but on x86 or lib32
the off_t in glibc was 4 bytes, so it let the application who use apr.h
go to wrong.

Such as subversion:

svnadmin create test

So we should let the APR detect the correct off_t when cross compiling,
change it to the following:

AC_CHECK_SIZEOF(off_t)

The same for the following hardcoded types for cross compiling:

pid_t 8
size_t 8
ssize_t 8

Change the above correspondingly.

Signed-off-by: Dengke Du <dengke.du@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/recipes-support/apr/apr/0001-apr-fix-off_t-size-doesn-t-match-in-glibc-when-cross.patch [new file with mode: 0644]
meta/recipes-support/apr/apr_1.5.2.bb