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

Bug 45606

Summary: Apache 2.0.49 ebuild creates incorrect symlink
Product: Gentoo Linux Reporter: Steve <steve>
Component: New packagesAssignee: Gentoo Web Application Packages Maintainers <web-apps>
Status: RESOLVED DUPLICATE    
Severity: critical    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Steve 2004-03-24 08:24:08 UTC
After updating Apache from version 2.0.48-r1 to 2.0.49, I was unable to restart the server and received the following error message:

root # /etc/init.d/apache2 restart
* Apache2 has detected a syntax error in your configuration files:
Syntax error on line 24 of /etc/apache2/conf/apache2.conf:
Cannot load /etc/apache2/modules/mod_auth.so into server: /etc/apache2/modules/mod_auth.so: cannot open shared object file: No such file or directory

I did some looking and found that the new installation changed the location of Modules from /usr/lib/apache to /usr/lib/apache/modules, but the symlink form /etc/apache2 did not update.  After updating the symlink, the server started fine. 

Below is my listing of the pertinent directories both before and after the upgrade:

Before:
apache2 # ls -la /etc/apache2
total 11
drwxr-xr-x    3 root     root          216 Jan 15 12:08 .
drwxr-xr-x   47 root     root         3416 Mar 18 15:33 ..
-rw-r--r--    1 root     root         2213 Jan 15 12:08 apache2-builtin-mods
drwxr-xr-x    5 root     root          312 Feb  9 11:52 conf
lrwxrwxrwx    1 root     root           34 Jan 15 12:08 extramodules -> ../../usr/lib/apache2-extramodules
lrwxrwxrwx    1 root     root           13 Jan 15 12:08 lib -> ../../usr/lib
lrwxrwxrwx    1 root     root           21 Jan 15 12:08 logs -> ../../var/log/apache2
lrwxrwxrwx    1 root     root           21 Jan 15 12:08 modules -> ../../usr/lib/apache2

apache2 # ls -la /usr/lib/apache2
total 1190
drwxr-xr-x    3 root     root         1776 Jan 15 12:08 .
drwxr-xr-x   35 root     root        19368 Mar 18 15:33 ..
drwxr-xr-x    2 root     root          400 Jan 15 12:08 build
-rw-r--r--    1 root     root         8217 Jan 15 12:08 httpd.exp
-rwxr-xr-x    1 root     root         9767 Jan 15 12:08 mod_access.so
-rwxr-xr-x    1 root     root         8501 Jan 15 12:08 mod_actions.so
-rwxr-xr-x    1 root     root        12859 Jan 15 12:08 mod_alias.so
-rwxr-xr-x    1 root     root         7669 Jan 15 12:08 mod_asis.so
-rwxr-xr-x    1 root     root        10620 Jan 15 12:08 mod_auth.so
-rwxr-xr-x    1 root     root         7912 Jan 15 12:08 mod_auth_anon.so
-rwxr-xr-x    1 root     root        10049 Jan 15 12:08 mod_auth_dbm.so
-rwxr-xr-x    1 root     root        36199 Jan 15 12:08 mod_auth_digest.so
-rwxr-xr-x    1 root     root        35988 Jan 15 12:08 mod_autoindex.so
-rwxr-xr-x    1 root     root        32476 Jan 15 12:08 mod_cache.so
-rwxr-xr-x    1 root     root         7325 Jan 15 12:08 mod_case_filter.so
-rwxr-xr-x    1 root     root         7865 Jan 15 12:08 mod_case_filter_in.so
-rwxr-xr-x    1 root     root         9521 Jan 15 12:08 mod_cern_meta.so
-rwxr-xr-x    1 root     root        26092 Jan 15 12:08 mod_cgi.so
-rwxr-xr-x    1 root     root        38626 Jan 15 12:08 mod_cgid.so
-rwxr-xr-x    1 root     root        17058 Jan 15 12:08 mod_charset_lite.so
-rwxr-xr-x    1 root     root       156411 Jan 15 12:08 mod_dav.so
-rwxr-xr-x    1 root     root        53897 Jan 15 12:08 mod_dav_fs.so
-rwxr-xr-x    1 root     root        16589 Jan 15 12:08 mod_deflate.so
-rwxr-xr-x    1 root     root         7937 Jan 15 12:08 mod_dir.so
-rwxr-xr-x    1 root     root        18334 Jan 15 12:08 mod_disk_cache.so
-rwxr-xr-x    1 root     root         6370 Jan 15 12:08 mod_echo.so
-rwxr-xr-x    1 root     root         7928 Jan 15 12:08 mod_env.so
-rwxr-xr-x    1 root     root        11888 Jan 15 12:08 mod_expires.so
-rwxr-xr-x    1 root     root        19377 Jan 15 12:08 mod_ext_filter.so
-rwxr-xr-x    1 root     root        11810 Jan 15 12:08 mod_file_cache.so
-rwxr-xr-x    1 root     root        13935 Jan 15 12:08 mod_headers.so
-rwxr-xr-x    1 root     root        15644 Jan 15 12:08 mod_imap.so
-rwxr-xr-x    1 root     root        42311 Jan 15 12:08 mod_include.so
-rwxr-xr-x    1 root     root        16446 Jan 15 12:08 mod_info.so
-rwxr-xr-x    1 root     root        25642 Jan 15 12:08 mod_log_config.so
-rwxr-xr-x    1 root     root         8156 Jan 15 12:08 mod_logio.so
-rwxr-xr-x    1 root     root        27729 Jan 15 12:08 mod_mem_cache.so
-rwxr-xr-x    1 root     root        17418 Jan 15 12:08 mod_mime.so
-rwxr-xr-x    1 root     root        28077 Jan 15 12:08 mod_mime_magic.so
-rwxr-xr-x    1 root     root        33894 Jan 15 12:08 mod_negotiation.so
-rwxr-xr-x    1 root     root        43337 Jan 15 12:08 mod_proxy.so
-rwxr-xr-x    1 root     root        10664 Jan 15 12:08 mod_proxy_connect.so
-rwxr-xr-x    1 root     root        37849 Jan 15 12:08 mod_proxy_ftp.so
-rwxr-xr-x    1 root     root        23998 Jan 15 12:08 mod_proxy_http.so
-rwxr-xr-x    1 root     root        64254 Jan 15 12:08 mod_rewrite.so
-rwxr-xr-x    1 root     root        11705 Jan 15 12:08 mod_setenvif.so
-rwxr-xr-x    1 root     root        12630 Jan 15 12:08 mod_speling.so
-rwxr-xr-x    1 root     root        22415 Jan 15 12:08 mod_status.so
-rwxr-xr-x    1 root     root         7923 Jan 15 12:08 mod_suexec.so
-rwxr-xr-x    1 root     root        11018 Jan 15 12:08 mod_unique_id.so
-rwxr-xr-x    1 root     root         9076 Jan 15 12:08 mod_userdir.so
-rwxr-xr-x    1 root     root        11476 Jan 15 12:08 mod_usertrack.so
-rwxr-xr-x    1 root     root        10253 Jan 15 12:08 mod_vhost_alias.so



