# HEAD doesnt compile

- Thread: https://externals.io/message/16725
- Original archive: https://news-web.php.net/php.internals/16725
- Started by Rob Richards on 2005-06-16T12:06:55+00:00
- Messages: 3
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #16725 — Rob Richards — 2005-06-16T12:06:55+00:00

URL: https://externals.io/message/16725#16725

Can no longer compile HEAD. When replacing PHP_ARRAY_CMP_FUNC_VARS in 
the 2 static functions with the actual variable definitions it compiles 
fine.

/home/rrichards/php5/ext/standard/array.c: In function 
`php_array_intersect':
/home/rrichards/php5/ext/standard/array.c:2864: parse error before `int'
/home/rrichards/php5/ext/standard/array.c:2879: 
`intersect_key_compare_func' undeclared (first use in this function)
/home/rrichards/php5/ext/standard/array.c:2879: (Each undeclared 
identifier is reported only once
/home/rrichards/php5/ext/standard/array.c:2879: for each function it 
appears in.)
/home/rrichards/php5/ext/standard/array.c:2888: 
`intersect_data_compare_func' undeclared (first use in this function)
/home/rrichards/php5/ext/standard/array.c:3051: 
`intersect_data_compare_func' used prior to declaration
/home/rrichards/php5/ext/standard/array.c:3051: warning: implicit 
declaration of function `intersect_data_compare_func'
/home/rrichards/php5/ext/standard/array.c:3055: 
`intersect_key_compare_func' used prior to declaration
/home/rrichards/php5/ext/standard/array.c:3055: warning: implicit 
declaration of function `intersect_key_compare_func'
/home/rrichards/php5/ext/standard/array.c:3069: 
`intersect_data_compare_func' used prior to declaration
/home/rrichards/php5/ext/standard/array.c:3115: 
`intersect_data_compare_func' used prior to declaration
/home/rrichards/php5/ext/standard/array.c:3131: 
`intersect_data_compare_func' used prior to declaration
/home/rrichards/php5/ext/standard/array.c: In function `php_array_diff':
/home/rrichards/php5/ext/standard/array.c:3239: parse error before `int'
/home/rrichards/php5/ext/standard/array.c:3255: `diff_key_compare_func' 
undeclared (first use in this function)
/home/rrichards/php5/ext/standard/array.c:3264: `diff_data_compare_func' 
undeclared (first use in this function)
/home/rrichards/php5/ext/standard/array.c:3427: `diff_data_compare_func' 
used prior to declaration
/home/rrichards/php5/ext/standard/array.c:3427: warning: implicit 
declaration of function `diff_data_compare_func'
/home/rrichards/php5/ext/standard/array.c:3431: `diff_key_compare_func' 
used prior to declaration
/home/rrichards/php5/ext/standard/array.c:3431: warning: implicit 
declaration of function `diff_key_compare_func'
/home/rrichards/php5/ext/standard/array.c:3450: `diff_data_compare_func' 
used prior to declaration
/home/rrichards/php5/ext/standard/array.c:3489: `diff_data_compare_func' 
used prior to declaration
/home/rrichards/php5/ext/standard/array.c:3505: `diff_data_compare_func' 
used prior to declaration
make: *** [ext/standard/array.lo] Error 1

Rob

---

## #16732 — Wez Furlong — 2005-06-16T15:03:59+00:00

URL: https://externals.io/message/16725#16732 · In reply to: #16725

I just fixed this; it was a trailing ; problem in that macro.

--Wez.


> Can no longer compile HEAD. When replacing PHP_ARRAY_CMP_FUNC_VARS in
> the 2 static functions with the actual variable definitions it compiles
> fine.
> 
> /home/rrichards/php5/ext/standard/array.c: In function
> `php_array_intersect':
> /home/rrichards/php5/ext/standard/array.c:2864: parse error before `int'
> /home/rrichards/php5/ext/standard/array.c:2879:
> `intersect_key_compare_func' undeclared (first use in this function)
> /home/rrichards/php5/ext/standard/array.c:2879: (Each undeclared
> identifier is reported only once
> /home/rrichards/php5/ext/standard/array.c:2879: for each function it
> appears in.)
> /home/rrichards/php5/ext/standard/array.c:2888:
> `intersect_data_compare_func' undeclared (first use in this function)
> /home/rrichards/php5/ext/standard/array.c:3051:
> `intersect_data_compare_func' used prior to declaration
> /home/rrichards/php5/ext/standard/array.c:3051: warning: implicit
> declaration of function `intersect_data_compare_func'
> /home/rrichards/php5/ext/standard/array.c:3055:
> `intersect_key_compare_func' used prior to declaration
> /home/rrichards/php5/ext/standard/array.c:3055: warning: implicit
> declaration of function `intersect_key_compare_func'
> /home/rrichards/php5/ext/standard/array.c:3069:
> `intersect_data_compare_func' used prior to declaration
> /home/rrichards/php5/ext/standard/array.c:3115:
> `intersect_data_compare_func' used prior to declaration
> /home/rrichards/php5/ext/standard/array.c:3131:
> `intersect_data_compare_func' used prior to declaration
> /home/rrichards/php5/ext/standard/array.c: In function `php_array_diff':
> /home/rrichards/php5/ext/standard/array.c:3239: parse error before `int'
> /home/rrichards/php5/ext/standard/array.c:3255: `diff_key_compare_func'
> undeclared (first use in this function)
> /home/rrichards/php5/ext/standard/array.c:3264: `diff_data_compare_func'
> undeclared (first use in this function)
> /home/rrichards/php5/ext/standard/array.c:3427: `diff_data_compare_func'
> used prior to declaration
> /home/rrichards/php5/ext/standard/array.c:3427: warning: implicit
> declaration of function `diff_data_compare_func'
> /home/rrichards/php5/ext/standard/array.c:3431: `diff_key_compare_func'
> used prior to declaration
> /home/rrichards/php5/ext/standard/array.c:3431: warning: implicit
> declaration of function `diff_key_compare_func'
> /home/rrichards/php5/ext/standard/array.c:3450: `diff_data_compare_func'
> used prior to declaration
> /home/rrichards/php5/ext/standard/array.c:3489: `diff_data_compare_func'
> used prior to declaration
> /home/rrichards/php5/ext/standard/array.c:3505: `diff_data_compare_func'
> used prior to declaration
> make: *** [ext/standard/array.lo] Error 1
> 
> Rob

---

## #16734 — Rob Richards — 2005-06-16T15:19:11+00:00

URL: https://externals.io/message/16725#16734 · In reply to: #16732

Thanks. That was it.

Rob

Wez Furlong wrote:

>I just fixed this; it was a trailing ; problem in that macro.
>
>--Wez.
