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

From: Date: Mon, 15 Oct 2018 19:32:32 +0000
Subject: Bug #76825 [Fbk->Asn]: Undefined symbols ___cpuid_count
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-217581@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
 User updated by:    php-bugs-2018 at ryandesign dot com
 Reported by:        php-bugs-2018 at ryandesign dot com
 Summary:            Undefined symbols ___cpuid_count
-Status:             Feedback
+Status:             Assigned
 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:

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.


Previous Comments:
------------------------------------------------------------------------
[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

------------------------------------------------------------------------
[2018-09-04 09:28:03] laruence@php.net

Automatic comment on behalf of laruence@gmail.com
Revision: http://git.php.net/?p=php-src.git;a=commit;h=3497b75b732723b2f8d0745336d9fcaccb2e3dd7
Log: Fixed bug #76825 (Undefined symbols ___cpuid_count)

------------------------------------------------------------------------
[2018-08-31 10:58:43] php-bugs-2018 at ryandesign dot com

clang defines __GNUC__. clang identifies itself as gcc 4.2.1. If you want to check if it's
actually clang, you could check for __clang__.

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


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 (#217581) next »