Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 34992 - error when trying to load emerged mod_scgi module in apache2
Summary: error when trying to load emerged mod_scgi module in apache2
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Web Application Packages Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-12-03 11:24 UTC by charles brandt
Modified: 2003-12-03 15:51 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 charles brandt 2003-12-03 11:24:19 UTC
After successfully emerging mod_scgi using the following command:
 USE=apache2 emerge /usr/portage/net-www/mod_scgi/mod_scgi-1.2_alpha1-r1.ebuild 
I added '-D SCGI' to APACHE2_OPTS in /etc/conf.d/apache2.  Upon restarting
apache2 I get the error:
Syntax error on line 3 of /etc/apache2/conf/modules.d/20_mod_scgi.conf:
Can't locate API module structure `mod_scgi' in file
/etc/apache2/extramodules/mod_scgi.so: /usr/lib/libapr-0.so.0: undefined symbol:
mod_scgi

Reproducible: Always
Steps to Reproduce:
1.  USE=apache2 emerge /usr/portage/net-www/mod_scgi/mod_scgi-1.2_alpha1-r1.ebuild
2.  vi /etc/conf.d/apache2 (add APACHE2_OPTS="-D SCGI")
3.  /etc/init.d/apache2 restart

Actual Results:  
 * Stopping apache2...                                                    [ ok ]
 * Starting apache2...
Syntax error on line 3 of /etc/apache2/conf/modules.d/20_mod_scgi.conf:
Can't locate API module structure `mod_scgi' in file
/etc/apache2/extramodules/mod_scgi.so: /usr/lib/libapr-0.so.0: undefined symbol:
mod_scgi            [ !! ]



Expected Results:  
 * Starting apache2...                                                    [ ok ]

*******************************
emerge info output:
*******************************

system1 root # emerge info
Portage 2.0.49-r15 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1, 2.4.20-gentoo-r7)
=================================================================
System uname: 2.4.20-gentoo-r7 i686 AMD Athlon(tm) XP 2600+
Gentoo Base System version 1.4.3.8p1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -mcpu=i686 -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config
/usr/kde/2/share/config /usr/kde/3/share/config /var/bind /usr/X11R6/lib/X11/xkb"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-O2 -mcpu=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="sandbox ccache autoaddcvs"
GENTOO_MIRRORS="http://gentoo.oregonstate.edu
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 oss apm arts avi crypt cups encode foomaticdb gif gpm jpeg kde gnome
libg++ mad mikmod motif mpeg ncurses nls oggvorbis pdflib png quicktime sdl
slang spell svga truetype xml2 xmms xv zlib gdbm berkdb readline tcltk X tcpd
pam perl python esd imlib gtk qt opengl mysql imap libwww maildir sasl ssl"



*******************************
emerge output:
*******************************

system1 root # USE=apache2 emerge
/usr/portage/net-www/mod_scgi/mod_scgi-1.2_alpha1-r1.ebuild 
Calculating dependencies ...done!
>>> emerge (1 of 1) net-www/mod_scgi-1.2_alpha1-r1 to /
>>> md5 src_uri ;-) scgi-1.2a1.tar.gz
>>> Unpacking source...
>>> Unpacking scgi-1.2a1.tar.gz to /var/tmp/portage/mod_scgi-1.2_alpha1-r1/work
>>> Source unpacked.
 * Apache2 only detected
apxs2 -c mod_scgi.c
/usr/lib/apache2/build/libtool --silent --mode=compile gcc -prefer-pic -O2
-mcpu=i686 -pipe -DAP_HAVE_DESIGNATED_INITIALIZER -DLINUX=2 -D_REENTRANT
-D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE -pthread
-I/usr/include/apache2  -I/usr/include/apache2   -I/usr/include/apache2   -c -o
mod_scgi.lo mod_scgi.c && touch mod_scgi.slo
/usr/lib/apache2/build/libtool --silent --mode=link gcc -o mod_scgi.la  -rpath
/usr/lib/apache2 -module -avoid-version    mod_scgi.lo

>>> Install mod_scgi-1.2_alpha1-r1 into
/var/tmp/portage/mod_scgi-1.2_alpha1-r1/image/ category net-www
man:
prepallstrip:
strip: 
strip: 
   usr/lib/apache2-extramodules/mod_scgi.so
