You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Kendall Carpenter <km...@promtech.com> on 2002/12/04 23:56:32 UTC

[users@httpd] APXS and mod_proxy.c for DSO after 2.0.43 install

Hello All,

I have installed Apache2 v2.0.43 for linux on SuSE Linux Enterprise Server 7, 
and it seems to be working fine - except that I needed ProxyPass / 
ProxyPassReverse support and did not compile in mod_proxy at install. I am 
fairly new to building my own Apache's and this is my first encounter with 
APXS, so please understand beginner mistakes. Thank you in advance for your 
help.

I found documentation for APXS and tried to use it as follows :
$ cd /path/to/mod_proxy.c
$ apxs -c mod_proxy.c
$ apxs -i -a -n proxy mod_proxy.la 

Here is exactly what I did and the output it gave:
*******************BEGIN SHELL BLOCK *********************
#...test/proxy > /u04/app/apache2/product/2.0.43/bin/apxs -i -a -n proxy\ 
mod_proxy.la
/u04/app/apache2/product/2.0.43//build/instdso.sh 
SH_LIBTOOL='/u04/app/apache2/product/2.0.43//build/libtool' mod_proxy.la 
/u04/app/apache2/product/2.0.43//modules
/u04/app/apache2/product/2.0.43//build/libtool --mode=install cp mod_proxy.la 
/u04/app/apache2/product/2.0.43//modules/
cp .libs/mod_proxy.so /u04/app/apache2/product/2.0.43//modules/mod_proxy.so
cp .libs/mod_proxy.lai /u04/app/apache2/product/2.0.43//modules/mod_proxy.la
PATH="$PATH:/sbin" ldconfig -n /u04/app/apache2/product/2.0.43//modules
----------------------------------------------------------------------
Libraries have been installed in:
   /u04/app/apache2/product/2.0.43//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 `-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.
----------------------------------------------------------------------
chmod 755 /u04/app/apache2/product/2.0.43//modules/mod_proxy.so
[activating module `proxy' in 
/u04/app/apache2/product/2.0.43//conf/httpd.conf]
************** END SHELL BLOCK ****************

I see the added LoadModule line in httpd.conf. When I try to start Apache I 
get the following error:

# /u04/app/apache2/product/2.0.43/bin/apachectl start
Syntax error on line 263 of /u04/app/apache2/product/2.0.43/conf/httpd.conf:
Cannot load /u04/app/apache2/product/2.0.43/modules/mod_proxy.so into server: 
/u04/app/apache2/product/2.0.43/modules/mod_proxy.so: undefined symbol: 
ap_proxy_is_word

Does this look familiar to anybody? Any advice or input is welcome.
Thank you,
Kendall Carpenter
-- 
Promethean Technologies
Tel 607-256-1312
kmc@promtech.com	

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org