Sybase and PHP

Sybase and PHP

am 03.04.2007 21:25:05 von jim_patterson

We have been using sybase with PHP4 and now are looking to move to PHP5. I ran into an installation problem with PHP5 and starting looking at the bug reports and can't tell for sure whether sybase is being supported any longer.
I was working with PHP5 source rpm on Fedora 6 when I ran into a problem with recompiling it (rpmbuild -ba). I really couldn't make much of the error.

php-5.1.6-3

Building from rpm source I get the following errors.

with standard Fedora6 src I added the following line to the
--with-sybase-ct=/opt/sybase/OCS-15_0 \

Building from rpm source I get the following errors.
-----
screen error
------
checking for string.h... (cached) yes
checking for char... yes
checking size of char... configure: error: cannot compute sizeof (char), 77
See `config.log' for more details.
error: Bad exit status from /var/tmp/rpm-tmp.17076 (%build)
----------------------------------
partial output from config logs
config.log
before this it indicated that it was in confdefs.h
-------------------------------

#define SIZEOF_LONG 4
#define SIZEOF_LONG 4
#define SIZEOF_LONG 4
#define SIZEOF_LONG 4
#define SIZEOF_LONG_LONG 8
#define SIZEOF_LONG_LONG 8
#define SIZEOF_LONG_LONG_INT 8
#define SIZEOF_PTRDIFF_T 4
#define SIZEOF_SHORT 2
#define SIZEOF_SHORT 2
#define SIZEOF_SIZE_T 4
#define SIZEOF_SSIZE_T 4
#define STDC_HEADERS 1
#define STDC_HEADERS 1
#define TIME_WITH_SYS_TIME 1
#define UCD_SNMP_HACK 1
#define UNDEF_THREADS_HACK
#define USE_GD_IMGSTRTTF 1
#define USE_GD_IMGSTRTTF 1
#define YYTEXT_POINTER 1
#define _GNU_SOURCE 1

configure: exit 1

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: Sybase and PHP

am 03.04.2007 21:29:46 von Steven Cruz

I got a similar setup up and running a few months ago. Sadly I am
having connection problems, else I would give you the configure string I
used. When netowrk does come around, I will see what I can do.

Steven

jim_patterson@tx.rr.com wrote:
> We have been using sybase with PHP4 and now are looking to move to PHP5. I ran into an installation problem with PHP5 and starting looking at the bug reports and can't tell for sure whether sybase is being supported any longer.
> I was working with PHP5 source rpm on Fedora 6 when I ran into a problem with recompiling it (rpmbuild -ba). I really couldn't make much of the error.
>
> php-5.1.6-3
>
> Building from rpm source I get the following errors.
>
> with standard Fedora6 src I added the following line to the
> --with-sybase-ct=/opt/sybase/OCS-15_0 \
>
> Building from rpm source I get the following errors.
> -----
> screen error
> ------
> checking for string.h... (cached) yes
> checking for char... yes
> checking size of char... configure: error: cannot compute sizeof (char), 77
> See `config.log' for more details.
> error: Bad exit status from /var/tmp/rpm-tmp.17076 (%build)
> ----------------------------------
> partial output from config logs
> config.log
> before this it indicated that it was in confdefs.h
> -------------------------------
>
> #define SIZEOF_LONG 4
> #define SIZEOF_LONG 4
> #define SIZEOF_LONG 4
> #define SIZEOF_LONG 4
> #define SIZEOF_LONG_LONG 8
> #define SIZEOF_LONG_LONG 8
> #define SIZEOF_LONG_LONG_INT 8
> #define SIZEOF_PTRDIFF_T 4
> #define SIZEOF_SHORT 2
> #define SIZEOF_SHORT 2
> #define SIZEOF_SIZE_T 4
> #define SIZEOF_SSIZE_T 4
> #define STDC_HEADERS 1
> #define STDC_HEADERS 1
> #define TIME_WITH_SYS_TIME 1
> #define UCD_SNMP_HACK 1
> #define UNDEF_THREADS_HACK
> #define USE_GD_IMGSTRTTF 1
> #define USE_GD_IMGSTRTTF 1
> #define YYTEXT_POINTER 1
> #define _GNU_SOURCE 1
>
> configure: exit 1
>
>

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php