I have cent os server with PHP 5.1.6 installed, since I need php 5.3 and above for some other application, I have installed php 5.3.8 to /opt/php53 .
Now I am trying to enable extensions like curl bcmaths etc to this installation
I have a similar setup on our different server where I have successfully enabled curl and bcmath without any issue. Same php tar file I am using this server , but I am getting syntax error during make
Steps I have followed mentioned below
1) Went tot source folder
/usr/local/src/php-5.3.8/ext/bcmath
2) phpize
3) ./configure
4) make
I am getting the following error during make
/usr/local/src/php-5.3.8/ext/bcmath/bcmath.c:35: warning: parameter names (without types) in function declaration
/usr/local/src/php-5.3.8/ext/bcmath/bcmath.c:36: warning: parameter names (without types) in function declaration
/usr/local/src/php-5.3.8/ext/bcmath/bcmath.c:115: warning: initialization discards qualifiers from pointer target type
/usr/local/src/php-5.3.8/ext/bcmath/bcmath.c:122: error: 'bcmath' undeclared here (not in a function)
/usr/local/src/php-5.3.8/ext/bcmath/bcmath.c:122: error: initializer element is not constant
/usr/local/src/php-5.3.8/ext/bcmath/bcmath.c:122: error: (near initialization for 'bcmath_module_entry.post_deactivate_func')
/usr/local/src/php-5.3.8/ext/bcmath/bcmath.c:123: error: initializer element is not constant
/usr/local/src/php-5.3.8/ext/bcmath/bcmath.c:123: error: (near initialization for 'bcmath_module_entry.globals_id')
/usr/local/src/php-5.3.8/ext/bcmath/bcmath.c:124: error: initializer element is not constant
/usr/local/src/php-5.3.8/ext/bcmath/bcmath.c:124: error: (near initialization for 'bcmath_module_entry.module_started')
/usr/local/src/php-5.3.8/ext/bcmath/bcmath.c:125: warning: initialization makes integer from pointer without a cast
/usr/local/src/php-5.3.8/ext/bcmath/bcmath.c:126: warning: excess elements in struct initializer
/usr/local/src/php-5.3.8/ext/bcmath/bcmath.c:126: warning: (near initialization for 'bcmath_module_entry')
/usr/local/src/php-5.3.8/ext/bcmath/bcmath.c:126: warning: excess elements in struct initializer
/usr/local/src/php-5.3.8/ext/bcmath/bcmath.c:126: warning: (near initialization for 'bcmath_module_entry')
/usr/local/src/php-5.3.8/ext/bcmath/bcmath.c:127: warning: excess elements in struct initializer
/usr/local/src/php-5.3.8/ext/bcmath/bcmath.c:127: warning: (near initialization for 'bcmath_module_entry')
/usr/local/src/php-5.3.8/ext/bcmath/bcmath.c:135: error: 'OnUpdateLongGEZero' undeclared here (not in a function)
/usr/local/src/php-5.3.8/ext/bcmath/bcmath.c: In function 'PHP_GINIT_FUNCTION':
/usr/local/src/php-5.3.8/ext/bcmath/bcmath.c:143: error: invalid type argument of '->'
/usr/local/src/php-5.3.8/ext/bcmath/bcmath.c:143: error: request for member 'bc_precision' in something not a structure or union
/usr/local/src/php-5.3.8/ext/bcmath/bcmath.c: In function 'PHP_GSHUTDOWN_FUNCTION':
/usr/local/src/php-5.3.8/ext/bcmath/bcmath.c:152: error: invalid type argument of '->'
/usr/local/src/php-5.3.8/ext/bcmath/bcmath.c:152: error: request for member 'zero' in something not a structure or union
/usr/local/src/php-5.3.8/ext/bcmath/bcmath.c:152: warning: passing argument 1 of 'bc_free_num_ex' from incompatible pointer type
/usr/local/src/php-5.3.8/ext/bcmath/bcmath.c:153: error: invalid type argument of '->'
/usr/local/src/php-5.3.8/ext/bcmath/bcmath.c:153: error: request for member 'one' in something not a structure or union
/usr/local/src/php-5.3.8/ext/bcmath/bcmath.c:153: warning: passing argument 1 of 'bc_free_num_ex' from incompatible pointer type
/usr/local/src/php-5.3.8/ext/bcmath/bcmath.c:154: error: invalid type argument of '->'
/usr/local/src/php-5.3.8/ext/bcmath/bcmath.c:154: error: request for member 'two' in something not a structure or union
/usr/local/src/php-5.3.8/ext/bcmath/bcmath.c:154: warning: passing argument 1 of '_bc_free_num_ex' from incompatible pointer type
Please help me to sort out this issue