fpm_atomic.h:64:8: error: macro names must be identifiers

Bug #437085 reported by dreamcat4
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
PHP-FPM
Status tracked in Master
Master
Fix Released
High
dreamcat4

Bug Description

Hello,

I receive an error when trying to build php-fpm on my CentOS 5 machine. Not sure what to make of it.

In file included from fpm_shm_slots.h:8,
                 from fpm_children.c:28:
fpm_atomic.h:64:8: error: macro names must be identifiers
make[2]: *** [libfpm_la-fpm_children.lo] Error 1
make[2]: Leaving directory `/path/php/sources/php-fpm-0.6-5.3.0/fpm'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/path/php/sources/php-fpm-0.6-5.3.0'
make: *** [all] Error

Any ideas?

dreamcat4 (dreamcat4)
Changed in php-fpm:
status: New → Confirmed
importance: Undecided → High
assignee: nobody → dreamcat4 (dreamcat4)
milestone: none → 0.6
Revision history for this message
dreamcat4 (dreamcat4) wrote :

Yeah,
This line:

#ifdef (__GNUC__) && (__GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 2))

worked allright on my GCC (Ubuntu 4.4.1-1ubuntu3), but not for CentOS.

should be:

#if (__GNUC__) && (__GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 2))

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.