Edit report at http://bugs.php.net/bug.php?id=50827&edit=1

 ID:               50827
 Updated by:       the...@php.net
 Reported by:      mul at rentapacs dot de
 Summary:          retcode != CS_END_RESULTS in exec_cmd()
 Status:           Closed
 Type:             Bug
 Package:          Sybase-ct (ctlib) related
 Operating System: SLES11 x86_64
 PHP Version:      5.2.12
 Assigned To:      thekid

 New Comment:

...and merged to PHP_5_2 and PHP_5_3 branches.


Previous Comments:
------------------------------------------------------------------------
[2010-07-07 12:14:57] the...@php.net

Fixed in SVN trunk:



http://svn.php.net/viewvc/php/php-src/trunk/ext/sybase_ct/config.m4?view=log

------------------------------------------------------------------------
[2010-07-07 11:47:26] the...@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] the...@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] the...@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?

------------------------------------------------------------------------


The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at

    http://bugs.php.net/bug.php?id=50827


-- 
Edit this bug report at http://bugs.php.net/bug.php?id=50827&edit=1

Reply via email to