Hello all:

After installing the PHP rpms that come with Mandrake 7.2 I discovered a bug
in a PHP application I use (MyThreads, can be found @ sourceforge).  The
problem is that the PHP rpm was compiled with '--with-regex=system' and my
app seems to need '--with-regex=php' (the default).

I went into the spec for the srpm and changed the '--with-regex' line and
the release line.

When I go to compile the new package I get the following error at the end of
the make phase:

+ pushd sapi/cgi
/usr/src/RPM/BUILD/php-4.0.3pl1/sapi/cgi /usr/src/RPM/BUILD/php-4.0.3pl1
+
gcc -O3 -fomit-frame-pointer -pipe -s -march=pentium -ffast-math -fexpensive
-opt
imizations cgi_main.c
getopt.c -I../../main -I../../Zend -I../../TSRM -I../../rege
x -I../../ext/standard -I../../ -L../../shared -lphp_common -o php
../../shared/libphp_common.so: undefined reference to `php_regcomp'
../../shared/libphp_common.so: undefined reference to `php_regerror'
../../shared/libphp_common.so: undefined reference to `php_regexec'
../../shared/libphp_common.so: undefined reference to `php_regfree'
collect2: ld returned 1 exit status
Bad exit status from /var/tmp/rpm-tmp.22815 (%build)

I was unable to create a regex that both worked and was accepted by the
system regex lib for the app.

As a work around I just compiled PHP from the tarball, but I really prefer
the rpms.

Any ideas on what's going on with the SRPM to prevent the compilation?

Chris


Reply via email to