# multiple definition of pcre_module_entry in 5.0.5

- Thread: https://externals.io/message/20922
- Original archive: https://news-web.php.net/php.internals/20922
- Started by Daniel Convissor on 2005-11-30T23:37:59+00:00
- Messages: 3
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #20922 — Daniel Convissor — 2005-11-30T23:37:59+00:00

URL: https://externals.io/message/20922#20922

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

---

## #20923 — Antony Dovgal — 2005-11-30T23:45:28+00:00

URL: https://externals.io/message/20922#20923 · In reply to: #20922

Remove ext/pcre/config.m4 and run ./cvsclean && ./buildconf


> 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

---

## #20967 — Daniel Convissor — 2005-12-01T17:05:32+00:00

URL: https://externals.io/message/20922#20967 · In reply to: #20923

Hi Anthony:


> 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
