# Compilation failure on AIX with 5.1.4

- Thread: https://externals.io/message/23980
- Original archive: https://news-web.php.net/php.internals/23980
- Started by Mark Spruiell on 2006-06-07T18:53:15+00:00
- Messages: 5
- 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

---

## #23980 — Mark Spruiell — 2006-06-07T18:53:15+00:00

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

Building PHP 5.1.4 on AIX fails in two places with a syntax error:

Zend/zend_language_parser.c:2585
Zend/zend_ini_parser.c:1081

The offending code is the same in both cases, which is not surprising
since they are both bison-generated files:

#if defined (__STDC__) || defined (__cplusplus)
int
yyparse (void)
#else
int
yyparse ()
    ;
#endif

The compilation succeeds after I delete the line containing the
semicolon.

I downloaded a 5.2 snapshot and verified that this line is still
present.

Cheers,
- Mark

---

## #23983 — Mark Spruiell — 2006-06-07T21:13:46+00:00

URL: https://externals.io/message/23980#23983 · In reply to: #23982

> Do you have a patch?

I was a bit concerned about the fact that these are
bison-generated files. Doesn't that imply a bug in
whatever version of bison was used to generate these
files? And wouldn't the bug instantly reappear as soon
as these files are regenerated for whatever reason?

> And yes, I forgot to add that: it works perfectly fine here, on AIX 5.3.

Perhaps it's a difference in our compilers. I'm using IBM's
VisualAge C compiler.

Take care,
- Mark

---

## #23981 — Antony Dovgal — 2006-06-07T21:56:31+00:00

URL: https://externals.io/message/23980#23981 · In reply to: #23980

> Building PHP 5.1.4 on AIX fails in two places with a syntax error:
> 
> Zend/zend_language_parser.c:2585
> Zend/zend_ini_parser.c:1081
> 
> The offending code is the same in both cases, which is not surprising
> since they are both bison-generated files:
> 
> #if defined (__STDC__) || defined (__cplusplus)
> int
> yyparse (void)
> #else
> int
> yyparse ()
>     ;
> #endif
> 
> The compilation succeeds after I delete the line containing the
> semicolon.
> 
> I downloaded a 5.2 snapshot and verified that this line is still
> present.

Do you have a patch?

-- 
Wbr, 
Antony Dovgal

---

## #23982 — Antony Dovgal — 2006-06-07T22:03:48+00:00

URL: https://externals.io/message/23980#23982 · In reply to: #23981

> 
> > […]
> 
> Do you have a patch?

And yes, I forgot to add that: it works perfectly fine here, on AIX 5.3.

-- 
Wbr, 
Antony Dovgal

---

## #23984 — Antony Dovgal — 2006-06-07T22:26:17+00:00

URL: https://externals.io/message/23980#23984 · In reply to: #23983

> 
> 
> > […]
> 
> I was a bit concerned about the fact that these are
> bison-generated files. Doesn't that imply a bug in
> whatever version of bison was used to generate these
> files? And wouldn't the bug instantly reappear as soon
> as these files are regenerated for whatever reason?

Well, your second phrase is the answer for this question.

> > […]
> 
> Perhaps it's a difference in our compilers. I'm using IBM's
> VisualAge C compiler.


-- 
Wbr, 
Antony Dovgal
