Cannot load /usr/lib/apache2/modules/mod_deflate.so into server: /usr/lib/apache2/modules/mod_deflate.so: undefined symbol: deflate Reproducible: Always Steps to Reproduce: I just updated my sys-libs/db to the newest version and removed the old one sys-libs/db-4.2.52_p4-r2 (old one) sys-libs/db-4.3.29-r2 (new one) net-apache/apache-2.0.58-r2 revdep-rebuild told me that i need to rebuild couple of things, php ,apache (8 in total). etc-update told me to update httpd.conf , decided to stick with the old one. Actual Results: After rebuilding , starting apache complained about some modules being built in. I commented these modules in /etc/apache2/httpd.conf Then i got Cannot load /usr/lib/apache2/modules/mod_deflate.so into server: /usr/lib/apache2/modules/mod_deflate.so: undefined symbol: deflate Expected Results: apache should had just started i didnt had this problem before. this can be fixed by reemerging apache with 'LDFLAGS="-lz" emerge apache'
Portage 2.1.2.2 (hardened/x86/2.6, gcc-3.4.6, glibc-2.3.6-r5, 2.6.20-hardened-r2 i686) ================================================================= System uname: 2.6.20-hardened-r2 i686 Pentium II (Deschutes) Gentoo Base System release 1.12.9 Timestamp of tree: Thu, 12 Apr 2007 15:50:01 +0000 dev-lang/python: 2.4.3-r4 dev-python/pycrypto: 2.0.1-r5 sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.60 sys-devel/automake: 1.9.6-r2, 1.10 sys-devel/binutils: 2.16.1-r3 sys-devel/gcc-config: 1.3.15-r1 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.17-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=i686 -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/php/apache1-php5/ext-active/ /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo" CXXFLAGS="-O2 -march=i686 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="distlocks parallel-fetch sandbox severe sfperms strict userfetch userpriv usersandbox" GENTOO_MIRRORS="http://ftp.roedu.net/pub/mirrors/gentoo.org/ http://mirror.etf.bg.ac.yu/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="apache2 bash-completion berkdb crypt hardened ldap mailwrapper midi mysql nls pam php pic readline snmp ssl symlink tcpd truetype x86 xml xorg zlib" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="mouse keyboard" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
At least post your apache version; it works just fine here.
sys-libs/db-4.2.52_p4-r2 (old one) sys-libs/db-4.3.29-r2 (new one) net-apache/apache-2.0.58-r2 its all posted on the first post
reopened
Hmm, I have the same error with apache-2.0.58-r2 and up-to-date system. I have just installed Apache and tried to start it: sudo /etc/init.d/apache2 start * Service apache2 starting Apache2 has detected a syntax error in your configuration files: Syntax error on line 319 of /etc/apache2/httpd.conf: Cannot load /usr/lib/apache2/modules/mod_deflate.so into server: /usr/lib/apache2/modules/mod_deflate.so: undefined symbol: inflateEnd * ERROR: apache2 failed to start But you can see undefined symbol is not *inflate* but *inflateEnd*. I did not try to reemerge Apache with custom LDFLAGS.
Could both of you try =apache-2.2.4* ? It seems to work perfectly fine on my box running apache-2.2.
Yeah... I have upgraded apache to 2.2.4-r4 (installed app-admin/apache-tools and dev-libs/apr-util-1* as needed) and enabled mod_deflate again - all works fine without any errors.