easyapache compile problems (php)

Marty

Well-Known Member
Oct 10, 2001
630
1
318
I am having problems compiling php whether with easyapache or manually. I get failures for imap and for sablot. I am hoping that somebody here can give me a fix before I have to submit a ticket to cpanel to fix this.

This is a RH 7.3 box.

Here is the error that shows in the config.log file for imap:

configure:40034: checking whether IMAP works
configure:40067: gcc -o conftest -g -O2 -Wl,-rpath,/usr/X11R6/lib -L/usr/X11R6/lib -Wl,-rpath,/usr/kerberos/lib -L/usr/kerb$
/usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../libc-client.a(osdep.o): In function `ssl_onceonlyinit':
/usr/src/build/90147-i386/BUILD/imap-2001a/c-client/osdep.c:286: the use of `tmpnam' is dangerous, better use `mkstemp'
configure: failed program was:
#line 40042 "configure"
#include "confdefs.h"

Here is the error that I get for Sablot:

checking whether to enable xslt support... yes
checking for XSLT Sablotron backend... yes
checking for libexpat dir for Sablotron XSL support... no
checking for iconv dir for Sablotron XSL support... no
checking for JavaScript for Sablotron XSL support... no
checking for Sablotron libraries in the default path... found in /usr
checking for sablot-config... found
checking for Sablotron version... configure: error: Sablotron version 0.96 or greater required.


configure:81194: checking for XSLT Sablotron backend
configure:81219: checking for libexpat dir for Sablotron XSL support
configure:81244: checking for iconv dir for Sablotron XSL support
configure:81269: checking for JavaScript for Sablotron XSL support
configure:81523: checking for Sablotron libraries in the default path
configure:81539: checking for sablot-config
configure:81557: checking for Sablotron version
configure:81582: gcc -o conftest -g -O2 -I/usr/include -Wl,-rpath,/usr/X11R6/lib -L/usr/X11R6/lib -Wl,-rpath,/usr/local/fla$
configure: failed program was:
#line 81564 "configure"
#include "confdefs.h"

#include <stdlib.h>
#include <sablot.h>

int main ()
{
double version;
version = atof(SAB_VERSION);

if (version >= 0.96) {
exit(0);
}
exit(255);
}


Any suggestions?
 

Marty

Well-Known Member
Oct 10, 2001
630
1
318
mmm, nobody else is seeing this?
 

lorio

Well-Known Member
Feb 25, 2004
309
17
168
cPanel Access Level
Root Administrator
The IMAP problem is back when trying a build with PHP 5.0.2.

The logfiles won't offering a clear hint which part needs to be fixed.

WHM 9.9.7 cPanel 9.9.8-S6
RedHat 9 i686 - WHM X v3.1.0

Since IMAP is needed by Horde it must be a problem you recognize very fast ;-)

Any solution in reach? After searching for two days the web and this forum I need a hint to search with a different keyword set.

Thanks!
 

lorio

Well-Known Member
Feb 25, 2004
309
17
168
cPanel Access Level
Root Administrator
1.) /scripts/makecpphp breaks.
Even though it uses PHP 4.3.9 in the building process it breaks after checking for imap

checking whether SSL libraries are needed for c-client... /usr/lib
checking whether IMAP works... no
configure: error: build test failed. Please check the config.log for details.
make: *** No targets specified and no makefile found. Stop.
make: *** No rule to make target `install'. Stop.
PHP version file is up to date
2.) I try easyapache every day with every released version except bleeding edge.
IMOP the c-client library and/or a different gcc version would help to prevent the problem.

I updated the RPMs where possible. But I am not deep enough into the stuff. But I still cannot believe I am the only one PHP 5 and IMAP not able to run on a Redhat 9 VPS (Virtuozzo).
 

lorio

Well-Known Member
Feb 25, 2004
309
17
168
cPanel Access Level
Root Administrator
The files are available. I think a gcc downgrade will be helpful. But that might break different parts of cpanel. So the developers will be in charge.

Everybody can contribute to the bugtracker
http://bugzilla.cpanel.net/show_bug.cgi?id=1633

Thanks!
 

lorio

Well-Known Member
Feb 25, 2004
309
17
168
cPanel Access Level
Root Administrator
Weeks have passed.

Nobody voted for bug. It really looks that everybody can build a apache with php 5.02 and imap under RedHat. A confirmation would be fine.
 

bamasbest

Well-Known Member
Jan 10, 2004
531
0
166
Hmm....

php 5.x.x is still listed as "Testing"

Compiling 4.3.9 with IMAP on my Fedora boxes works like a charm (at least for me)!