From:
Operating system: Linux 2.6.36-gentoo-r5
PHP version: 5.3.6
Package: Sybase-ct (ctlib) related
Bug Type: Bug
Bug description:Error when compile
Description:
------------
In file included from /var/tmp/portage/dev-lang/php-5.3.6/work/sapis-
build/cli/ext/sybase_ct/php_sybase_ct.h:63,
from /var/tmp/portage/dev-lang/php-5.3.6/work/sapis-
build/cli/ext/sybase_ct/php_sybase_ct.c:30:
/opt/sybase/OCS-15_0/include/ctpublic.h:269: error: expected declaration
specifiers or â...â before âSQLDAâ
/var/tmp/portage/dev-lang/php-5.3.6/work/sapis-
build/cli/ext/sybase_ct/php_sybase_ct.c: In function
â_client_message_handlerâ:
/var/tmp/portage/dev-lang/php-5.3.6/work/sapis-
build/cli/ext/sybase_ct/php_sybase_ct.c:391: warning: format â%dâ
expects type
âintâ, but argument 5 has type âlong intâ
make: *** [ext/sybase_ct/php_sybase_ct.lo] Error 1
make: *** Waiting for unfinished jobs....
emake failed
I think that error can be in config.m4 (str 60):
elif test -f $SYBASE_CT_INCDIR/libsybct.so; then
$PHP_SYBASE_CT = '/opt/sybase/OCS-15_0'
$SYBASE_CT_INCDIR = $PHP_SYBASE_CT/include
But libraries are located in:
$SYBASE_CT_LIBDIR=$PHP_SYBASE_CT/lib
ls /opt/sybase/OCS-15_0/include/
bkpublic.h
cobpub.cbl
csconfig.h
cspublic.h
cstypes.h
ctpublic.h
mcconfig.h
mcpublic.h
mctypes.h
oscompat.h
oserror.h
ospublic.h
sqlca.h
sqlda.h
srverror.h
srv.h
sybdb.h
sybdbn.h
syberror.h
sybesql.c
sybfront.h
sybhesql.cbl
sybhesql.h
sybhstmt.h
syblogin.h
sybtesql.cbl
sybtesql.h
ls -1 /opt/sybase/OCS-15_0/lib/
libs.a
libsmapp.a
libsybblk.a
libsybblk_r.a
libsybblk_r.so
libsybblk.so
libsybcobct.a
libsybcobct_r.a
libsybcomn.a
libsybcomn_r.a
libsybcomn_r.so
libsybcomn.so
libsybcs.a
libsybcs_r.a
libsybcs_r.so
libsybcs.so
libsybct.a
libsybct_r.a
libsybct_r.so
libsybct.so
libsybdb.a
libsybdb.so
libsybdldap.so.15.0.0
libsybdldap.so.15.0.3
libsybfssl.so.15.0.0
libsybfssl.so.15.0.3
libsybintl.a
libsybintl_r.a
libsybintl_r.so
libsybintl.so
libsybskrb.so.15.0.0
libsybskrb.so.15.0.3
libsybtcl.a
libsybtcl_r.a
libsybtcl_r.so
libsybtcl.so
libsybunic.a
libsybunic.so
And also, there is no libs:
PHP_ADD_LIBRARY(cs,, SYBASE_CT_SHARED_LIBADD)
PHP_ADD_LIBRARY(ct,, SYBASE_CT_SHARED_LIBADD)
PHP_ADD_LIBRARY(comn,, SYBASE_CT_SHARED_LIBADD)
PHP_ADD_LIBRARY(intl,, SYBASE_CT_SHARED_LIBADD)
--
Edit bug report at http://bugs.php.net/bug.php?id=55009&edit=1
--
Try a snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=55009&r=trysnapshot52
Try a snapshot (PHP 5.3):
http://bugs.php.net/fix.php?id=55009&r=trysnapshot53
Try a snapshot (trunk):
http://bugs.php.net/fix.php?id=55009&r=trysnapshottrunk
Fixed in SVN:
http://bugs.php.net/fix.php?id=55009&r=fixed
Fixed in SVN and need be documented:
http://bugs.php.net/fix.php?id=55009&r=needdocs
Fixed in release:
http://bugs.php.net/fix.php?id=55009&r=alreadyfixed
Need backtrace:
http://bugs.php.net/fix.php?id=55009&r=needtrace
Need Reproduce Script:
http://bugs.php.net/fix.php?id=55009&r=needscript
Try newer version:
http://bugs.php.net/fix.php?id=55009&r=oldversion
Not developer issue:
http://bugs.php.net/fix.php?id=55009&r=support
Expected behavior:
http://bugs.php.net/fix.php?id=55009&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=55009&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=55009&r=submittedtwice
register_globals:
http://bugs.php.net/fix.php?id=55009&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=55009&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=55009&r=dst
IIS Stability:
http://bugs.php.net/fix.php?id=55009&r=isapi
Install GNU Sed:
http://bugs.php.net/fix.php?id=55009&r=gnused
Floating point limitations:
http://bugs.php.net/fix.php?id=55009&r=float
No Zend Extensions:
http://bugs.php.net/fix.php?id=55009&r=nozend
MySQL Configuration Error:
http://bugs.php.net/fix.php?id=55009&r=mysqlcfg