LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 12-22-2008, 10:20 AM   #1
dizzi
Member
 
Registered: Jun 2004
Location: Yorkshire, UK
Distribution: Mint, Slackware
Posts: 146

Rep: Reputation: 15
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

Last edited by dizzi; 12-22-2008 at 12:35 PM.
 
Old 12-22-2008, 05:45 PM   #2
mRgOBLIN
Slackware Contributor
 
Registered: Jun 2002
Location: New Zealand
Distribution: Slackware
Posts: 999

Rep: Reputation: 231Reputation: 231Reputation: 231
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.
 
Old 12-22-2008, 06:30 PM   #3
dizzi
Member
 
Registered: Jun 2004
Location: Yorkshire, UK
Distribution: Mint, Slackware
Posts: 146

Original Poster
Rep: Reputation: 15
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
 
Old 12-23-2008, 07:41 AM   #4
dizzi
Member
 
Registered: Jun 2004
Location: Yorkshire, UK
Distribution: Mint, Slackware
Posts: 146

Original Poster
Rep: Reputation: 15
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.
 
Old 12-23-2008, 03:34 PM   #5
mRgOBLIN
Slackware Contributor
 
Registered: Jun 2002
Location: New Zealand
Distribution: Slackware
Posts: 999

Rep: Reputation: 231Reputation: 231Reputation: 231
Nice to see you got the problem solved
 
Old 12-23-2008, 05:24 PM   #6
dizzi
Member
 
Registered: Jun 2004
Location: Yorkshire, UK
Distribution: Mint, Slackware
Posts: 146

Original Poster
Rep: Reputation: 15
Cheers m8
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't build glibc 2.4 or 2.5 w/o errors... accp-james Linux From Scratch 4 05-03-2007 04:58 PM
Build errors with X.org 6.9 sw67 Linux - Software 0 01-03-2006 11:57 AM
rpm build errors iansoundz Linux - General 0 12-08-2005 03:29 AM
Superkaramba 0.34 build errors Kramer Linux - Software 6 09-11-2004 12:28 AM
Build Errors. sethgeekx86 Slackware 3 04-01-2004 06:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:16 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration