Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 03 May 2006 13:25:40 +0200
From:      Olivier Mueller <om-lists-bsd@omx.ch>
To:        ports@FreeBSD.org
Subject:   Re: php5 & pear & pecl (Fatal error: Call to undefined function preg_match())
Message-ID:  <1146655541.12909.15.camel@olipc.insign.local>
In-Reply-To: <1141746202.27811.63.camel@olipc.insign.local>
References:  <1141746202.27811.63.camel@olipc.insign.local>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 2006-03-07 at 16:43 +0100, Olivier Mueller wrote:
> $ pecl
> Fatal error: Call to undefined function preg_match()
> in /usr/local/share/pear/PEAR/Frontend/CLI.php on line 70
> 
> But the preg functions are installed and active. (pcre.so & co.)

update:  pecl can't work this way because at the end of
/usr/local/bin/pecl, php is started with option "-n" :

    -n               No php.ini file will be used

( exec $PHP -C -n -q $INCARG -d output_buffering=1 -d safe_mode=0
$INCDIR/peclcmd.php "$@" ).  And with php5-5.1.2_1, the extensions
are not compiled in the php binary, but defined in php.in...

By remove this "-n", pecl is working fine...


> Well, I'd still like to get my pecl pop3 running... An idea? 

The pecl part is ok, but the pop3 won't compile (yet):
 gcc -I. -I/usr/local/src/pop3-1.0.2 -DPHP_ATOM_INC
-I/usr/local/src/pop3-1.0.2/include -I/usr/local/src/pop3-1.0.2/main
-I/usr/local/src/pop3-1.0.2 -I/usr/local/include/php
-I/usr/local/include/php/main -I/usr/local/include/php/TSRM
-I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/include
-DHAVE_CONFIG_H -g -O2 -c /usr/local/src/pop3-1.0.2/pop3.c  -fPIC -DPIC
-o .libs/pop3.o
/usr/local/src/pop3-1.0.2/pop3.c: In function `pop3_objects_new':
/usr/local/src/pop3-1.0.2/pop3.c:175: error: structure has no member
named `in_get'
/usr/local/src/pop3-1.0.2/pop3.c:176: error: structure has no member
named `in_set'
*** Error code 1


work in progress... :)
regards,
Olivier





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1146655541.12909.15.camel>