php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #53832 Incorrect predefined constant symbol causes link failure
Submitted: 2011-01-24 23:37 UTC Modified: 2011-01-25 00:32 UTC
From: shd at earthling dot net Assigned:
Status: Not a bug Package: Compile Failure
PHP Version: 5.3.5 OS: Linux
Private report: No CVE-ID: None
 [2011-01-24 23:37 UTC] shd at earthling dot net
Description:
------------
Compilation will fail with errors:
ext/standard/php_crypt_r.c:100: undefined reference to `membar_producer'
ext/standard/php_crypt_r.c:101: undefined reference to `atomic_add_int'
collect2: ld returned 1 exit status

due to a reference to __GNUC_MINOR in that file. The correct predefined constant is named __GNUC_MINOR__

Small patch (attached) fixes this and compilation and linking succeed normally.


Patches

fix-predefined-constant-__GNUC_MINOR__ (last revision 2011-01-24 22:38 UTC by shd at earthling dot net)

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-01-25 00:32 UTC] felipe@php.net
-Status: Open +Status: Bogus
 [2011-01-25 00:32 UTC] felipe@php.net
This already has been fixed. (Dec 12)

http://svn.php.net/viewvc?view=revision&revision=306305

Thanks anyways! :)
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue May 21 12:01:34 2024 UTC