Bug #55009 [Fbk]: Error when compile

From: Date: Sat, 11 Jun 2011 18:29:30 +0000
Subject: Bug #55009 [Fbk]: Error when compile
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-161317@lists.php.net to get a copy of this message
Edit report at http://bugs.php.net/bug.php?id=55009&edit=1

 ID:                 55009
 Updated by:         felipe@php.net
 Reported by:        hexes at mail dot ru
 Summary:            Error when compile
 Status:             Feedback
 Type:               Bug
 Package:            Sybase-ct (ctlib) related
 Operating System:   Linux 2.6.36-gentoo-r5
 PHP Version:        5.3.6
 Assigned To:        thekid
 Block user comment: N
 Private report:     N

 New Comment:

But using INCDIR on:
elif test -f $SYBASE_CT_INCDIR/libsybct.so; then

seems wrong.


Previous Comments:
------------------------------------------------------------------------
[2011-06-11 20:25:27] thekid@php.net

This is the error as far as I see:

/opt/sybase/OCS-15_0/include/ctpublic.h:269: error: expected declaration 
specifiers or ‘...’ before ‘SQLDA’

It doesn't look like this has anything to do with PHP.

------------------------------------------------------------------------
[2011-06-09 10:11:19] hexes at mail dot ru

/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’

just change %d to %ld.

------------------------------------------------------------------------
[2011-06-08 08:33:34] hexes at mail dot ru

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 this bug report at http://bugs.php.net/bug.php?id=55009&edit=1


Thread (10 messages)

« previous php.bugs (#161317) next »