ID: 24406
Updated by: [EMAIL PROTECTED]
Reported By: adam at cryptocomm dot com
-Status: Open
+Status: Closed
Bug Type: Compile Failure
Operating System: Redhat 9
PHP Version: 5.0.0b1 (beta1)
New Comment:
Use --with-sybase-ct instead.
Previous Comments:
------------------------------------------------------------------------
[2003-06-30 08:44:03] adam at cryptocomm dot com
Description:
------------
Configuring with the "--with-sybase" compile flag pointing to the
correct FreeTDS path causes a compile failure. The configure I am using
is:
./configure --with-apxs=/usr/local/apache_1.3.27/bin/apxs
--with-sybase=/usr/local/freetds_0.61
--with-mysql=/usr/local/mysql_4.1.0
--disable-cli
--disable-ctype
--disable-overload
--without-pcre-regex
--disable-tokenizer
--disable-xml
Actual result:
--------------
/usr/local/php/php-5.0.0b1/ext/sybase/php_sybase_db.c: In function
`php_sybase_do_connect':
/usr/local/php/php-5.0.0b1/ext/sybase/php_sybase_db.c:395: request for
member `value' in something not a structure or union
/usr/local/php/php-5.0.0b1/ext/sybase/php_sybase_db.c: In function
`zif_sybase_select_db':
/usr/local/php/php-5.0.0b1/ext/sybase/php_sybase_db.c:657: invalid type
argument of `unary *'
/usr/local/php/php-5.0.0b1/ext/sybase/php_sybase_db.c: In function
`zif_sybase_free_result':
/usr/local/php/php-5.0.0b1/ext/sybase/php_sybase_db.c:915: parse error
before "if"
/usr/local/php/php-5.0.0b1/ext/sybase/php_sybase_db.c: At top level:
/usr/local/php/php-5.0.0b1/ext/sybase/php_sybase_db.c:916: parse error
before "return"
/usr/local/php/php-5.0.0b1/ext/sybase/php_sybase_db.c:918:
`sybase_result_index' undeclared here (not in a function)
/usr/local/php/php-5.0.0b1/ext/sybase/php_sybase_db.c:918: `type'
undeclared here (not in a function)
/usr/local/php/php-5.0.0b1/ext/sybase/php_sybase_db.c:918: warning:
initialization makes integer from pointer without a cast
/usr/local/php/php-5.0.0b1/ext/sybase/php_sybase_db.c:918: initializer
element is not constant
/usr/local/php/php-5.0.0b1/ext/sybase/php_sybase_db.c:918: warning:
data definition has no type or storage class
/usr/local/php/php-5.0.0b1/ext/sybase/php_sybase_db.c:920: parse error
before "if"
/usr/local/php/php-5.0.0b1/ext/sybase/php_sybase_db.c:922: parse error
before '->' token
/usr/local/php/php-5.0.0b1/ext/sybase/php_sybase_db.c:924: parse error
before '(' token
/usr/local/php/php-5.0.0b1/ext/sybase/php_sybase_db.c:925: parse error
before '->' token
/usr/local/php/php-5.0.0b1/ext/sybase/php_sybase_db.c: In function
`zif_sybase_fetch_object':
/usr/local/php/php-5.0.0b1/ext/sybase/php_sybase_db.c:1069: invalid
lvalue in assignment
/usr/local/php/php-5.0.0b1/ext/sybase/php_sybase_db.c:1070: invalid
lvalue in assignment
/usr/local/php/php-5.0.0b1/ext/sybase/php_sybase_db.c: In function
`zif_sybase_result':
/usr/local/php/php-5.0.0b1/ext/sybase/php_sybase_db.c:1287: request for
member `value' in something not a structure or union
/usr/local/php/php-5.0.0b1/ext/sybase/php_sybase_db.c: In function
`zif_sybase_affected_rows':
/usr/local/php/php-5.0.0b1/ext/sybase/php_sybase_db.c:1331: invalid
type argument of `->'
/usr/local/php/php-5.0.0b1/ext/sybase/php_sybase_db.c:1331: invalid
type argument of `->'
/usr/local/php/php-5.0.0b1/ext/sybase/php_sybase_db.c:1331:
incompatible types in initialization
/usr/local/php/php-5.0.0b1/ext/sybase/php_sybase_db.c:1331:
incompatible types in assignment
/usr/local/php/php-5.0.0b1/ext/sybase/php_sybase_db.c:1331: invalid
type argument of `unary *'
/usr/local/php/php-5.0.0b1/ext/sybase/php_sybase_db.c:1331:
incompatible type for argument 1 of `_zval_copy_ctor'
/usr/local/php/php-5.0.0b1/ext/sybase/php_sybase_db.c:1331: invalid
type argument of `->'
/usr/local/php/php-5.0.0b1/ext/sybase/php_sybase_db.c:1331: invalid
type argument of `->'
/usr/local/php/php-5.0.0b1/ext/sybase/php_sybase_db.c:1331:
incompatible type for argument 1 of `convert_to_long'
/usr/local/php/php-5.0.0b1/ext/sybase/php_sybase_db.c:1332: invalid
type argument of `unary *'
make: *** [ext/sybase/php_sybase_db.lo] Error 1
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=24406&edit=1