Hi.
I am trying to compile php against httpd 2.4.2 - but before it gets
interesting I think I am having a different problem.
The sqlite3 embedded in ./ext/sqlite3 returns a syntax error against vac.C
v11 compiler.
data/prj/php-5.3.13/ext/sqlite3/sqlite3.c -o ext/sqlite3/sqlite3.lo
"/data/prj/php-5.3.13/ext/sqlite3/sqlite3.c", line 893.9: 1506-046 (S)
Syntax error.
"/data/prj/php-5.3.13/ext/sqlite3/sqlite3.c", line 894.41: 1506-045 (S)
Undeclared identifier i.
"/data/prj/php-5.3.13/ext/sqlite3/sqlite3.c", line 894.51: 1506-277 (S)
Syntax error: possible missing ';' or ','?
"/data/prj/php-5.3.13/ext/sqlite3/sqlite3.c", line 894.65: 1506-045 (S)
Undeclared identifier or.
make: 1254-004 The error code from the last command is 1.
Rather than try and solve that I compiled a separate sqlite3 version
root@x104:[/]sqlite3 -version
3.6.22
However, even after make distclean and a new run of configure with the
following arguments - make still continues to try to compile the embedded
sqlite3.
root@x104:[/data/prj/php-5.3.13]cat php_configure.ksh
#!/usr/bin/ksh
set -x
./configure
--prefix=/opt
--sysconfdir=/etc
--mandir=/usr/share/man
--with-libdir=/opt/lib
--with-sqlite3=/opt
> build/aix/configure.out
What am I doing wrong? Many thanks!
Michael
Hi.
I am trying to compile php against httpd 2.4.2 - but before it gets
interesting I think I am having a different problem.The sqlite3 embedded in ./ext/sqlite3 returns a syntax error against vac.C
v11 compiler.data/prj/php-5.3.13/ext/sqlite3/sqlite3.c -o ext/sqlite3/sqlite3.lo
"/data/prj/php-5.3.13/ext/sqlite3/sqlite3.c", line 893.9: 1506-046 (S)
Syntax error.
"/data/prj/php-5.3.13/ext/sqlite3/sqlite3.c", line 894.41: 1506-045 (S)
Undeclared identifier i.
"/data/prj/php-5.3.13/ext/sqlite3/sqlite3.c", line 894.51: 1506-277 (S)
Syntax error: possible missing ';' or ','?
"/data/prj/php-5.3.13/ext/sqlite3/sqlite3.c", line 894.65: 1506-045 (S)
Undeclared identifier or.
make: 1254-004 The error code from the last command is 1.
ext/sqlite3/sqlite3.c in php-5.3.13 only has comments at lines 893-894.
(That's a big comment from 846 to 906).
What do you have at those lines? As it mentions "Undeclared identifier or.",
perhaps it's (wrongly) taking the slash at "and/or " as a "*/" ??
That would be very broken of a compiler...
Rather than try and solve that I compiled a separate sqlite3 version
root@x104:[/]sqlite3 -version
3.6.22However, even after make distclean and a new run of configure with the
following arguments - make still continues to try to compile the embedded
sqlite3.root@x104:[/data/prj/php-5.3.13]cat php_configure.ksh
#!/usr/bin/kshset -x
./configure
--prefix=/opt
--sysconfdir=/etc
--mandir=/usr/share/man
--with-libdir=/opt/lib
--with-sqlite3=/opt
> build/aix/configure.outWhat am I doing wrong? Many thanks!
Seems a problem in the sqlite3 extension config.m4, in that it has a
depends rule on the libsqlite/sqlite3.c copy.
A simple fix would be to copy the sqlite amalgamation that works for you
over the php copy.
What do you have at those lines? As it mentions "Undeclared identifier
or.",
perhaps it's (wrongly) taking the slash at "and/or " as a "*/" ??
That would be very broken of a compiler...
No, that's invalid C89 code and a quite standards compliant C89
compiler.
johannes
Well, I am wondering if I posted this wrong - where are all the [PHP-DEV]
brackets coming from.
But, i believe I found the "syntax" error - by default AIX compiler does
not support // comments, the CFLAG
-qlangval=extc99 (or extc89) needs to be added.
Testing further with 5.3.14 and 5.4.4
Michael
Hi.
I am trying to compile php against httpd 2.4.2 - but before it gets
interesting I think I am having a different problem.The sqlite3 embedded in ./ext/sqlite3 returns a syntax error against vac.C
v11 compiler.data/prj/php-5.3.13/ext/sqlite3/sqlite3.c -o ext/sqlite3/sqlite3.lo
"/data/prj/php-5.3.13/ext/sqlite3/sqlite3.c", line 893.9: 1506-046 (S)
Syntax error.
"/data/prj/php-5.3.13/ext/sqlite3/sqlite3.c", line 894.41: 1506-045 (S)
Undeclared identifier i.
"/data/prj/php-5.3.13/ext/sqlite3/sqlite3.c", line 894.51: 1506-277 (S)
Syntax error: possible missing ';' or ','?
"/data/prj/php-5.3.13/ext/sqlite3/sqlite3.c", line 894.65: 1506-045 (S)
Undeclared identifier or.
make: 1254-004 The error code from the last command is 1.Rather than try and solve that I compiled a separate sqlite3 version
root@x104:[/]sqlite3 -version
3.6.22However, even after make distclean and a new run of configure with the
following arguments - make still continues to try to compile the embedded
sqlite3.root@x104:[/data/prj/php-5.3.13]cat php_configure.ksh
#!/usr/bin/kshset -x
./configure
--prefix=/opt
--sysconfdir=/etc
--mandir=/usr/share/man
--with-libdir=/opt/lib
--with-sqlite3=/opt
> build/aix/configure.outWhat am I doing wrong? Many thanks!
Michael
messages crossed - thanks. I was thinking of copying the sqlite, or at
least doing a diff when I saw the same error in both 5.3.14 and 5.4.4
Well, I am wondering if I posted this wrong - where are all the [PHP-DEV]
brackets coming from.But, i believe I found the "syntax" error - by default AIX compiler does
not support // comments, the CFLAG
-qlangval=extc99 (or extc89) needs to be added.Testing further with 5.3.14 and 5.4.4
Michael
Hi.
I am trying to compile php against httpd 2.4.2 - but before it gets
interesting I think I am having a different problem.The sqlite3 embedded in ./ext/sqlite3 returns a syntax error against
vac.C v11 compiler.data/prj/php-5.3.13/ext/sqlite3/sqlite3.c -o ext/sqlite3/sqlite3.lo
"/data/prj/php-5.3.13/ext/sqlite3/sqlite3.c", line 893.9: 1506-046 (S)
Syntax error.
"/data/prj/php-5.3.13/ext/sqlite3/sqlite3.c", line 894.41: 1506-045 (S)
Undeclared identifier i.
"/data/prj/php-5.3.13/ext/sqlite3/sqlite3.c", line 894.51: 1506-277 (S)
Syntax error: possible missing ';' or ','?
"/data/prj/php-5.3.13/ext/sqlite3/sqlite3.c", line 894.65: 1506-045 (S)
Undeclared identifier or.
make: 1254-004 The error code from the last command is 1.Rather than try and solve that I compiled a separate sqlite3 version
root@x104:[/]sqlite3 -version
3.6.22However, even after make distclean and a new run of configure with the
following arguments - make still continues to try to compile the embedded
sqlite3.root@x104:[/data/prj/php-5.3.13]cat php_configure.ksh
#!/usr/bin/kshset -x
./configure
--prefix=/opt
--sysconfdir=/etc
--mandir=/usr/share/man
--with-libdir=/opt/lib
--with-sqlite3=/opt
> build/aix/configure.outWhat am I doing wrong? Many thanks!
Michael
Now getting a lot of these messages:
"/data/prj/php-5.3.13/Zend/zend.h", line 179.10: 1506-358 (I)
"restrict" is defined on line 186 of /usr/include/standards.h.
line 179...
#if defined(GNUC) && ZEND_GCC_VERSION >= 3004
#else
define
restrict
#endif
#define restrict restrict
AIX: /usr/include/standards
/*
- Handle the use of the restrict keyword in non-C99 compilers
*/
#if ((STDC_VERSION >= 199901L) || defined(__C99_RESTRICT))
#define restrict restrict
#else
#define restrict
#endif
Whose right??
messages crossed - thanks. I was thinking of copying the sqlite, or at
least doing a diff when I saw the same error in both 5.3.14 and 5.4.4Well, I am wondering if I posted this wrong - where are all the [PHP-DEV]
brackets coming from.But, i believe I found the "syntax" error - by default AIX compiler does
not support // comments, the CFLAG
-qlangval=extc99 (or extc89) needs to be added.Testing further with 5.3.14 and 5.4.4
Michael
Hi.
I am trying to compile php against httpd 2.4.2 - but before it gets
interesting I think I am having a different problem.The sqlite3 embedded in ./ext/sqlite3 returns a syntax error against
vac.C v11 compiler.data/prj/php-5.3.13/ext/sqlite3/sqlite3.c -o ext/sqlite3/sqlite3.lo
"/data/prj/php-5.3.13/ext/sqlite3/sqlite3.c", line 893.9: 1506-046 (S)
Syntax error.
"/data/prj/php-5.3.13/ext/sqlite3/sqlite3.c", line 894.41: 1506-045 (S)
Undeclared identifier i.
"/data/prj/php-5.3.13/ext/sqlite3/sqlite3.c", line 894.51: 1506-277 (S)
Syntax error: possible missing ';' or ','?
"/data/prj/php-5.3.13/ext/sqlite3/sqlite3.c", line 894.65: 1506-045 (S)
Undeclared identifier or.
make: 1254-004 The error code from the last command is 1.Rather than try and solve that I compiled a separate sqlite3 version
root@x104:[/]sqlite3 -version
3.6.22However, even after make distclean and a new run of configure with the
following arguments - make still continues to try to compile the embedded
sqlite3.root@x104:[/data/prj/php-5.3.13]cat php_configure.ksh
#!/usr/bin/kshset -x
./configure
--prefix=/opt
--sysconfdir=/etc
--mandir=/usr/share/man
--with-libdir=/opt/lib
--with-sqlite3=/opt
> build/aix/configure.outWhat am I doing wrong? Many thanks!
Michael