LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   PHP 5.2.8 re-build errors on Slack 12.2 (https://www.linuxquestions.org/questions/slackware-14/php-5-2-8-re-build-errors-on-slack-12-2-a-692250/)

dizzi 12-22-2008 10:20 AM

PHP 5.2.8 re-build errors on Slack 12.2
 
Hi

I am attempting to rebuild PHP to enable mcrypt support but the compilation process terminates prematurely with the following errors:

Code:

...
checking for utf8_mime2text signature... new
checking for U8T_CANONICAL... no
configure: error: utf8_mime2text() has new signature, but U8T_CANONICAL is missing. This should not happen. Check config.log for additional information.
make: *** No targets specified and no makefile found.  Stop.

I used the PHP sources from the Slack 12.2 DVD and build and installed libmcrypt and mcrypt without problems. The build environment is a full Slackware 12.2 installation and the only addtitions are the ati driver, flash player 10 and the two mcrypt packages above.

Does anyone know why this error is occurring and what can be done to correct it so the build can progress successfully to the end?

Edit: One alteration was made to the php.SlackBuild. I included "--with-mcrypt=shared,/usr/bin \" before
"--build=$ARCH-slackware-linux"

Any help will be thoroughly appreciated.

Regards

mRgOBLIN 12-22-2008 05:45 PM

Looks like an IMAP error.

If you look at the php.Slackbuild it uses some client libraries from the alpine build.

Code:

# we need to compile alpine to get c-client.a for IMAP support:
IMAPLIBDIR=/usr/local/lib/c-client
if [ -r $IMAPLIBDIR/lib/c-client.a ]; then
  echo "Using IMAP library:"
  ls -l $IMAPLIBDIR/lib/c-client.a
  sleep 5
else
  ( cd $CWD/../alpine ; ./alpine.SlackBuild )
  ( cd $TMP/alpine-${ALPINE}/imap/c-client
    strip -g c-client.a
    mkdir -p $IMAPLIBDIR/lib
    cp c-client.a $IMAPLIBDIR/lib
    mkdir -p $IMAPLIBDIR/include
    cp *.h $IMAPLIBDIR/include
  )
fi

So if you don't have c-client.a available you will need the alpine source there to build php.

dizzi 12-22-2008 06:30 PM

Thanks for responding mRgOBLIN. It did notice this in the SlackBuild and I copied the alpine source directory from the Slack 12.2 DVD and included it in the build location. The error still persisted though. I had a look at the /usr/local/lib/c-client directory before and after the attempted build but all it contained were empty "include" and "lib" sub-directories. Something is not quite right somewhere but I can't quite pinpoint it.

I will welcome any assistance.

Regards

dizzi 12-23-2008 07:41 AM

Right, I think I solved the problem. It turns out that the "alpine" source directory had to be placed at the root of "/tmp" whereas initially, it was included in the build location which was "/tmp/build". After the correction, PHP was compiled without any issues and sure enough, a new extension "mcrypt.so" was created in "/tmp/package-php/usr/lib/php/extensions". Re-installation of PHP using the newly built package and the inclusion of the following line "extension=mcrypt.so" in the list of "Dynamic Extensions" in "php.ini", got rid of the "Cannot load mcrypt extension. Please check your PHP configuration" error in phpMyAdmin.

mRgOBLIN 12-23-2008 03:34 PM

Nice to see you got the problem solved :)

dizzi 12-23-2008 05:24 PM

Cheers m8 :)


All times are GMT -5. The time now is 04:25 PM.