httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 41358] New: - No DSO works: ./configure --enable-mods-shared doesn't work, neither does apxs, neither does ./configure --enable-proxy=shared.
Date Fri, 12 Jan 2007 19:51:43 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41358>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41358

           Summary: No DSO works: ./configure --enable-mods-shared doesn't
                    work,  neither does apxs, neither does ./configure --
                    enable-proxy=shared.
           Product: Apache httpd-2
           Version: 2.2.4
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Build
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: benjamin.clark@tdbanknorth.com


It seems that building shared modules doesn't work anymore.

I downloaded apache httpd 2.2.4 and unpacked it into /home/bclark/p/httpd-2.2.4

# This is what I did to install apache under /home/bclark/proxy/p:

$ uname -a 
Linux bng000023569 2.6.8-24.16-default #1 Thu Jun 2 12:09:57 UTC 2005 i686
i686i386 GNU/Linux

$ PREFIX=/home/bclark/proxy/p

$ cd PREFIX

$ ls

httpd-2.2.4.tar.bz2 

$ tar -xjf httpd-2.2.4.tar.bz2

$ cd httpd-2.2.4

$ ./configure --prefix=$PREFIX --enable-so --enable-proxy=shared

$ make

$ make install

$ cd $PREFIX

$ ls modules

httpd.exp         mod_proxy_balancer.a   mod_proxy_ftp.a    mod_proxy.la
mod_proxy.a       mod_proxy_balancer.la  mod_proxy_ftp.la
mod_proxy_ajp.a   mod_proxy_connect.a    mod_proxy_http.a
mod_proxy_ajp.la  mod_proxy_connect.la   mod_proxy_http.la

# notice here that no mod_proxy.so was created.
# below is the relavent contents of my $PREFIX/conf/httpd.conf :

LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_connect_module modules/mod_proxy_connect.so
LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
LoadModule proxy_http_module modules/mod_proxy_http.so
LoadModule proxy_ajp_module modules/mod_proxy_ajp.so
LoadModule proxy_balancer_module modules/mod_proxy_balancer.so

$ bin/apachectl start

httpd: Syntax error on line 54 of /home/bclark/proxy/p/conf/httpd.conf: Cannot
load /home/bclark/proxy/p/modules/mod_proxy.so into server:
/home/bclark/proxy/p/modules/mod_proxy.so: cannot open shared object file: No
such file or directory

# Other configuration I've tried:  A

$ ./configure --prefix=$PREFIX --enable-mods-shared=proxy 

# produces the same $PREFIX/modules listing as above

$ ./configure --prefix=$PREFIX --enable-mods-shared=all

$ ls $PREFIX/modules/*.so

# nothing ending with .so

# It seems no .so are produced no matter what I do.  And it's not just
mod_proxy.  I've also tried other modules.  I can't get any .so modules to be
produced.  

# So I figure, I'll use apxs directly:

$ ./configure --prefix=$PREFIX --enable-so
$ make && make install
$ cd $PREFIX
$ ls modules
httpd.exp

$ bin/apxs -i -c httpd-2.2.4/modules/proxy/mod_proxy.c
/home/bclark/build/libtool --silent --mode=compile gcc -prefer-pic   -DLINUX=2
-D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -g -O2 -pthread
-I/home/bclark/proxy/p/include  -I/home/bclark/include   -I/home/bclark/include
  -c -o httpd-2.2.4/modules/proxy/mod_proxy.lo
httpd-2.2.4/modules/proxy/mod_proxy.c && touch
httpd-2.2.4/modules/proxy/mod_proxy.slo
/home/bclark/build/libtool --silent --mode=link gcc -o
httpd-2.2.4/modules/proxy/mod_proxy.la  -rpath /home/bclark/proxy/p/modules
-module -avoid-version    httpd-2.2.4/modules/proxy/mod_proxy.lo
/home/bclark/proxy/p/build/instdso.sh SH_LIBTOOL='/home/bclark/build/libtool'
httpd-2.2.4/modules/proxy/mod_proxy.la /home/bclark/proxy/p/modules
/home/bclark/build/libtool --mode=install cp
httpd-2.2.4/modules/proxy/mod_proxy.la /home/bclark/proxy/p/modules/
cp httpd-2.2.4/modules/proxy/.libs/mod_proxy.lai
/home/bclark/proxy/p/modules/mod_proxy.la
cp httpd-2.2.4/modules/proxy/.libs/mod_proxy.a
/home/bclark/proxy/p/modules/mod_proxy.a
ranlib /home/bclark/proxy/p/modules/mod_proxy.a
chmod 644 /home/bclark/proxy/p/modules/mod_proxy.a
PATH="$PATH:/sbin" ldconfig -n /home/bclark/proxy/p/modules
----------------------------------------------------------------------
Libraries have been installed in:
   /home/bclark/proxy/p/modules

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
     during execution
   - add LIBDIR to the `LD_RUN_PATH' environment variable
     during linking
   - use the `-Wl,--rpath -Wl,LIBDIR' linker flag
   - have your system administrator add LIBDIR to `/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
Warning!  dlname not found in /home/bclark/proxy/p/modules/mod_proxy.la.
Assuming installing a .so rather than a libtool archive.
chmod 755 /home/bclark/proxy/p/modules/mod_proxy.so
chmod: cannot access `/home/bclark/proxy/p/modules/mod_proxy.so': No such file
or directory
apxs:Error: Command failed with rc=65536
.
$ ls modules  
httpd.exp  mod_proxy.a  mod_proxy.la

# STILL no mod_proxy.so.  And my conf/httpd.conf wasn't modified.
# It seems I am unable to have any DSO support..
# However a static build works:

$ ./configure --prefix=$PREFIX --enable-modules=proxy && make && make install
$ $PREFIX/bin/httpd -l | grep proxy

  mod_proxy.c
  mod_proxy_connect.c
  mod_proxy_ftp.c
  mod_proxy_http.c
  mod_proxy_ajp.c
  mod_proxy_balancer.c

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message