|
Home > Archive > SQL Anywhere for Linux > August 2005 > Can't compile PHP with the SQLAnywhere 1.06 Module
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Can't compile PHP with the SQLAnywhere 1.06 Module
|
|
| ICT Approach 2005-08-03, 3:23 am |
| Hi all
At the moment I am trying to compile php with the SQLAnywhere 1.0.6 PHP
Module on a FC4 machine. When I try to compile PHP-5.0.4 with the module I
receive errors during building. The same errors appear with php-4.3.10. The
machine is fresh installed with FC4, nothing special.
sqlpp -q -n /home/test/rpm/BUILD/php-4.3.10/ext/sqlanywhere/sqlany_imp.sqc
/home/test/rpm/BUILD/php-4.3.10/ext/sqlanywhere/sqlany_imp.c
/bin/sh
/home/test/rpm/BUILD/php-4.3.10/build-cgi/libtool --silent --preserve-dup-deps
--mode=compile
gcc -Iext/sqlanywhere/ -I/home/test/rpm/BUILD/php-4.3.10/ext/sqlanywhere/ -DPHP_ATOM_INC
-I/home/test/rpm/BUILD/php-4.3.10/build-cgi/include -I/home/test/rpm/BUILD/php-4.3.10/build-cgi/main
-I/home/test/rpm/BUILD/php-4.3.10 -I/home/test/rpm/BUILD/php-4.3.10/build-cgi/Zend
-I/opt/sybase/SYBSsa9/include -I/home/test/rpm/BUILD/php-4.3.10/ext/xml/expat
-I/home/test/rpm/BUILD/php-4.3.10/main -I/home/test/rpm/BUILD/php-4.3.10/Zend
-I/home/test/rpm/BUILD/php-4.3.10/TSRM -I/home/test/rpm/BUILD/php-4.3.10/build-cgi/
-I/home/test/rpm/BUILD/php-4.3.10/build-cgi/TSRM -O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2
-fexceptions -m32 -march=i386 -mtune=pentium4 -fasynchronous-unwind-tables
-Wall -fno-strict-aliasing -prefer-non-pic -c
/home/test/rpm/BUILD/php-4.3.10/ext/sqlanywhere/sqlany_imp.c -o
ext/sqlanywhere/sqlany_imp.o
/home/test/rpm/BUILD/php-4.3.10/ext/sqlanywhere/sqlany_imp.sqc:15: error:
static declaration of 'sqlany_initialized'
follows non-static declaration
/home/test/rpm/BUILD/php-4.3.10/ext/sqlanywhere/sqlany_imp.h:36: error:
previous declaration of 'sqlany_initialized'
was
here/home/test/rpm/BUILD/php-4.3.10/ext/sqlanywhere/sqlany_imp.sqc: In
function 'PrintSQLError':
/home/test/rpm/BUILD/php-4.3.10/ext/sqlanywhere/sqlany_imp.sqc:39: warning:
format '%d' expects type 'int', but argument 3 has type 'an_sql_code'
/home/test/rpm/BUILD/php-4.3.10/ext/sqlanywhere/sqlany_imp.sqc: In function
'convert_types':
/home/test/rpm/BUILD/php-4.3.10/ext/sqlanywhere/sqlany_imp.sqc:249: error:
label at end of compound statement
make: *** [ext/sqlanywhere/sqlany_imp.lo] Error 1
error: Bad exit status from /home/test/rpm/rpm-tmp.17881 (%build)
RPM build errors:
Bad exit status from /home/test/rpm/rpm-tmp.17881 (%build)
I have tried almost everything concerning ./configure --with-sqlanywhere,
hoping there was a conflict with an other extension. Well that was not it.
Any ideas what it might be ? Should I downgrade gcc or libtool, since all
versions are pretty up-to-date ?
Or perhaps someone had same problems and solved them...
Thanx anyway for reading
| |
| Mohammed Abouzour 2005-08-05, 11:23 am |
| The version of the driver on the web site is out of date. A new version will
be available early next week.
Mohammed
"ICT Approach" < matthijs@ictapproach
.net> wrote in message
news:42f0755e$1@foru
ms-1-dub...
> Hi all
>
> At the moment I am trying to compile php with the SQLAnywhere 1.0.6 PHP
> Module on a FC4 machine. When I try to compile PHP-5.0.4 with the module I
> receive errors during building. The same errors appear with php-4.3.10.
> The machine is fresh installed with FC4, nothing special.
>
> sqlpp -q -n /home/test/rpm/BUILD/php-4.3.10/ext/sqlanywhere/sqlany_imp.sqc
> /home/test/rpm/BUILD/php-4.3.10/ext/sqlanywhere/sqlany_imp.c
>
> /bin/sh
> /home/test/rpm/BUILD/php-4.3.10/build-cgi/libtool --silent --preserve-dup-deps
> --mode=compile
> gcc -Iext/sqlanywhere/ -I/home/test/rpm/BUILD/php-4.3.10/ext/sqlanywhere/
> -DPHP_ATOM_INC -I/home/test/rpm/BUILD/php-4.3.10/build-cgi/include -I/home/test/rpm/BUILD/php-4.3.10/build-cgi/main
> -I/home/test/rpm/BUILD/php-4.3.10 -I/home/test/rpm/BUILD/php-4.3.10/build-cgi/Zend
> -I/opt/sybase/SYBSsa9/include -I/home/test/rpm/BUILD/php-4.3.10/ext/xml/expat
> -I/home/test/rpm/BUILD/php-4.3.10/main -I/home/test/rpm/BUILD/php-4.3.10/Zend
> -I/home/test/rpm/BUILD/php-4.3.10/TSRM -I/home/test/rpm/BUILD/php-4.3.10/build-cgi/
> -I/home/test/rpm/BUILD/php-4.3.10/build-cgi/TSRM -O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2
> -fexceptions -m32 -march=i386 -mtune=pentium4 -fasynchronous-unwind-tables
> -Wall -fno-strict-aliasing -prefer-non-pic -c
> /home/test/rpm/BUILD/php-4.3.10/ext/sqlanywhere/sqlany_imp.c -o
> ext/sqlanywhere/sqlany_imp.o
>
> /home/test/rpm/BUILD/php-4.3.10/ext/sqlanywhere/sqlany_imp.sqc:15: error:
> static declaration of 'sqlany_initialized'
follows non-static declaration
> /home/test/rpm/BUILD/php-4.3.10/ext/sqlanywhere/sqlany_imp.h:36: error:
> previous declaration of 'sqlany_initialized'
was
> here/home/test/rpm/BUILD/php-4.3.10/ext/sqlanywhere/sqlany_imp.sqc: In
> function 'PrintSQLError':
> /home/test/rpm/BUILD/php-4.3.10/ext/sqlanywhere/sqlany_imp.sqc:39:
> warning: format '%d' expects type 'int', but argument 3 has type
> 'an_sql_code'
> /home/test/rpm/BUILD/php-4.3.10/ext/sqlanywhere/sqlany_imp.sqc: In
> function 'convert_types':
> /home/test/rpm/BUILD/php-4.3.10/ext/sqlanywhere/sqlany_imp.sqc:249: error:
> label at end of compound statement
> make: *** [ext/sqlanywhere/sqlany_imp.lo] Error 1
> error: Bad exit status from /home/test/rpm/rpm-tmp.17881 (%build)
>
>
> RPM build errors:
> Bad exit status from /home/test/rpm/rpm-tmp.17881 (%build)
>
>
> I have tried almost everything concerning ./configure --with-sqlanywhere,
> hoping there was a conflict with an other extension. Well that was not it.
>
> Any ideas what it might be ? Should I downgrade gcc or libtool, since all
> versions are pretty up-to-date ?
>
> Or perhaps someone had same problems and solved them...
>
> Thanx anyway for reading
>
>
>
>
>
>
|
|
|
|
|