How to fix error multiple definition of `get_module' first defined here when install php module
Error appears
d_generators.lo Zend/zend_virtual_cwd.lo Zend/zend_ast.lo Zend/zend_objects.lo Zend/zend_object_handlers.lo Zend/zend_objects_API.lo Zend/zend_default_classes.lo Zend/zend_execute.lo main/internal_functions_cli.lo sapi/cli/php_cli.lo sapi/cli/php_http_parser.lo sapi/cli/php_cli_server.lo sapi/cli/ps_title.lo sapi/cli/php_cli_process_title.lo -lcrypt -lz -lcrypt -lrt -lmcrypt -lstdc++ -lpng -lz -ljpeg -lcurl -lbz2 -lz -lrt -lm -ldl -lnsl -lrt -lxml2 -lz -lm -lssl -lcrypto -lcurl -lxml2 -lz -lm -lssl -lcrypto -licui18n -licuuc -licudata -lm -licuio -lxml2 -lz -lm -lxml2 -lz -lm -lcrypt -lxml2 -lz -lm -lxml2 -lz -lm -lxml2 -lz -lm -lxml2 -lz -lm -lxml2 -lz -lm -lssl -lcrypto -lcrypt -o sapi/cli/php
ext/wddx/.libs/wddx.o: In function `get_module':
/root/php-5.6.38/ext/wddx/wddx.c:151: multiple definition of `get_module'
ext/mcrypt/.libs/mcrypt.o:/root/php-5.6.38/ext/mcrypt/mcrypt.c:312: first defined here
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1
[root@maswachid php-5.6.38]#
Open the error file and commend on line 312
[root@sipencatar-cloud wddx]# vi /root/php-5.6.38/ext/mcrypt/mcrypt.c
[root@sipencatar-cloud wddx]#
Compile php again
[root@maswachid php-5.6.38]# make
/bin/sh /root/php-5.6.38/libtool --silent --preserve-dup-deps --mode=compile cc -Iext/mcrypt/ -I/root/php-5.6.38/ext/mcrypt/ -DPHP_ATOM_INC -I/root/php-5.6.38/include -I/root/php-5.6.38/main -I/root/php-5.6.38 -I/root/php-5.6.38/ext/date/lib -I/root/php-5.6.38/ext/ereg/regex -I/usr/include/libxml2 -I/root/php-5.6.38/ext/mbstring/oniguruma -I/root/php-5.6.38/ext/mbstring/libmbfl -I/root/php-5.6.38/ext/mbstring/libmbfl/mbfl -I/root/php-5.6.38/ext/sqlite3/libsqlite -I/root/php-5.6.38/ext/zip/lib -I/root/php-5.6.38/TSRM -I/root/php-5.6.38/Zend -I/usr/include -g -O2 -fvisibility=hidden -c /root/php-5.6.38/ext/mcrypt/mcrypt.c -o ext/mcrypt/mcrypt.lo
/bin/sh /root/php-5.6.38/libtool --silent --preserve-dup-deps --mode=link cc -export-dynamic -I/usr/include -g -O2 -fvisibility=hidden ext/date/php_date.lo ext/date/lib/astro.lo ext/date/lib/dow.lo ext/date/lib/parse_date.lo ext/date/lib/parse_tz.lo ext/date/lib/timelib.lo ext/date/lib/tm2unixtime.lo ext/date/lib/unixtime2tm.lo ext/date/lib/parse_iso_intervals.lo ext/date/lib/interval.lo ext/ereg/ereg.lo ext/ereg/regex/regcomp.lo ext/ereg/regex/regexec.lo ext/ereg/regex/regerror.lo ext/ereg/regex/regfree.lo ext/libxml/libxml.lo ext/openssl/openssl.lo ext/openssl/xp_ssl.lo ext/pcre/pcrelib/pcre_chartables.lo ext/pcre/pcrelib/pcre_ucd.lo ext/pcre/pcrelib/pcre_compile.lo ext/pcre/pcrelib/pcre_config.lo ext/pcre/pcrelib/pcre_exec.lo ext/pc
..
..
end/zend_default_classes.lo Zend/zend_execute.lo main/internal_functions_cli.lo sapi/cgi/cgi_main.lo sapi/cgi/fastcgi.lo -lcrypt -lz -lcrypt -lrt -lmcrypt -lstdc++ -lpng -lz -ljpeg -lcurl -lbz2 -lz -lrt -lm -ldl -lnsl -lrt -lxml2 -lz -lm -lssl -lcrypto -lcurl -lxml2 -lz -lm -lssl -lcrypto -licui18n -licuuc -licudata -lm -licuio -lxml2 -lz -lm -lxml2 -lz -lm -lcrypt -lxml2 -lz -lm -lxml2 -lz -lm -lxml2 -lz -lm -lxml2 -lz -lm -lxml2 -lz -lm -lssl -lcrypto -lcrypt -o sapi/cgi/php-cgi
Generating phar.php
Generating phar.phar
PEAR package PHP_Archive not installed: generated phar will require PHP's phar extension be enabled.
pharcommand.inc
clicommand.inc
directorygraphiterator.inc
directorytreeiterator.inc
invertedregexiterator.inc
phar.inc
Build complete.
Don't forget to run 'make test'.
[root@maswachid php-5.6.38]#
Install the php source
[root@maswachid php-5.6.38]# make install Installing shared extensions: /usr/local/php5/lib/php/extensions/no-debug-non-zts-20131226/ Installing PHP CLI binary: /usr/local/php5/bin/ Installing PHP CLI man page: /usr/local/php5/php/man/man1/ Installing PHP FPM binary: /usr/local/php5/sbin/ Installing PHP FPM config: /usr/local/php5/etc/ Installing PHP FPM man page: /usr/local/php5/php/man/man8/ Installing PHP FPM status page: /usr/local/php5/php/php/fpm/ Installing PHP CGI binary: /usr/local/php5/bin/ Installing PHP CGI man page: /usr/local/php5/php/man/man1/ Installing build environment: /usr/local/php5/lib/php/build/ Installing header files: /usr/local/php5/include/php/ Installing helper programs: /usr/local/php5/bin/ program: phpize program: php-config Installing man pages: /usr/local/php5/php/man/man1/ page: phpize.1 page: php-config.1 Installing PEAR environment: /usr/local/php5/lib/php/ [PEAR] Archive_Tar - already installed: 1.4.3 [PEAR] Console_Getopt - already installed: 1.4.1 [PEAR] Structures_Graph- already installed: 1.1.1 [PEAR] XML_Util - already installed: 1.4.2 [PEAR] PEAR - already installed: 1.10.5 Wrote PEAR system config file at: /usr/local/php5/etc/pear.conf You may want to add: /usr/local/php5/lib/php to your php.ini include_path /root/php-5.6.38/build/shtool install -c ext/phar/phar.phar /usr/local/php5/bin ln -s -f phar.phar /usr/local/php5/bin/phar Installing PDO headers: /usr/local/php5/include/php/ext/pdo/ [root@maswachid php-5.6.38]#
The installation success
Tidak ada komentar :
Posting Komentar