dstogov/php-ffi

make fail multiple definition

m4p1e opened this issue · 0 comments

m4p1e commented
>git checkout PHP-7.4
>./configure --prefix=/root/phpffi  --disable-all --enable-debug --with-ffi --enable-opcache --with-readline --enable-cli

make fail happend

/usr/bin/ld: ext/php-ffi/.libs/ffi.o: in function `zim_FFI_cdef':
/root/php-src/ext/php-ffi/ffi.c:2550: multiple definition of `zim_FFI_cdef'; ext/ffi/.libs/ffi.o:/root/php-src/ext/ffi/ffi.c:2785: first defined here
/usr/bin/ld: ext/php-ffi/.libs/ffi.o: in function `zim_FFI_load':
/root/php-src/ext/php-ffi/ffi.c:2814: multiple definition of `zim_FFI_load'; ext/ffi/.libs/ffi.o:/root/php-src/ext/ffi/ffi.c:3049: first defined here
/usr/bin/ld: ext/php-ffi/.libs/ffi.o: in function `zim_FFI_scope':
/root/php-src/ext/php-ffi/ffi.c:3078: multiple definition of `zim_FFI_scope'; ext/ffi/.libs/ffi.o:/root/php-src/ext/ffi/ffi.c:3314: first defined here
/usr/bin/ld: ext/php-ffi/.libs/ffi.o: in function `zend_ffi_validate_type_name':
/root/php-src/ext/php-ffi/ffi.c:3210: multiple definition of `zend_ffi_validate_type_name'; ext/ffi/.libs/ffi.o:/root/php-src/ext/ffi/ffi.c:3446: first defined here
/usr/bin/ld: ext/php-ffi/.libs/ffi.o: in function `zim_FFI_new':
/root/php-src/ext/php-ffi/ffi.c:3277: multiple definition of `zim_FFI_new'; ext/ffi/.libs/ffi.o:/root/php-src/ext/ffi/ffi.c:3513: first defined here
/usr/bin/ld: ext/php-ffi/.libs/ffi.o: in function `zim_FFI_free':
....

how can i slove it ?