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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: shd at earthling dot net
New email:
PHP Version: OS:

 

 [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)

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Sun Jul 27 14:00:03 2025 UTC