Bug->Doc #72953 [Opn]: src/ext/standard/dns.c:328:2: error: unknown type name 'HEADER'
| From: | cmb@php.net | Date: | Thu, 01 Sep 2016 14:40:52 +0000 |
| Subject: | Bug->Doc #72953 [Opn]: src/ext/standard/dns.c:328:2: error: unknown type name 'HEADER' | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-13871@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=72953&edit=1
ID: 72953
Updated by: cmb@php.net
Reported by: subins2000 at gmail dot com
Summary: src/ext/standard/dns.c:328:2: error: unknown type
name 'HEADER'
Status: Open
-Type: Bug
+Type: Documentation Problem
-Package: Unknown/Other Function
+Package: Compile Failure
Operating System: Ubuntu 16.04 Xenial Xerus
PHP Version: 7.0.10
-Assigned To:
+Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
> I have successfully compiled PHP on arm with arm-linux-gnueabi.
Fine! So I'm marking this as documentation issue.
> Should I make a new bug report ?
Yes, please.
Previous Comments:
------------------------------------------------------------------------
[2016-09-01 14:19:20] subins2000 at gmail dot com
Hey,
I have decided to not compile using Android toolchain. I have successfully compiled PHP on arm
with arm-linux-gnueabi.
One thing, while compiling with it I got an error :
sapi/phpdbg/phpdbg_prompt.o: In function
phpdbg_load_module_or_extension':
sapi/phpdbg/phpdbg_prompt.c:1046: undefined reference to DL_LOAD
It got fixed with this patch : https://patchwork.ozlabs.org/patch/657181/
Should I make a new bug report ?
------------------------------------------------------------------------
[2016-09-01 13:06:50] cmb@php.net
> The Android toolchain doesn't have the nameser_compat.h header
> file
Then, I'm afraid, we can't do much. :-(
------------------------------------------------------------------------
[2016-08-30 14:49:46] subins2000 at gmail dot com
I applied the patch. But the nameser_compat.h file is not found :
ext/standard/dns.c:51:33: fatal error: arpa/nameser_compat.h: No such file or directory
The Android toolchain doesn't have the nameser_compat.h header file[1]
[1] https://android.googlesource.com/platform/prebuilts/ndk/+/6d8fd94e317c06e91e93c161bc7da0ca0ffeffb2/5/platforms/android-3/arch-arm/usr/include/arpa/
------------------------------------------------------------------------
[2016-08-30 14:05:57] cmb@php.net
The following patch has been added/updated:
Patch Name: nameser_compat_hack
Revision: 1472565957
URL: https://bugs.php.net/patch-display.php?bug=72953&patch=nameser_compat_hack&revision=1472565957
------------------------------------------------------------------------
[2016-08-30 14:05:27] cmb@php.net
struct HEADER and the other missing macros are supposed to be
declared in arpa/nameser_compat.h, which again is supposed to be
included from arpa/nameser.h. However, the Android SDK keeps
arpa/nameser.h intentionally blank[1].
I have some doubts that this is a good idea, and I don't know how
to solve this issue properly for PHP, but for a start you may try
to also include arpa/nameser_compat.h (see the attached patch
nameser_compat_hack).
[1] <https://android.googlesource.com/platform/prebuilts/ndk/+/6d8fd94e317c06e91e93c161bc7da0ca0ffeffb2/5/platforms/android-3/arch-arm/usr/include/arpa/nameser.h>
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=72953
--
Edit this bug report at https://bugs.php.net/bug.php?id=72953&edit=1