PDA

View Full Version : Problem with upgrading php5-pcre and php5-mysql


KernelPanic
06-16-2008, 04:59 PM
My upgrade to php5.2.6 went ok. But both of these ports are suffering the same error of a missing 'shtool'

---> Upgrading 'php5-pcre-5.2.5' to 'php5-pcre-5.2.6' (devel/php5-pcre)
---> Building '/usr/ports/devel/php5-pcre'
===> Cleaning for php5-pcre-5.2.6
===> Vulnerability check disabled, database not found
===> Extracting for php5-pcre-5.2.6
=> MD5 Checksum OK for php-5.2.6.tar.bz2.
=> SHA256 Checksum OK for php-5.2.6.tar.bz2.
===> Patching for php5-pcre-5.2.6
===> Applying FreeBSD patches for php5-pcre-5.2.6
===> php5-pcre-5.2.6 depends on file: /usr/local/bin/phpize - found
===> php5-pcre-5.2.6 depends on file: /usr/local/bin/autoconf-2.61 - found
===> PHPizing for php5-pcre-5.2.6
Configuring for:
PHP Api Version: 20041225
Zend Module Api No: 20060613
Zend Extension Api No: 220060519
cat: acinclude.m4: No such file or directory
cat: ./build/libtool.m4: No such file or directory
chmod: /usr/ports/devel/php5-pcre/work/php-5.2.6/ext/pcre/build/shtool: No such file or directory
shtool at '/usr/ports/devel/php5-pcre/work/php-5.2.6/ext/pcre/build/shtool' does not exist or is not executable.
Make sure that the file exists and is executable and then rerun this script.

*** Error code 1

Stop in /usr/ports/devel/php5-pcre.


It appears as if shtool is missing but I don't know why it is missing or how to get the port to create that file.

System:
FreeBSD 6.3-RELEASE-p2 i386

stukov
06-16-2008, 05:29 PM
I am building php5-pcre to see if the error is reproduceable. I will update you shortly.

stukov
06-16-2008, 05:44 PM
# portmaster php5-pcre

[...]

===>>> The following actions were performed:
Upgrade of libtool-1.5.24 to libtool-1.5.26
Upgrade of gettext-0.16.1_3 to gettext-0.17_1
Upgrade of gmake-3.81_2 to gmake-3.81_3
Upgrade of pkg-config-0.22_1 to pkg-config-0.23_1
Upgrade of libxml2-2.6.31 to libxml2-2.6.32
Upgrade of php5-5.2.5_1 to php5-5.2.6
Upgrade of php5-pcre-5.2.5_1 to php5-pcre-5.2.6

Worked for me. Have you tried updating the ports tree, cleaning work dir and rebuilding the port?

KernelPanic
06-16-2008, 07:24 PM
Worked for me. Have you tried updating the ports tree, cleaning work dir and rebuilding the port?

I deleted both the lang/php5 and the devel/php5-pcre port directories and retrieved them again via csup. I even reinstalled php5.2.6 thinking maybe something in the configs or the binary got messed up. I still get the same error.

It looks like this section of the lang/php5/Makefile is failing:

pre-configure:
@${CAT} ${WRKSRC}/acinclude.m4 ${WRKSRC}/build/libtool.m4 > ${WRKSRC}/aclocal.m4

acinclude.m4, libtool.m4 and shtool are nowhere to be found in my work directory.

I extracted the source ball into /root/php-5.2.6 started copying files over that 'make' complained were missing:

acinclude.m4
build/libtool.m4
build/shtool
config.sub
Makefile.global

At this point it appears the configure part works. But then libtool doesn't seem to be functioning properly:


===> Building for php5-pcre-5.2.6
/bin/sh /usr/ports/devel/php5-pcre/work/php-5.2.6/ext/pcre/libtool --mode=compile cc -I/usr/ports/devel/php5-pcre/work/php-5.2.6/ext/pcre/pcrelib -I. -I/usr/ports/devel/php5-pcre/work/php-5.2.6/ext/pcre -DPHP_ATOM_INC -I/usr/ports/devel/php5-pcre/work/php-5.2.6/ext/pcre/include -I/usr/ports/devel/php5-pcre/work/php-5.2.6/ext/pcre/main -I/usr/ports/devel/php5-pcre/work/php-5.2.6/ext/pcre -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/usr/local/include/php/ext/date/lib -DHAVE_CONFIG_H -O2 -fno-strict-aliasing -pipe -c /usr/ports/devel/php5-pcre/work/php-5.2.6/ext/pcre/pcrelib/pcre_chartables.c -o pcrelib/pcre_chartables.lo
/usr/ports/devel/php5-pcre/work/php-5.2.6/ext/pcre/libtool: Can't open /usr/ports/devel/php5-pcre/work/php-5.2.6/ext/pcre/libtool: No such file or directory
*** Error code 2

Stop in /usr/ports/devel/php5-pcre/work/php-5.2.6/ext/pcre.
*** Error code 1

Stop in /usr/ports/devel/php5-pcre.


I have no idea why the 'make' is looking for libtool the pcre work directory. At this point I'm ready to give up. :(

KernelPanic
06-16-2008, 09:58 PM
I found out what was going crazy:

My /bin/cp binary had become corrupted. As a result, any copy with the target left unimplied (i.e. copy /usr/some/file.txt /usr/someplace/else/) was failing.

Everything builds correclt. Although now I have an apparently bigger issue to deal with on this box. :(

Carpetsmoker
06-16-2008, 10:03 PM
What a strange issue ... Are you sure it's just cp?

And what are the "bigger issues" you are referring to?

KernelPanic
06-16-2008, 11:00 PM
And what are the "bigger issues" you are referring to?

Finding out what dorked up cp. I just did a complete make world/kernel on this box five days ago and suddenly the cp binary on this one doesn't match up with the cp on three other nearly identical boxes.

As soon as I replaced the binary both php5-pcre and php5-mysql upgraded without a hitch.