ID: 35486
Updated by: [EMAIL PROTECTED]
Reported By: jasonlamkk at gmail dot com
-Status: Open
+Status: Bogus
Bug Type: Compile Failure
Operating System: Redhat
PHP Version: 5.1.1
New Comment:
Try using correct configure options next time.
Passing '/lib' to any option does not work.
Previous Comments:
------------------------------------------------------------------------
[2005-11-30 13:07:34] jasonlamkk at gmail dot com
Description:
------------
there are many "multiple definition" of xxxx occur when i compile
php-5.1.1
most of them related to pdo,
ext/pdo/.libs/pdo_stmt.o(.data+0x178):/tmp/php-5.1.1/ext/pdo/pdo_stmt.c:214:
first defined here
i choose -without-pdo-sqlite and -without-pdo-sqlite2
since they cause samiliar errors,
--enable-pdo=shared cause error too
Thanks and Regards
Reproduce code:
---------------
./configure --with-apxs \
--with-curl=/usr/lib/include/curl \
--with-freetype-dir=/usr/local/lib \
--with-gd \
--with-gettext \
--with-gmp \
--with-jpeg-dir=/usr/local/lib \
--with-java=/usr/java \
--with-kerberos \
--with-mcrypt \
--with-mhash \
--with-mysql=/usr/lib,shared \
--with-readline=/usr/lib \
--with-pear \
--with-regex=php \
--with-xml \
--without-pdo-sqlite \
--without-pdo-sqlite2 \
--with-zlib \
--with-zip \
--with-openssl \
make
Expected result:
----------------
complete 'make' as normal
Actual result:
--------------
... -o libphp5.la
Zend/.libs/zend_builtin_functions.o(.data+0x0): In function
`zend_startup_builtin_functions':
/usr/local/directadmin/customapache/php-5.1.1/Zend/zend_builtin_functions.c:152:
multiple definition of `first_arg_force_ref'
ext/pdo/.libs/pdo_stmt.o(.data+0x0):/usr/local/directadmin/customapache/php-5.1.1/ext/pdo/pdo_stmt.c:79:
first defined here
Zend/.libs/zend_builtin_functions.o(.data+0x40): In function
`zif_func_num_args':
/usr/local/directadmin/customapache/php-5.1.1/Zend/zend_builtin_functions.c:169:
multiple definition of `second_arg_force_ref'
ext/pdo/.libs/pdo_stmt.o(.data+0x40):/usr/local/directadmin/customapache/php-5.1.1/ext/pdo/pdo_stmt.c:135:
first defined here
Zend/.libs/zend_builtin_functions.o(.data+0xa0): In function
`zif_func_num_args':
/usr/local/directadmin/customapache/php-5.1.1/Zend/zend_builtin_functions.c:177:
multiple definition of `third_arg_force_ref'
ext/pdo/.libs/pdo_stmt.o(.data+0xa0):/usr/local/directadmin/customapache/php-5.1.1/ext/pdo/pdo_stmt.c:150:
first defined here
Zend/.libs/zend_builtin_functions.o(.data+0x100): In function
`zif_func_get_arg':
/usr/local/directadmin/customapache/php-5.1.1/Zend/zend_builtin_functions.c:203:
multiple definition of `fourth_arg_force_ref'
ext/pdo/.libs/pdo_stmt.o(.data+0x100):/usr/local/directadmin/customapache/php-5.1.1/ext/pdo/pdo_stmt.c:174:
first defined here
Zend/.libs/zend_builtin_functions.o(.data+0x178): In function
`zif_func_get_arg':
/usr/local/directadmin/customapache/php-5.1.1/Zend/zend_builtin_functions.c:232:
multiple definition of `all_args_by_ref'
ext/pdo/.libs/pdo_stmt.o(.data+0x178):/usr/local/directadmin/customapache/php-5.1.1/ext/pdo/pdo_stmt.c:214:
first defined here
collect2: ld returned 1 exit status
make: *** [libphp5.la] Error 1
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=35486&edit=1