Previous Comments: ------------------------------------------------------------------------ [2008-08-01 11:28:18] paulpierre dot brun at free dot fr Description: ------------ I need to compile extension PHP-sybase_ct ../configure --with-php-config=/usr/bin/php-config --with-sybase-ct=/home/sybase/OCS-15_0 at make command I have following error. Same things whith corrections as ask in bug report #45357 sybase-ct fails against sybase-15_0 on 64-bit centos 5 . PHP version PHP 5.1.6 (cli) (built: Jan 15 2008 04:57:50), Exention package for sybase_ct is 5.2.6 1887 jui 3 2007 config.m4 628 déc 19 2003 config.w32 45 nov 5 2002 CREDITS 1002 67711 déc 31 2007 php_sybase_ct.c 3787 déc 31 2007 php_sybase_ct.h 5024 jan 17 2004 sybase_ct.dsp 4096 avr 30 20:37 tests OS 2.6.18-92.el5 #1 SMP x86_64 RedHAt 5.2 Reproduce code: --------------- config.m4 patch dnl SYBASE_CT_LIBS="-L$SYBASE_CT_LIBDIR -lcs -lct -lcomn -lintl" SYBASE_CT_LIBS="-L$SYBASE_CT_LIBDIR -lsybcs -lsybct -lsybcomn -lsybintl" Makefile SYBASE_CT_SHARED_LIBADD = -lsybtcl -lsybintl -lsybcomn -lsybct -lsybcsn -Wl,-rpath,/home/sybase/OCS-15_0/lib -L/home/sybase/OCS-15_0/lib Expected result: ---------------- make /bin/sh /export/logiciels/module_sybase_ct/sybase_ct/libtool --mode=compile gcc -I. -I/export/logiciels/module_sybase_ct/sybase_ct -DPHP_ATOM_INC -I/export/logiciels/module_sybase_ct/sybase_ct/include -I/export/logiciels/module_sybase_ct/sybase_ct/main -I/export/logiciels/module_sybase_ct/sybase_ct -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/export/home/toulouse/sgbdr/sybase/OCS-15_0/include -DHAVE_CONFIG_H -g -O2 -c /export/logiciels/module_sybase_ct/sybase_ct/php_sybase_ct.c -o php_sybase_ct.lo gcc -I. -I/export/logiciels/module_sybase_ct/sybase_ct -DPHP_ATOM_INC -I/export/logiciels/module_sybase_ct/sybase_ct/include -I/export/logiciels/module_sybase_ct/sybase_ct/main -I/export/logiciels/module_sybase_ct/sybase_ct -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/export/home/toulouse/sgbdr/sybase/OCS-15_0/include -DHAVE_CONFIG_H -g -O2 -c /export/logiciels/module_sybase_ct/sybase_ct/php_sybase_ct.c -fPIC -DPIC -o .libs/php_sybase_ct.o /export/logiciels/module_sybase_ct/sybase_ct/php_sybase_ct.c:41: warning: parameter names (without types) in function declaration /export/logiciels/module_sybase_ct/sybase_ct/php_sybase_ct.c:42: warning: parameter names (without types) in function declaration /export/logiciels/module_sybase_ct/sybase_ct/php_sybase_ct.c:108: error: 'sybase' undeclared here (not in a function) /export/logiciels/module_sybase_ct/sybase_ct/php_sybase_ct.c:108: error: initializer element is not constant /export/logiciels/module_sybase_ct/sybase_ct/php_sybase_ct.c:108: error: (near initialization for 'sybase_module_entry.post_deactivate_func') /export/logiciels/module_sybase_ct/sybase_ct/php_sybase_ct.c:109: error: initializer element is not constant /export/logiciels/module_sybase_ct/sybase_ct/php_sybase_ct.c:109: error: (near initialization for 'sybase_module_entry.globals_id') /export/logiciels/module_sybase_ct/sybase_ct/php_sybase_ct.c:110: error: initializer element is not constant /export/logiciels/module_sybase_ct/sybase_ct/php_sybase_ct.c:110: error: (near initialization for 'sybase_module_entry.module_started') /export/logiciels/module_sybase_ct/sybase_ct/php_sybase_ct.c:111: warning: initialization makes integer from pointer without a cast /export/logiciels/module_sybase_ct/sybase_ct/php_sybase_ct.c:112: warning: excess elements in struct initializer /export/logiciels/module_sybase_ct/sybase_ct/php_sybase_ct.c:112: warning: (near initialization for 'sybase_module_entry') /export/logiciels/module_sybase_ct/sybase_ct/php_sybase_ct.c:112: warning: excess elements in struct initializer /export/logiciels/module_sybase_ct/sybase_ct/php_sybase_ct.c:112: warning: (near initialization for 'sybase_module_entry') /export/logiciels/module_sybase_ct/sybase_ct/php_sybase_ct.c:113: warning: excess elements in struct initializer /export/logiciels/module_sybase_ct/sybase_ct/php_sybase_ct.c:113: warning: (near initialization for 'sybase_module_entry') /export/logiciels/module_sybase_ct/sybase_ct/php_sybase_ct.c: In function 'PHP_GINIT_FUNCTION': /export/logiciels/module_sybase_ct/sybase_ct/php_sybase_ct.c:394: error: invalid type argument of '->' /export/logiciels/module_sybase_ct/sybase_ct/php_sybase_ct.c:394: error: invalid type argument of '->' /export/logiciels/module_sybase_ct/sybase_ct/php_sybase_ct.c:399: error: invalid type argument of '->' /export/logiciels/module_sybase_ct/sybase_ct/php_sybase_ct.c:403: error: invalid type argument of '->' /export/logiciels/module_sybase_ct/sybase_ct/php_sybase_ct.c:415: error: invalid type argument of '->' /export/logiciels/module_sybase_ct/sybase_ct/php_sybase_ct.c:430: error: invalid type argument of '->' /export/logiciels/module_sybase_ct/sybase_ct/php_sybase_ct.c:435: error: invalid type argument of '->' /export/logiciels/module_sybase_ct/sybase_ct/php_sybase_ct.c:436: error: invalid type argument of '->' /export/logiciels/module_sybase_ct/sybase_ct/php_sybase_ct.c: In function 'PHP_GSHUTDOWN_FUNCTION': /export/logiciels/module_sybase_ct/sybase_ct/php_sybase_ct.c:442: error: invalid type argument of '->' /export/logiciels/module_sybase_ct/sybase_ct/php_sybase_ct.c:443: error: invalid type argument of '->' /export/logiciels/module_sybase_ct/sybase_ct/php_sybase_ct.c: In function 'php_sybase_do_connect': /export/logiciels/module_sybase_ct/sybase_ct/php_sybase_ct.c:794: warning: cast from pointer to integer of different size /export/logiciels/module_sybase_ct/sybase_ct/php_sybase_ct.c: In function 'php_sybase_fetch_result_row': /export/logiciels/module_sybase_ct/sybase_ct/php_sybase_ct.c:1150: warning: cast to pointer from integer of different size make: *** [php_sybase_ct.lo] Erreur 1 ------------------------------------------------------------------------ Anybody can help me ?