Python VS PHP

Cosmic_NTT sorpippo at libero.it
Mon Dec 31 11:43:52 EST 2001


Hi everybody and..... good 2K+2.
OK, OK...Python & php cannot be used together : pcre linking

It seems that python cannot be used in conjunction
with PHP : the Make with both resulted in :

##########################
/usr/lib/python1.5/config/libpython1.5.a(pypcre.o): In function
`pcre_study':
/usr/src/bs/BUILD/Python-1.5.2/Modules/./pypcre.c:514: multiple definition
of `pcre_malloc'
modules/php4/libphp4.a(pcre.o):/tmp/php-4.1.0/ext/pcre/pcrelib/pcre.c:309:
first defined here
/usr/lib/python1.5/config/libpython1.5.a(pypcre.o): In function
`pcre_study':
/usr/src/bs/BUILD/Python-1.5.2/Modules/./pypcre.c:516: multiple definition
of `pcre_free'
modules/php4/libphp4.a(pcre.o):/tmp/php-4.1.0/ext/pcre/pcrelib/pcre.c:309:
first defined here
collect2: ld returned 1 exit status
make[2]: *** [target_static] Error 1
make[1]: *** [build-std] Error 2
make: *** [build] Error 2
#############################

But how to solve the problem?

Ciao.
Giuseppe.







More information about the Python-list mailing list