>>> Completed installing into /var/tmp/portage/mod_scgi-1.2_alpha1-r1/image/

>>> Merging net-www/mod_scgi-1.2_alpha1-r1 to /
--- /etc/
--- /etc/apache2/
--- /etc/apache2/conf/
--- /etc/apache2/conf/modules.d/
>>> /etc/apache2/conf/modules.d/20_mod_scgi.conf
--- /usr/
--- /usr/lib/
--- /usr/lib/apache2-extramodules/
>>> /usr/lib/apache2-extramodules/mod_scgi.so
--- /usr/share/
--- /usr/share/doc/
--- /usr/share/doc/mod_scgi-1.2_alpha1-r1/
>>> /usr/share/doc/mod_scgi-1.2_alpha1-r1/README.gz
>>> /usr/share/doc/mod_scgi-1.2_alpha1-r1/README.apache1.gz
>>> /usr/share/doc/mod_scgi-1.2_alpha1-r1/README.apache2.gz
>>> /usr/share/doc/mod_scgi-1.2_alpha1-r1/LICENSE.txt.gz
>>> /usr/share/doc/mod_scgi-1.2_alpha1-r1/PKG-INFO.gz
>>> /usr/share/doc/mod_scgi-1.2_alpha1-r1/CHANGES.gz

>>> Safely unmerging already-installed instance...
Lockfile removed:
/var/db/pkg/net-www/mod_scgi-1.2_alpha1-r1.portage_lockfileLockfile removed:
/var/db/pkg/net-www/mod_scgi-1.2_alpha1-r1.portage_lockfileLockfile removed:
/var/db/pkg/net-www/mod_scgi-1.2_alpha1-r1.portage_lockfileLockfile removed:
/var/db/pkg/net-www/mod_scgi-1.2_alpha1-r1.portage_lockfile--- !mtime obj
/usr/share/doc/mod_scgi-1.2_alpha1-r1/README.gz
--- !mtime obj /usr/share/doc/mod_scgi-1.2_alpha1-r1/README.apache2.gz
--- !mtime obj /usr/share/doc/mod_scgi-1.2_alpha1-r1/README.apache1.gz
--- !mtime obj /usr/share/doc/mod_scgi-1.2_alpha1-r1/PKG-INFO.gz
--- !mtime obj /usr/share/doc/mod_scgi-1.2_alpha1-r1/LICENSE.txt.gz
--- !mtime obj /usr/share/doc/mod_scgi-1.2_alpha1-r1/CHANGES.gz
--- !mtime obj /usr/lib/apache2-extramodules/mod_scgi.so
--- cfgpro obj /etc/apache2/conf/modules.d/20_mod_scgi.conf
--- cfgpro dir /etc/apache2/conf/modules.d
--- cfgpro dir /etc/apache2/conf
--- cfgpro dir /etc/apache2
--- !empty dir /usr/share/doc/mod_scgi-1.2_alpha1-r1
--- !empty dir /usr/share/doc
--- !empty dir /usr/share
--- !empty dir /usr/lib/apache2-extramodules
--- !empty dir /usr/lib
--- !empty dir /usr
--- !empty dir /etc
Lockfile removed:
/var/db/pkg/net-www/mod_scgi-1.2_alpha1-r1.portage_lockfileLockfile removed:
/var/db/pkg/net-www/mod_scgi-1.2_alpha1-r1.portage_lockfileLockfile removed:
/var/db/pkg/net-www/mod_scgi-1.2_alpha1-r1.portage_lockfileLockfile removed:
/var/db/pkg/net-www/mod_scgi-1.2_alpha1-r1.portage_lockfile>>> original instance
of package unmerged safely.
 * Add '-D SCGI' to your APACHE2_OPTS in /etc/conf.d/apache2
>>> Regenerating /etc/ld.so.cache...
 * Caching service dependencies...                                        [ ok ]
>>> net-www/mod_scgi-1.2_alpha1-r1 merged.

>>> clean: No packages selected for removal.

>>> Regenerating /etc/ld.so.cache...
 * Caching service dependencies...                                        [ ok ]
>>> Auto-cleaning packages ...

>>> No outdated packages were found on your system.


 * GNU info directory index is up-to-date.
Comment 1 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2003-12-03 15:51:41 UTC
fixed in -r2 in cvs now.