multiple definition of pcre_module_entry in 5.0.5

php.internals

Daniel Convissor

20 years ago
Hi Folks: While trying to compile 5.0.5 from CVS on a Tao Linux box I'm getting a "multiple definition of `pcre_module_entry'" error. Things compile just fine in PHP 5.1.1 from CVS. Here's my configure line: ./configure --with-apxs --with-mysqli=/usr/local/bin/mysql_config \ --with-curl --enable-sysvsem \ --enable-sysvshm --with-mcrypt --with-gd --with-jpeg-dir \ --with-freetype-dir --with-zlib --enable-sockets --enable-memory-limit \ --enable-bcmath --enable-mbstring Here's the error: ext/pcre/php_pcre.lo(.data+0xa0): In function `zm_info_pcre': /root/src/php-src/ext/pcre/php_pcre.c:78: multiple definition of `pcre_module_entry' ext/pcre/php_pcre.lo(.data+0xa0):/root/src/php-src/ext/pcre/php_pcre.c:78: first defined here collect2: ld returned 1 exit status make: *** [libphp5.la] Error 1 Here's part of my dmesg: Linux version 2.4.21-32.0.1.ELsmp (parsley@galadriel.alfred.edu) (gcc version 3.2.3 20030502 (Red Hat Linux 3.2.3-52)) #1 SMP Thu May 26 09:34:46 EDT 2005 Any ideas, please? Thanks, --Dan
-- T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y data intensive web and database programming http://www.AnalysisAndSolutions.com/ 4015 7th Ave #4, Brooklyn NY 11232 v: 718-854-0335 f: 718-854-0409

Antony Dovgal

20 years ago
Remove ext/pcre/config.m4 and run ./cvsclean && ./buildconf On 01.12.2005 02:37, Daniel Convissor wrote:
> Hi Folks: > > While trying to compile 5.0.5 from CVS on a Tao Linux box I'm getting a > "multiple definition of `pcre_module_entry'" error. Things compile just > fine in PHP 5.1.1 from CVS. Here's my configure line: > > ./configure --with-apxs --with-mysqli=/usr/local/bin/mysql_config \ > --with-curl --enable-sysvsem \ > --enable-sysvshm --with-mcrypt --with-gd --with-jpeg-dir \ > --with-freetype-dir --with-zlib --enable-sockets --enable-memory-limit \ > --enable-bcmath --enable-mbstring > > Here's the error: > > ext/pcre/php_pcre.lo(.data+0xa0): In function `zm_info_pcre': > /root/src/php-src/ext/pcre/php_pcre.c:78: multiple definition of > `pcre_module_entry' > ext/pcre/php_pcre.lo(.data+0xa0):/root/src/php-src/ext/pcre/php_pcre.c:78: > first defined here > collect2: ld returned 1 exit status > make: *** [libphp5.la] Error 1 > > Here's part of my dmesg: > > Linux version 2.4.21-32.0.1.ELsmp (parsley@galadriel.alfred.edu) (gcc > version 3.2.3 20030502 (Red Hat Linux 3.2.3-52)) #1 SMP Thu May 26 > 09:34:46 EDT 2005 > > Any ideas, please? > > Thanks, > > --Dan >
-- Wbr, Antony Dovgal

Daniel Convissor

20 years ago
Hi Anthony: On Thu, Dec 01, 2005 at 02:45:28AM +0300, Antony Dovgal wrote:
> Remove ext/pcre/config.m4 and run ./cvsclean && ./buildconf
Thanks. Did the trick. --Dan
-- T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y data intensive web and database programming http://www.AnalysisAndSolutions.com/ 4015 7th Ave #4, Brooklyn NY 11232 v: 718-854-0335 f: 718-854-0409