Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 225703

Summary: www-servers/apache-2.2.8-r3 don`t compile with dev-db/mysql-4.1.22-r1
Product: Gentoo Linux Reporter: Lebedev Roman <lebedev.ri>
Component: [OLD] ServerAssignee: Apache Team - Bugzilla Reports <apache-bugs>
Status: RESOLVED INVALID    
Severity: critical    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Lebedev Roman 2008-06-10 06:59:14 UTC
Before I emerge MySQL5. But later, I became necessary to use MySQL3/4
I successfully emerge it.
But at try restart apache, it speaks: Apache2 has detected a syntax error in your configuration files:
	/usr/sbin/apache2: error while loading shared libraries: libmysqlclient_r.so.15: cannot open shared object file: No such file or directory
I have tried re-emerge apache, and it isn`t compile.

Reproducible: Always

Steps to Reproduce:
1. emerge --sync
2. echo ">dev-db/mysql-5" >>/etc/portage/package.mask
3. emerge mysql
3. emerge apache
Actual Results:  
/usr/bin/libtool --silent --mode=link i686-pc-linux-gnu-gcc -pthread  -O2 -march=i686 -pipe  -Wl,--no-as-needed -L/usr/lib -rdynamic -L/usr/lib/mysql -lmysqlclient_r -lz -lpthread -lcrypt -lnsl -lm -lssl -lcrypto  -Wl,--no-as-needed    -o mod_userdir.la -rpath /usr/lib/apache2/modules -module -avoid-version  mod_userdir.lo 
/usr/bin/libtool --silent --mode=link i686-pc-linux-gnu-gcc -pthread  -O2 -march=i686 -pipe  -Wl,--no-as-needed -L/usr/lib -rdynamic -L/usr/lib/mysql -lmysqlclient_r -lz -lpthread -lcrypt -lnsl -lm -lssl -lcrypto  -Wl,--no-as-needed    -o mod_alias.la -rpath /usr/lib/apache2/modules -module -avoid-version  mod_alias.lo 
/usr/bin/libtool --silent --mode=link i686-pc-linux-gnu-gcc -pthread  -O2 -march=i686 -pipe  -Wl,--no-as-needed -L/usr/lib -rdynamic -L/usr/lib/mysql -lmysqlclient_r -lz -lpthread -lcrypt -lnsl -lm -lssl -lcrypto  -Wl,--no-as-needed    -o mod_rewrite.la -rpath /usr/lib/apache2/modules -module -avoid-version  mod_rewrite.lo 
make[4]: Leaving directory `/var/tmp/portage/www-servers/apache-2.2.8-r3/work/httpd-2.2.8/modules/mappers'
make[3]: Leaving directory `/var/tmp/portage/www-servers/apache-2.2.8-r3/work/httpd-2.2.8/modules/mappers'
make[2]: Leaving directory `/var/tmp/portage/www-servers/apache-2.2.8-r3/work/httpd-2.2.8/modules'
make[2]: Entering directory `/var/tmp/portage/www-servers/apache-2.2.8-r3/work/httpd-2.2.8/support'
make[2]: Leaving directory `/var/tmp/portage/www-servers/apache-2.2.8-r3/work/httpd-2.2.8/support'

make[1]: Leaving directory `/var/tmp/portage/www-servers/apache-2.2.8-r3/work/httpd-2.2.8'
make: *** [all-recursive] Error 1
 * 
 * ERROR: www-servers/apache-2.2.8-r3 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 3495:  Called apache-2_src_compile
 *             environment, line  420:  Called die
 * The specific snippet of code:
 *       emake || die "emake failed"
 *  The die message:
 *   emake failed
 * 
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/www-servers/apache-2.2.8-r3/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/www-servers/apache-2.2.8-r3/temp/environment'.

Expected Results:  
Compiled & installed Apache2 with MySQL4

Portage 2.1.4.4 (default/linux/x86/2008.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.24-gentoo-r8 i686)
=================================================================
System uname: 2.6.24-gentoo-r8 i686 Intel(R) Pentium(R) 4 CPU 1.50GHz
Timestamp of tree: Tue, 10 Jun 2008 05:45:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p33
dev-lang/python:     2.4.4-r13
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.61-r1
sys-devel/automake:  1.5, 1.7.9-r1, 1.10.1
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /var/bind"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -march=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlock distlocks metadata-transfer sandbox sfperms strict strip unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="en_US.UTF-8"
LINGUAS="en"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_COMPRESS="bzip2"
PORTAGE_COMPRESS_FLAGS="-9"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync7.de.gentoo.org/gentoo-portage"
USE="7zip X509 acl acpi apache2 apic authfile bash-completion berkdb big-tables bts bzip2 calendar cgi clflush cli cmov compress contentcache courier cpio cracklib crypt ctype curl curlwrappers cx8 dbase dbm dbx de deflate disassembler dlz dts erandom exif fastcgi force-cgi-redirect fpu ftp fxsr gd gdbm geoip gif gmp graphviz hddtemp ht iconv imagemagick imap inifile innodb ipv6 ithreads john jpeg jpeg2k lapack libgcrypt libssh2 libwww lm_sensors logrotate loop-aes lzo maildir max-idx-128 mbox mca mce memcache mime mng msr mtrr mudflap mysql mysqli ncurses nls nptl nptlonly objc objc++ openssh openssl opensslcrypt pae pam pat pcre pebs perl pge php png posix pppd pse pse36 python rar raw readline reflection sasl sensord sep session simplexml slang snmp sockets spell spl ss ssl svg symlink sync_rdtsc syslog sysvipc tcpd tcpwrapper threads tidy tiff tm truetype tsc type1 unicode unzip up urandom userlocales uuencode vhosts vim-pager vim-syntax vme x86 xml xmlreader xmlrpc xmlwriter xpm xsl xslt zip zlib zvbi" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias asis auth_digest authn_dbd cern_meta charset_lite dbd dumpio ident imagemap log_forensic proxy proxy_ajp proxy_balancer proxy_connect proxy_ftp proxy_http version substitute" APACHE2_MPMS="worker" ELIBC="glibc" INPUT_DEVICES="keyboard" KERNEL="linux" LCD_DEVICES="text ncurses" LINGUAS="en" USERLAND="GNU"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Benedikt Böhm (RETIRED) gentoo-dev 2008-06-10 14:29:18 UTC
you need to remerge apr-util and apache after downgrading, or simply running revdep-rebuild should do it as well