After:
apache2 # ls -la /etc/apache2/
total 11
drwxr-xr-x    3 root     root          216 Mar 24 09:25 .
drwxr-xr-x   47 root     root         3416 Mar 24 09:19 ..
-rw-r--r--    1 root     root         2211 Mar 24 09:19 apache2-builtin-mods
drwxr-xr-x    5 root     root          312 Mar 24 09:25 conf
lrwxrwxrwx    1 root     root           34 Jan 15 12:08 extramodules -> ../../usr/lib/apache2-extramodules
lrwxrwxrwx    1 root     root           13 Jan 15 12:08 lib -> ../../usr/lib
lrwxrwxrwx    1 root     root           21 Jan 15 12:08 logs -> ../../var/log/apache2
lrwxrwxrwx    1 root     root           21 Jan 15 12:08 modules -> ../../usr/lib/apache2


apache2 # ls -la /usr/lib/apache2
total 24
drwxr-xr-x    4 root     root          200 Mar 24 09:19 .
drwxr-xr-x   34 root     root        19344 Mar 24 09:19 ..
drwxr-xr-x    2 root     root          400 Mar 24 09:19 build
lrwxrwxrwx    1 root     root           17 Mar 24 09:19 conf -> /etc/apache2/conf
lrwxrwxrwx    1 root     root           29 Mar 24 09:19 extramodules -> /usr/lib/apache2-extramodules
lrwxrwxrwx    1 root     root            8 Mar 24 09:19 lib -> /usr/lib
lrwxrwxrwx    1 root     root           16 Mar 24 09:19 logs -> /var/log/apache2
drwxr-xr-x    2 root     root         1752 Mar 24 09:19 modules


Reproducible: Always
Steps to Reproduce:
1. Emerge Apache-2.0.49
2.
3.

Actual Results:  
The directory structure of /usr/lib/apache changed, moving all loadable modules 
into a modules subdirectory.  The corresponding symlink in /etc/apache (modules) 
did not update to point to the new modules directory in /usr/lib/apache.

Expected Results:  
The ebuild should have deleted the old symlink and created a new one in 
/etc/apache2 that pointed to /usr/lib/apache/modules rather than 
/usr/lib/apache.

Portage 2.0.50-r1 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.4.22-gentoo-r5)
=================================================================
System uname: 2.4.22-gentoo-r5 i686 Intel(R) Pentium(R) 4 CPU 2.53GHz
Gentoo Base System version 1.4.3.13
distcc 2.12.1 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) 
[disabled]
Autoconf: sys-devel/autoconf-2.58-r1
Automake: sys-devel/automake-1.7.7
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -mcpu=i686 -funroll-loops -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config 
/usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -mcpu=i686 -funroll-loops -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://mirror.tucdemonic.org/gentoo/ ftp://mirror.iawnet.sandia.
gov/pub/gentoo/ http://gentoo.ccccom.com http://cudlug.cudenver.edu/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X509 apache2 berkdb cdr crypt curl freetype freetype-version-1 gd 
gd-external gdbm gif gtk2 imagemagick imap imlib innodb java jpeg libg++ libwww 
maildir md5sum mysql ncurses nls openssh pam pcap perl php png python readline 
regexp samba slang snmp spell ssl svga tcpd truetype unicode x86 xml xml2 zlib"
Comment 1 Martin Holzer (RETIRED) gentoo-dev 2004-03-24 08:40:00 UTC
did you etc-update your files ?
Comment 2 Steve 2004-03-24 08:55:10 UTC
Yes, I ran etc-update on the files, merging new changes to my existing files for apache2.conf and vhosts.conf, and replacing all others (/etc/conf.d/apache2, /etc/init.d/apache2, /etc/apache2/conf/commonapache2.conf).  I did this on both servers that I updated.
Comment 3 Stuart Herbert (RETIRED) gentoo-dev 2004-03-24 12:44:20 UTC

*** This bug has been marked as a duplicate of 45621 ***