Bug #50827 [Asn->Csd]: retcode != CS_END_RESULTS in exec_cmd()
| From: | thekid@php.net | Date: | Wed, 07 Jul 2010 10:14:58 +0000 |
| Subject: | Bug #50827 [Asn->Csd]: retcode != CS_END_RESULTS in exec_cmd() | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-152172@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=50827&edit=1
ID: 50827
Updated by: thekid@php.net
Reported by: mul at rentapacs dot de
Summary: retcode != CS_END_RESULTS in exec_cmd()
-Status: Assigned
+Status: Closed
Type: Bug
Package: Sybase-ct (ctlib) related
Operating System: SLES11 x86_64
PHP Version: 5.2.12
Assigned To: thekid
New Comment:
Fixed in SVN trunk:
http://svn.php.net/viewvc/php/php-src/trunk/ext/sybase_ct/config.m4?view=log
Previous Comments:
------------------------------------------------------------------------
[2010-07-07 11:47:26] thekid@php.net
Automatic comment from SVN on behalf of thekid
Revision: http://svn.php.net/viewvc/?view=revision&revision=301035
Log: - Added -DSYB_LP64 to CFLAGS on 64 bit platforms
# See http://cpansearch.perl.org/src/MEWP/DBD-Sybase-1.08/Makefile.PL:
#
# "If we are building for a 64 bit platform that also supports 32
bit
# (i.e. Solaris 8, HP-UX11, etc) then we need to make some adjustments
# [...] Tru64/DEC OSF does NOT use the SYB_LP64 define as it is ALWAYS
# in 64 bit mode."
#
# Fixes bug #50827
------------------------------------------------------------------------
[2010-07-07 09:23:12] thekid@php.net
I'll add this CFLAGS="${CFLAGS} -g -DSYB_LP64 to the "x64" decision
branch, see here:
http://svn.php.net/viewvc/php/php-src/trunk/ext/sybase_ct/config.m4?revision=300853&view=markup
(around line 42)
------------------------------------------------------------------------
[2010-06-30 14:37:43] mul at rentapacs dot de
Thanks for taking care of this!
Yes, all PHP versions were compiled on x86_64 from vanilla downloads. In
the end I did patch ext/sybase_ct/config.m4 according to:
http://bugs.php.net/bug.php?id=45357
and rebuilt ./configure.
After adding:
+ CFLAGS="${CFLAGS} -g -DSYB_LP64"
to ext/sybase_ct/config.m4, PHP-5.2.12 finally compiled OK.
Please let me know, if I can be of any further help.
------------------------------------------------------------------------
[2010-06-28 15:39:44] thekid@php.net
This looks like int / CS_INT messup (probably 64 bit library, 32 bit
header files). Did you compile all PPH versions yourself on the same
systems with the same setup?
------------------------------------------------------------------------
[2010-01-23 03:22:15] mul at rentapacs dot de
Description:
------------
Hi there,
last working PHP version for me on SLES11 x86_64 (ASE-15.0.3 xe) is
php5.2-200807031030 (5.2.7-dev). Have tried 5.2.9 and now 5.2.12 but
without success. Did some debugging and found out that retcode (-205) no
longer equals CS_END_RESULTS (-205) in exec_cmd(). A type cast
(int)retcode works as a fix in this location (l. 974), but then it bails
out somewhere else.
There isn't much difference in sybase_ct beween these versions, so I
suspect that the problem lies somewhere else.
Any hints are greatly appreciated!
TIA ... Michael
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=50827&edit=1