LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 05-22-2018, 04:29 PM   #1
xj25vm
Member
 
Registered: Jun 2008
Posts: 393

Rep: Reputation: 68
PHP (7.2.5) doesn't compile on -current


I have just updated a Slackware64 box this morning (22 May 2018) to -current, and because I need some extra modules, I attempted to re-compile PHP. I downloaded the scripts and sources from the Slackware -current repository, but when I try to compile I get the following error:

Code:
</snip>
checking if iconv supports //IGNORE... no
checking if your cpp allows macro usage in include lines... yes
checking for IMAP support... yes
checking for IMAP Kerberos support... no
checking for IMAP SSL support... /usr
checking for utf8_mime2text signature... new
checking for U8T_DECOMPOSE... no
configure: error: utf8_mime2text() has new signature, but U8T_CANONICAL is missing. This should not happen. Check config.log for additional information.
Has anybody else seen this? Some posts on the internet suggest this might have to do with imap and ssl support - but looking at the config.log file I can't really make sense of things so far. Any hints appreciated
 
Old 05-22-2018, 04:39 PM   #2
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,097

Rep: Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174
try removing the /usr/local/lib$LIBDIRSUFFIX/c-client directory: you probably had built (and automatically installed) it some time ago when the alpine.SlackBuild was run via the php.SlackBuild (to statically link the imap library) but it now needs to be rebuilt.

Last edited by ponce; 05-22-2018 at 04:45 PM.
 
1 members found this post helpful.
Old 05-22-2018, 04:59 PM   #3
xj25vm
Member
 
Registered: Jun 2008
Posts: 393

Original Poster
Rep: Reputation: 68
Thank you for taking the time to reply. I have removed the /usr/local/lib64/c-client dir (indeed, I have re-compiled php+alpine in the past on this box). However, I'm afraid exactly the same error message came back when I tried to recompile PHP.

I've checked the config.log, and I now wonder if that error message is misleading:

Code:
</snip>

configure:41317: checking for IMAP support
configure:41353: result: yes
configure:41362: checking for IMAP Kerberos support
configure:41377: result: no
configure:41386: checking for IMAP SSL support
configure:41401: result: /usr
conftest.c:373:10: fatal error: /mail.h: No such file or directory
 #include </mail.h>
          ^~~~~~~~~
compilation terminated.
configure:41759: checking for utf8_mime2text signature
configure:41781: cc -c -I  -D_REENTRANT conftest.c >&5
conftest.c:375:10: fatal error: c-client.h: No such file or directory
 #include <c-client.h>
          ^~~~~~~~~~~~
compilation terminated.
configure:41781: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME ""

</snip>
It kind of looks like the "mail.h: no such file or directory" error happens first.
 
Old 05-22-2018, 06:13 PM   #4
xj25vm
Member
 
Registered: Jun 2008
Posts: 393

Original Poster
Rep: Reputation: 68
Actually your suggestion was spot on. In the process of troubleshooting other compilation problems, I disabled both the imap references and the lines compiling Alpine in php.SlackBuild. Then I only re-enabled the imap config settings without realising. Once I uncommented the lines compiling Alpine in php.SlackBuild, it compiled all the way fine. Thank you for the suggestion!
 
  


Reply



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
Libvirt doesn't seem to compile correctly on slackware64-current akschu Slackware 5 03-02-2016 02:28 PM
request shipping php-fpm with php in -current repo cowyn Slackware 1 04-03-2011 05:29 PM
Núcleo doesn't compile (Núcleo now compiled, but Metisse doesn't compile) MTK358 Linux - Software 118 03-28-2010 07:28 AM
weird PHP compile issue- module shows in "php -m" but not in phpinfo call hbbtstar Linux - Software 1 08-28-2009 03:14 PM
Updating php 4.3.1 from tar and keeping current php configuration with mandrake 9.1 mrjeep Linux - General 0 04-02-2003 07:50 AM

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

All times are GMT -5. The time now is 03:10 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