Bug #76825 [Asn->Fbk]: Undefined symbols ___cpuid_count

From: Date: Wed, 17 Oct 2018 12:00:00 +0000
Subject: Bug #76825 [Asn->Fbk]: Undefined symbols ___cpuid_count
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-217609@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=76825&edit=1

 ID:                 76825
 Updated by:         cmb@php.net
 Reported by:        php-bugs-2018 at ryandesign dot com
 Summary:            Undefined symbols ___cpuid_count
-Status:             Assigned
+Status:             Feedback
 Type:               Bug
 Package:            Compile Failure
 Operating System:   Mac OS X 10.7.5
 PHP Version:        7.3.0beta3
 Assigned To:        cmb
 Block user comment: N
 Private report:     N

 New Comment:

Please check the attached check-cpuid-count patch.


Previous Comments:
------------------------------------------------------------------------
[2018-10-17 11:59:56] cmb@php.net

The following patch has been added/updated:

Patch Name: check-cpuid-count
Revision:   1539777596
URL:        https://bugs.php.net/patch-display.php?bug=76825&patch=check-cpuid-count&revision=1539777596

------------------------------------------------------------------------
[2018-10-15 19:32:32] php-bugs-2018 at ryandesign dot com

Yes, if I edit Zend/zend_cpuinfo.c and change "# ifdef HAVE_CPUID_H" to "# if 0"
then it builds and runs. So I think it just needs a more specific check for the existence of
__cpuid_count and not just the existence of cpuid.h.

------------------------------------------------------------------------
[2018-10-05 09:54:27] cmb@php.net

Does it work for you if you remove the HAVE_CPUID_H part[1] (plus
the respective #endif[2])?

[1] <https://github.com/php/php-src/blob/php-7.3.0RC2/Zend/zend_cpuinfo.c#L32-L37>
[2] <https://github.com/php/php-src/blob/php-7.3.0RC2/Zend/zend_cpuinfo.c#L45>

------------------------------------------------------------------------
[2018-10-05 02:35:46] php-bugs-2018 at ryandesign dot com

Related To: Bug #76826

------------------------------------------------------------------------
[2018-10-05 02:33:55] php-bugs-2018 at ryandesign dot com

The problem is still there in 7.3.0RC2.

The system does have cpuid.h, but this cpuid.h does not have __cpuid_count.

Here is a fresh build log from PHP 7.3.0RC2:

https://build.macports.org/builders/ports-10.7_x86_64_legacy-builder/builds/78703/steps/install-port/logs/stdio

------------------------------------------------------------------------


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=76825


--
Edit this bug report at https://bugs.php.net/bug.php?id=76825&edit=1


Thread (13 messages)

« previous php.bugs (#217609) next »