From:             adam at cryptocomm dot com
Operating system: Redhat 9
PHP version:      5.0.0b1 (beta1)
PHP Bug Type:     Compile Failure
Bug description:  Failure on FreeTDS Portion

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 bug report at http://bugs.php.net/?id=24406&edit=1
-- 
Try a CVS snapshot:         http://bugs.php.net/fix.php?id=24406&r=trysnapshot
Fixed in CVS:               http://bugs.php.net/fix.php?id=24406&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=24406&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=24406&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=24406&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=24406&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=24406&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=24406&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=24406&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=24406&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24406&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=24406&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=24406&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=24406&r=gnused

Reply via email to