Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 38431 - Cannot build mod_php without MySQL
Summary: Cannot build mod_php without MySQL
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: High normal
Assignee: PHP Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-01-16 11:20 UTC by Juha-Mikko Ahonen
Modified: 2004-01-16 12:19 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 Juha-Mikko Ahonen 2004-01-16 11:20:37 UTC
Compilation of mod_php fails if MySQL is not installed and not in the USE flags. The error message is "can not run test program while cross compiling".

If I install MySQL, mod_php compiles without an error.

The mod_php version I'm trying to emerge without MySQL is 4.3.4-r2

Reproducible: Always
Steps to Reproduce:
1. emerge -C mysql mod_php
2. USE="-mysql" emerge mod_php


Actual Results:  
Compile failed with "can not run test program while cross compiling"

Expected Results:  
mod_php should have compiled without support for MySQL.

Portage 2.0.49-r21 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r3, 2.4.23)
=================================================================
System uname: 2.4.23 i686 AMD Athlon(tm) Processor
Gentoo Base System version 1.4.3.10
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=i686 -Os -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3/share/config /usr/share/config /usr/share/texmf/tex/generic/config/
/usr/share/texmf/tex/platex/config/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-march=i686 -Os -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="ftp://trumpetti.atm.tut.fi/gentoo/ http://gentoo.linux.no/
ftp://gentoo.linux.no/pub/gentoo/ ftp://mirror.pudas.net/gentoo
http://mirror.pudas.net/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X apm avi berkdb bonobo crypt cups encode esd foomaticdb gdbm gif gnome gpm
gtk gtk2 imlib java jpeg ldap libg++ libwww mad mikmod motif mozilla mpeg
ncurses nls oggvorbis opengl oss pam pdflib perl png postgres python quicktime
readline sdl slang spell ssl svga tcpd tetex truetype x86 xfce xml2 xmms xv zlib"
Comment 1 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2004-01-16 12:19:12 UTC
something you have is linked against mysql. so it needs to be rebuild if mysql was removed on purpose.
use revdep-rebuild