Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 70508 - mod_php will not compile with use=IMAP yet courier-imap is installed
Summary: mod_php will not compile with use=IMAP yet courier-imap is installed
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: PHP Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-08 14:34 UTC by Alistair McDonald
Modified: 2004-11-09 02:02 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alistair McDonald 2004-11-08 14:34:54 UTC
I've had USE=imap for a long time. I was updating my system, and mod_php would not compile. It complained about not being able to open rfc882.h.
Surely stuff should not suddenly break like this - I have had both mod_php and courier-imap installed for years (literally)

work-around: USE="-imap" emerge mod_php

Reproducible: Always
Steps to Reproduce:
(Not sure this will reproduce it; I'm not breaking my web server again tonight testing it)
1. USE=imap in /etc/make.conf
2. emerge courier-imap
3. emerge apache (1.3.x in my case)
4. emerge mod_php
5. search gentoo forums; search gentoo bugs; post new bug
Actual Results:  
mod_php fails to build; not finding rfc882.h:
From the build:
configure: error: Cannot find rfc822.h. Please check your IMAP installation.

!!! ERROR: dev-php/mod_php-4.3.9 failed.
!!! Function econf, Line 449, Exitcode 1



Expected Results:  
mod_php shou ld compile, apache will run, and jpegs of my ebay auction items will be delivered to 
interested punters throughout the world (though more likely the UK)

$ emerge info
Portage 2.0.51-r3 (default-linux/x86/2004.0, gcc-3.3.4, glibc-2.3.4.20040808-r1,2.6.6 i686)
=================================================================
System uname: 2.6.6 i686 AMD Duron(tm) Processor
Gentoo Base System version 1.4.16
Autoconf: sys-devel/autoconf-2.59-r5
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.14.90.0.8-r1
Headers:  sys-kernel/linux-headers-2.4.21-r1
Libtools: sys-devel/libtool-1.5.2-r5
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -mcpu=i686 -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config 
/usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/share/
config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/
config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -mcpu=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache distlocks sandbox sfperms"
GENTOO_MIRRORS=" http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X avi berkdb bitmap-fonts bonobo cdr crypt cups doc dvd encode esd f77 fam flac 
foomaticdb fortran gdbm gif gnome gpm gtk gtk2 gtkhtml guile imagemagick imap imlib java jikes jpeg 
kde kerberos ldap libg++ libwww mad maildir mikmod motif mpeg mysql ncurses nls oggvorbis 
opengl oss pam pdflib perl png python qt quicktime readline samba sdl slang speex spell ssl svga 
tcltk tcpd tetex tiff truetype x86 xml xml2 xmms xv zlib"
Comment 1 Tuan Van (RETIRED) gentoo-dev 2004-11-08 15:30:17 UTC
err, courier-imap doesn't provide rfc882.h, net-libs/c-client does and mod_php depends on c-lient if USE=imap.


# ACCEPT_KEYWORDS="-* x86" USE=imap emerge -p mod_php

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild  N    ] net-libs/c-client-2002e-r2
[ebuild  N    ] app-crypt/mhash-0.9.1
[ebuild  N    ] app-text/sablotron-1.0
[ebuild  N    ] dev-libs/libmcrypt-2.5.7
[ebuild  N    ] net-www/apache-2.0.52-r1
[ebuild  N    ] net-libs/libwww-5.4.0-r2
[ebuild  N    ] dev-php/mod_php-4.3.9
[ebuild  N    ] dev-php/php-4.3.9

# ACCEPT_KEYWORDS="-* x86" USE=-imap emerge -p mod_php

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild  N    ] app-crypt/mhash-0.9.1
[ebuild  N    ] app-text/sablotron-1.0
[ebuild  N    ] dev-libs/libmcrypt-2.5.7
[ebuild  N    ] net-www/apache-2.0.52-r1
[ebuild  N    ] net-libs/libwww-5.4.0-r2
[ebuild  N    ] dev-php/mod_php-4.3.9
[ebuild  N    ] dev-php/php-4.3.9
Comment 2 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2004-11-08 19:26:56 UTC
from your mod_php emerge, please attach the config.log file.
Comment 3 Alistair McDonald 2004-11-09 02:02:06 UTC
Hi. I re-emerged c-client, using the (admittedly large) USE= as specified above, but this did not create an rfc882.h on my system. 

However, I then re-emerged mod_php (to create the config.log as requested) and mod_php has now compiled sucessfully.

Thanks for taking this seriously, sorry to have troubled you, and glad it's not a problem (or so it seems).