Received: (qmail 67114 invoked by uid 501); 7 Nov 2000 14:18:30 -0000 Message-Id: <20001107141830.67111.qmail@locus.apache.org> Date: 7 Nov 2000 14:18:30 -0000 From: Zachary Burnham Reply-To: zacharyb@mediaone.net To: submit@bugz.apache.org Subject: Directions provided for compiling with DSO support do not seem to work X-Send-Pr-Version: 3.110 >Number: 6809 >Category: mod_so >Synopsis: Directions provided for compiling with DSO support do not seem to work >Confidential: no >Severity: non-critical >Priority: medium >Responsible: apache >State: analyzed >Quarter: >Keywords: >Date-Required: >Class: doc-bug >Submitter-Id: apache >Arrival-Date: Tue Nov 07 06:20:03 PST 2000 >Closed-Date: >Last-Modified: Sat Nov 11 10:28:37 PST 2000 >Originator: zacharyb@mediaone.net >Release: 1.3.14 >Organization: >Environment: RedHat Linux 6.2/i386, standard gcc compiler provided. [root@linuxbackup src]# uname -a Linux linuxbackup 2.2.14-5.0 #1 Tue Mar 7 21:07:39 EST 2000 i686 unknown >Description: I can provide these transcripts of my attempts: [root@linuxbackup apache_1.3.14]# ls ABOUT_APACHE INSTALL LICENSE README README.configure cgi-bin config.layout htdocs logs Announcement KEYS Makefile.tmpl README-WIN.TXT WARNING-WIN.TXT conf configure icons src [root@linuxbackup apache_1.3.14]# mkdir /usr/local/apache [root@linuxbackup apache_1.3.14]# ./configure --prefix=/usr/local/apache --enable-rule=SHARED_CORE --with-layout=RedHat Configuring for Apache, Version 1.3.14 + using installation path layout: RedHat (config.layout) Creating Makefile Creating Configuration.apaci in src Creating Makefile in src + configured for Linux platform + setting C compiler to gcc + setting C pre-processor to gcc -E + checking for system header files + adding selected modules + enabling generation of Apache core as DSO + using -ldl for vendor DSO support + checking sizeof various data types + doing sanity check on compiler and options Creating Makefile in src/support Creating Makefile in src/regex Creating Makefile in src/os/unix Creating Makefile in src/ap Creating Makefile in src/main Creating Makefile in src/lib/expat-lite Creating Makefile in src/modules/standard [root@linuxbackup apache_1.3.14]# make [root@linuxbackup apache_1.3.14]# cd src [root@linuxbackup src]# ls Apache.dsp ApacheCoreOS2.def Configuration.tmpl Makefile.tmpl buildmark.c libhttpd.ep modules.o Apache.dsw ApacheNW.mcp.gz Configure PORTING buildmark.o libhttpd.so os Apache.mak BUILD.NOTES INSTALL README helpers main regex ApacheCore.def CHANGES InstallBin.dsp README.EBCDIC httpd makefile.win support ApacheCore.dsp Configuration Makefile ap include modules ApacheCore.mak Configuration.apaci Makefile.config apaci lib modules.c [root@linuxbackup src]# [root@linuxbackup src]# /usr/local/apache/bin/httpd -l Compiled-in modules: http_core.c mod_env.c mod_log_config.c mod_mime.c mod_negotiation.c mod_status.c mod_include.c mod_autoindex.c mod_dir.c mod_cgi.c mod_asis.c mod_imap.c mod_actions.c mod_userdir.c mod_alias.c mod_access.c mod_auth.c mod_setenvif.c suexec: disabled; invalid wrapper /usr/local/apache/sbin/suexec [root@linuxbackup src]# (Cleanded up, rm'd apache directory, gunzipped from tarball fresh source) [root@linuxbackup apache_1.3.14]# ./configure --prefix=/usr/local/apache --enable-rule=SHARED_CORE --enable-module=so --with-layout=RedHat Configuring for Apache, Version 1.3.14 + using installation path layout: RedHat (config.layout) Creating Makefile Creating Configuration.apaci in src Creating Makefile in src + configured for Linux platform + setting C compiler to gcc + setting C pre-processor to gcc -E + checking for system header files + adding selected modules + enabling generation of Apache core as DSO + using -ldl for vendor DSO support + checking sizeof various data types + doing sanity check on compiler and options Creating Makefile in src/support Creating Makefile in src/regex Creating Makefile in src/os/unix Creating Makefile in src/ap Creating Makefile in src/main Creating Makefile in src/lib/expat-lite Creating Makefile in src/modules/standard [root@linuxbackup apache_1.3.14]# make install ... [root@linuxbackup apache_1.3.14]# cd src [root@linuxbackup src]# ls Apache.dsp ApacheCoreOS2.def Configuration.tmpl Makefile.tmpl buildmark.c libhttpd.ep modules.o Apache.dsw ApacheNW.mcp.gz Configure PORTING buildmark.o libhttpd.so os Apache.mak BUILD.NOTES INSTALL README helpers main regex ApacheCore.def CHANGES InstallBin.dsp README.EBCDIC httpd makefile.win support ApacheCore.dsp Configuration Makefile ap include modules ApacheCore.mak Configuration.apaci Makefile.config apaci lib modules.c [root@linuxbackup src]# ./httpd -l Compiled-in modules: http_core.c mod_env.c mod_log_config.c mod_mime.c mod_negotiation.c mod_status.c mod_include.c mod_autoindex.c mod_dir.c mod_cgi.c mod_asis.c mod_imap.c mod_actions.c mod_userdir.c mod_alias.c mod_access.c mod_auth.c mod_so.c mod_setenvif.c suexec: disabled; invalid wrapper /usr/local/apache/sbin/suexec [root@linuxbackup src]# /usr/local/apache/bin/httpd Syntax error on line 208 of /etc/httpd/conf/httpd.conf: API module structure `vhost_alias_module' in file /etc/httpd/modules/mod_vhost_alias.so is garbled - perhaps this is not an Apache module DSO? [root@linuxbackup src]# >How-To-Repeat: I repeated this bug on 2 separate machines, with the same distribution and tarballs. >Fix: I'm sure there's a step that I'm missing here, and would appreciate more explicit directions on your DSO documentation page, http://httpd.apache.org/docs/dso.html >Release-Note: >Audit-Trail: State-Changed-From-To: open-analyzed State-Changed-By: slive State-Changed-When: Sat Nov 11 10:28:36 PST 2000 State-Changed-Why: Admittedly, the documentation on this topic is a little opaque. Please try reading the INSTALL doc in the root directory of the source distribution. There you will find that you need to mark which specific modules you want to be "shared" with the --enable-shared option. You can also use enable-shared=max to make all modules DSO. I'll mark this bug as "analyzed" so we can think about fixing the docs. Severity-Changed-From-To: serious-non-critical Severity-Changed-By: slive Severity-Changed-When: Sat Nov 11 10:28:36 PST 2000 >Unformatted: [In order for any reply to be added to the PR database, you need] [to include in the Cc line and make sure the] [subject line starts with the report component and number, with ] [or without any 'Re:' prefixes (such as "general/1098:" or ] ["Re: general/1098:"). If the subject doesn't match this ] [pattern, your message will be misfiled and ignored. The ] ["apbugs" address is not added to the Cc line of messages from ] [the database automatically because of the potential for mail ] [loops. If you do not include this Cc, your reply may be ig- ] [nored unless you are responding to an explicit request from a ] [developer. Reply only with text; DO NOT SEND ATTACHMENTS! ]