You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@apr.apache.org by bu...@apache.org on 2022/11/26 22:15:22 UTC
[Bug 66364] New: "error: ‘mutex_proc_pthread_methods’ undeclared" when cross compiling
https://bz.apache.org/bugzilla/show_bug.cgi?id=66364
Bug ID: 66364
Summary: "error: ‘mutex_proc_pthread_methods’ undeclared" when
cross compiling
Product: APR
Version: HEAD
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P2
Component: APR
Assignee: bugs@apr.apache.org
Reporter: alex.iris.parker@gmail.com
Target Milestone: ---
Created attachment 38439
--> https://bz.apache.org/bugzilla/attachment.cgi?id=38439&action=edit
Patch to trust given ac_cv_file__dev_zero when cross compiling
APR uses AC_TRY_RUN to determine if:
* We have /dev/zero
* We can mmap /dev/zero
When cross compiling, the configure script can't determine characteristics of
the target. If the target has /dev/zero, you can set ac_cv_file__dev_zero=yes
to fill in an answer for the first question, but the configure script
immediately defeats that when answering the second.
AC_TRY_FUN takes four arguments: the test, and what happens on success,
failure, and cross-compiling. The APR script uses this as a "gate" to
clear ac_cv_file__dev_zero when /dev/zero exists but it turns out not
to be useable. It takes a pessimistic approach: if you can't "prove"
it is mmap-able, clear the flag.
This patch changes that to leave the flag alone while cross compiling;
just assume /dev/zero is mmap-able. It relies on ac_cv_file__dev_zero
to be correctly set for the target by the cross compilation environment.
The fourth parameter is changed to
[:] and not [] because [] engages autoconf's default cross-compiling
behavior, which raises an error.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@apr.apache.org
For additional commands, e-mail: bugs-help@apr.apache.org
[Bug 66364] "error: ‘mutex_proc_pthread_methods’ undeclared" when cross compiling
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=66364
Sam James <sa...@gentoo.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |sam@gentoo.org
--- Comment #1 from Sam James <sa...@gentoo.org> ---
I'm wondering if this was fixed by
https://github.com/apache/apr/commit/1b7323cb739f670d50ff85d6894a37b8d136f8e2
(patch stopped applying in Gentoo when bumping to 1.7.2, so looked into why).
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@apr.apache.org
For additional commands, e-mail: bugs-help@apr.apache.org
[Bug 66364] "error: ‘mutex_proc_pthread_methods’ undeclared" when cross compiling
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=66364
Sam James <sa...@gentoo.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
URL| |https://bugs.gentoo.org/830
| |833
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@apr.apache.org
For additional commands, e-mail: bugs-help@apr.apache.org