You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Chris Harris <ch...@stl.org> on 2003/01/14 16:15:22 UTC

[users@httpd] compile error: file mod_rewrite.lo: unknown file type

I am getting an error when running 'make' in the apache build procedure for a shared module.

I get this on both Solaris 8 & Solaris 9.

Apache version is 2.0.43, and I have tried both gcc 2.95.3 and 3.2

My configure command is

configure --prefix=/demo1/apache --enable-ssl --with-ssl=/usr/local/ssl --enable-module=most --enable-shared=max  --enable-module=so --enable-rewrite=shared

the make terminates with the following:

Building shared: mod_rewrite.la
/bin/bash /user1/csource/httpd-2.0.43/srclib/apr/libtool --silent --mode=compile gcc  -g -O2 -pthreads    -DSOLARIS2=9 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -DAP_HAVE_DESIGNATED_INITIALIZER   -I/user1/csource/httpd-2.0.43/srclib/apr/include -I/user1/csource/httpd-2.0.43/srclib/apr-util/include -I/user1/csource/httpd-2.0.43/srclib/apr-util/xml/expat/lib -I. -I/user1/csource/httpd-2.0.43/os/unix -I/user1/csource/httpd-2.0.43/server/mpm/prefork -I/user1/csource/httpd-2.0.43/modules/http -I/user1/csource/httpd-2.0.43/modules/filters -I/user1/csource/httpd-2.0.43/modules/proxy -I/user1/csource/httpd-2.0.43/include -I/usr/local/ssl/include/openssl -I/usr/local/ssl/include -I/user1/csource/httpd-2.0.43/modules/dav/main  -c mod_rewrite.c && touch mod_rewrite.slo
/bin/bash /user1/csource/httpd-2.0.43/shlibtool --silent --mode=link gcc  -g -O2 -pthreads    -DSOLARIS2=9 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -DAP_HAVE_DESIGNATED_INITIALIZER   -I/user1/csource/httpd-2.0.43/srclib/apr/include -I/user1/csource/httpd-2.0.43/srclib/apr-util/include -I/user1/csource/httpd-2.0.43/srclib/apr-util/xml/expat/lib -I. -I/user1/csource/httpd-2.0.43/os/unix -I/user1/csource/httpd-2.0.43/server/mpm/prefork -I/user1/csource/httpd-2.0.43/modules/http -I/user1/csource/httpd-2.0.43/modules/filters -I/user1/csource/httpd-2.0.43/modules/proxy -I/user1/csource/httpd-2.0.43/include -I/usr/local/ssl/include/openssl -I/usr/local/ssl/include -I/user1/csource/httpd-2.0.43/modules/dav/main -export-dynamic -L/user1/csource/httpd-2.0.43/srclib/apr-util/xml/expat/lib -L/usr/local/ssl/lib -R/usr/local/ssl/lib      -o mod_rewrite.la -rpath /usr/local/apache/modules -module -avoid-version  mod_rewrite.lo
ld: fatal: file mod_rewrite.lo: unknown file type
ld: fatal: File processing errors. No output written to .libs/mod_rewrite.so
*** Error code 1
make: Fatal error: Command failed for target `mod_rewrite.la'
Current working directory /user1/csource/httpd-2.0.43/modules/mappers
*** Error code 1
make: Fatal error: Command failed for target `shared-build-recursive'
Current working directory /user1/csource/httpd-2.0.43/modules/mappers
*** Error code 1
make: Fatal error: Command failed for target `shared-build-recursive'
Current working directory /user1/csource/httpd-2.0.43/modules
*** Error code 1
make: Fatal error: Command failed for target `shared-build-recursive'
Current working directory /user1/csource/httpd-2.0.43
*** Error code 1
make: Fatal error: Command failed for target `all-recursive'


If I compile mod_rewrite statically, i.e. leave off the =shared at the end of the configure command, it compiles fine.


I would be very grateful for any pointers as to what might be the cause, and how I can solve it.

Thanks



Chris Harris
System Manager
STL Ltd.
PO Box 300, Carlisle, Cumbria, CA3 0QS
Ph. 01228 611811
Fax 01228 514949 

_____________________________________________________________________
This e-mail has been scanned for viruses by the WorldCom Internet Managed Scanning Service - powered by MessageLabs. For further information visit http://www.worldcom.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


Re: [users@httpd] compile error: file mod_rewrite.lo: unknown file type

Posted by Lee Fellows <lf...@4lane.com>.
On Tue, 2003-01-14 at 10:15, Chris Harris wrote:
> configure --prefix=/demo1/apache \
>  --enable-ssl --with-ssl=/usr/local/ssl \ 
> --enable-module=most \  NOT A VALID OPTION  maybe --enable-modules=most
> --enable-shared=max  \  NOT A VALID OPTION  maybe --enable-mods-shared=all
> --enable-module=so \   NO  --enable-so or --enable-modules="so"
> --enable-rewrite=shared
> 

  Try ./configure --help and the documentation.  Testing with the
  configuration command you gave results in the results you gave. 
                                                                                      
-- 
Lee Fellows <lf...@4lane.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