You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Chris Gokey <cg...@gcmd.gsfc.nasa.gov> on 2001/09/05 02:03:16 UTC

mod_webapp.so: invalid ELF header

I've downloaded and installed the binary for Tomcat 4.0-b7.  I'm now
trying to install the mod_webapp connector for apache. I've been able to
cvs checkout the latest jakarta-tomcat-connectors/webapps and the apr and
build it.  When I copy the
apache-1.3/mod_webapp.so file into my
apache/libexec directory and try to start apache, I get this error:

[root@cgokey bin]# ./apachectl start
Syntax error on line 993 of /usr/local/apache_1.3.17/conf/httpd.conf:
Cannot load /usr/local/apache_1.3.17/libexec/mod_webapp.so into server:
/usr/local/apache_1.3.17/libexec/mod_webapp.so: invalid ELF header
./apachectl start: httpd could not be started

If I do a "file" on mod_webapp.so, I get this:
[cgokey@cgokey apache-1.3]$ file  mod_webapp.so
mod_webapp.so: Bourne shell script text

Any idea why this module is not building properly?

Chris

-- 
 __________________________________________________
/\				   	           \
\_| Christopher D. Gokey, SSAI, NASA/GCMD          |
  | 18 Martin Road, Shelburne Falls, MA  01370     |
  | Phone: Voice (413) 625-8129 / FAX 208-248-9055 |
  | cgokey@gcmd.nasa.gov / http://gcmd.nasa.gov    |
  | ICQ #52132386, AOL IM: chrisgokey              |
  |   _____________________________________________|_
   \_/______________________________________________/



Re: mod_webapp.so: invalid ELF header

Posted by Ryan Bloom <rb...@covalent.net>.
On Wednesday 05 September 2001 08:23, Chris Gokey wrote:
> Ok, I checked out the source again for
> jakarta-tomcat-connectors/webapps and apr and now I get this error.
>
> [cgokey@cgokey webapp]$ ./support/buildconf.sh
> [cgokey@cgokey webapp]$ ./configure --with-apxs=/usr/local/apache/bin/apxs
> creating cache ./config.cache
> checking for test... /usr/bin/test
> checking for true... /bin/true
> checking for echo... /bin/echo
> checking for grep... /bin/grep
> checking for cat... /bin/cat
> checking for sed... /bin/sed
> checking for rm... /bin/rm
> checking sources directory...
> /home/mddevel/MD8_Devel/MD8/packages/jakarta-tomcat/jakarta-tomcat-connecto
>rs/webapp checking debugging flags... disabled
> checking Java support... disabled
> checking Tomcat 4.0 directory... not required
> checking if apxs is working... ok
> setting target module to...
> /home/mddevel/MD8_Devel/MD8/packages/jakarta-tomcat/jakarta-tomcat-connecto
>rs/webapp/apache-1.3 checking APR directory... configure: error: Cannot find
> APR sources directory "{SRCDIR}/apr"
>
> The apr does exist in my jakarta-tomcat-connectors/webapps
> directory, so I'm not sure why it isn't finding it.  It did yesterday :)

This is a bug in APXS.  We know how to fix it, but I haven't had time today.
Hopefully, I'll have time to fix it tomorrow.

Ryan

>
> Thanks for you help,
> Chris
>
> On Wed, 5 Sep 2001, jean-frederic clere wrote:
> > "Clere, Jean-Frederic" wrote:
> > > Chris Gokey wrote:
> > > > I attached the output of the build process, although I don't see any
> > > > errors..  But that doesn't mean anything :)
> > >
> > > The error is in the Makefile - I will fix it -
> >
> > I have fixed it.
> >
> > > > Thanks for responding and taking a look.
> > > >
> > > > Chris
> > > >
> > > > On Wed, 5 Sep 2001, Pier Fumagalli wrote:
> > > > > "Chris Gokey" <cg...@gcmd.gsfc.nasa.gov> wrote:
> > > > > > I've downloaded and installed the binary for Tomcat 4.0-b7.  I'm
> > > > > > now trying to install the mod_webapp connector for apache. I've
> > > > > > been able to cvs checkout the latest
> > > > > > jakarta-tomcat-connectors/webapps and the apr and build it.  When
> > > > > > I copy the
> > > > > > apache-1.3/mod_webapp.so file into my
> > > > > > apache/libexec directory and try to start apache, I get this
> > > > > > error:
> > > > > >
> > > > > > [root@cgokey bin]# ./apachectl start
> > > > > > Syntax error on line 993 of
> > > > > > /usr/local/apache_1.3.17/conf/httpd.conf: Cannot load
> > > > > > /usr/local/apache_1.3.17/libexec/mod_webapp.so into server:
> > > > > > /usr/local/apache_1.3.17/libexec/mod_webapp.so: invalid ELF
> > > > > > header ./apachectl start: httpd could not be started
> > > > > >
> > > > > > If I do a "file" on mod_webapp.so, I get this:
> > > > > > [cgokey@cgokey apache-1.3]$ file  mod_webapp.so
> > > > > > mod_webapp.so: Bourne shell script text
> > > > > >
> > > > > > Any idea why this module is not building properly?
> > > > >
> > > > > Nope, if you don't send an output of the build process :)
> > > > >
> > > > >     Pier
> > > >
> > > > --
> > > >  __________________________________________________
> > > > /\                                                 \
> > > > \_| Christopher D. Gokey, SSAI, NASA/GCMD          |
> > > >
> > > >   | 18 Martin Road, Shelburne Falls, MA  01370     |
> > > >   | Phone: Voice (413) 625-8129 / FAX 208-248-9055 |
> > > >   | cgokey@gcmd.nasa.gov / http://gcmd.nasa.gov    |
> > > >   | ICQ #52132386, AOL IM: chrisgokey              |
> > > >   |   _____________________________________________|_
> > > >
> > > >    \_/______________________________________________/
> > > >
> > > >  
> > > > ---------------------------------------------------------------------
> > > >----------- Name: output2.txt
> > > >    output2.txt    Type: Plain Text (TEXT/plain)
> > > >               Encoding: BASE64

-- 

______________________________________________________________
Ryan Bloom				rbb@apache.org
Covalent Technologies			rbb@covalent.net
--------------------------------------------------------------

Re: mod_webapp.so: invalid ELF header

Posted by jean-frederic clere <jf...@fujitsu-siemens.com>.
Chris Gokey wrote:
> 
> Ok, I checked out the source again for
> jakarta-tomcat-connectors/webapps and apr and now I get this error.

Oops - Sorry there was a typo ($ missing). -

> 
> [cgokey@cgokey webapp]$ ./support/buildconf.sh
> [cgokey@cgokey webapp]$ ./configure --with-apxs=/usr/local/apache/bin/apxs
> creating cache ./config.cache
> checking for test... /usr/bin/test
> checking for true... /bin/true
> checking for echo... /bin/echo
> checking for grep... /bin/grep
> checking for cat... /bin/cat
> checking for sed... /bin/sed
> checking for rm... /bin/rm
> checking sources directory...
> /home/mddevel/MD8_Devel/MD8/packages/jakarta-tomcat/jakarta-tomcat-connectors/webapp
> checking debugging flags... disabled
> checking Java support... disabled
> checking Tomcat 4.0 directory... not required
> checking if apxs is working... ok
> setting target module to...
> /home/mddevel/MD8_Devel/MD8/packages/jakarta-tomcat/jakarta-tomcat-connectors/webapp/apache-1.3
> checking APR directory... configure: error: Cannot find APR sources
> directory "{SRCDIR}/apr"
> 
> The apr does exist in my jakarta-tomcat-connectors/webapps
> directory, so I'm not sure why it isn't finding it.  It did yesterday :)
> 
> Thanks for you help,
> Chris
> 
> On Wed, 5 Sep 2001, jean-frederic clere wrote:
> 
> > "Clere, Jean-Frederic" wrote:
> > >
> > > Chris Gokey wrote:
> > > >
> > > > I attached the output of the build process, although I don't see any
> > > > errors..  But that doesn't mean anything :)
> > >
> > > The error is in the Makefile - I will fix it -
> >
> > I have fixed it.
> >
> > >
> > > >
> > > > Thanks for responding and taking a look.
> > > >
> > > > Chris
> > > >
> > > > On Wed, 5 Sep 2001, Pier Fumagalli wrote:
> > > >
> > > > > "Chris Gokey" <cg...@gcmd.gsfc.nasa.gov> wrote:
> > > > >
> > > > > > I've downloaded and installed the binary for Tomcat 4.0-b7.  I'm now
> > > > > > trying to install the mod_webapp connector for apache. I've been able to
> > > > > > cvs checkout the latest jakarta-tomcat-connectors/webapps and the apr and
> > > > > > build it.  When I copy the
> > > > > > apache-1.3/mod_webapp.so file into my
> > > > > > apache/libexec directory and try to start apache, I get this error:
> > > > > >
> > > > > > [root@cgokey bin]# ./apachectl start
> > > > > > Syntax error on line 993 of /usr/local/apache_1.3.17/conf/httpd.conf:
> > > > > > Cannot load /usr/local/apache_1.3.17/libexec/mod_webapp.so into server:
> > > > > > /usr/local/apache_1.3.17/libexec/mod_webapp.so: invalid ELF header
> > > > > > ./apachectl start: httpd could not be started
> > > > > >
> > > > > > If I do a "file" on mod_webapp.so, I get this:
> > > > > > [cgokey@cgokey apache-1.3]$ file  mod_webapp.so
> > > > > > mod_webapp.so: Bourne shell script text
> > > > > >
> > > > > > Any idea why this module is not building properly?
> > > > >
> > > > > Nope, if you don't send an output of the build process :)
> > > > >
> > > > >     Pier
> > > > >
> > > >
> > > > --
> > > >  __________________________________________________
> > > > /\                                                 \
> > > > \_| Christopher D. Gokey, SSAI, NASA/GCMD          |
> > > >   | 18 Martin Road, Shelburne Falls, MA  01370     |
> > > >   | Phone: Voice (413) 625-8129 / FAX 208-248-9055 |
> > > >   | cgokey@gcmd.nasa.gov / http://gcmd.nasa.gov    |
> > > >   | ICQ #52132386, AOL IM: chrisgokey              |
> > > >   |   _____________________________________________|_
> > > >    \_/______________________________________________/
> > > >
> > > >   --------------------------------------------------------------------------------
> > > >                   Name: output2.txt
> > > >    output2.txt    Type: Plain Text (TEXT/plain)
> > > >               Encoding: BASE64
> >
> 
> --
>  __________________________________________________
> /\                                                 \
> \_| Christopher D. Gokey, SSAI, NASA/GCMD          |
>   | 18 Martin Road, Shelburne Falls, MA  01370     |
>   | Phone: Voice (413) 625-8129 / FAX 208-248-9055 |
>   | cgokey@gcmd.nasa.gov / http://gcmd.nasa.gov    |
>   | ICQ #52132386, AOL IM: chrisgokey              |
>   |   _____________________________________________|_
>    \_/______________________________________________/

Re: mod_webapp.so: invalid ELF header

Posted by Chris Gokey <cg...@gcmd.gsfc.nasa.gov>.
Ok, I checked out the source again for
jakarta-tomcat-connectors/webapps and apr and now I get this error.

[cgokey@cgokey webapp]$ ./support/buildconf.sh
[cgokey@cgokey webapp]$ ./configure --with-apxs=/usr/local/apache/bin/apxs
creating cache ./config.cache
checking for test... /usr/bin/test
checking for true... /bin/true
checking for echo... /bin/echo
checking for grep... /bin/grep
checking for cat... /bin/cat
checking for sed... /bin/sed
checking for rm... /bin/rm
checking sources directory...
/home/mddevel/MD8_Devel/MD8/packages/jakarta-tomcat/jakarta-tomcat-connectors/webapp
checking debugging flags... disabled
checking Java support... disabled
checking Tomcat 4.0 directory... not required
checking if apxs is working... ok
setting target module to...
/home/mddevel/MD8_Devel/MD8/packages/jakarta-tomcat/jakarta-tomcat-connectors/webapp/apache-1.3
checking APR directory... configure: error: Cannot find APR sources
directory "{SRCDIR}/apr"

The apr does exist in my jakarta-tomcat-connectors/webapps
directory, so I'm not sure why it isn't finding it.  It did yesterday :)

Thanks for you help,
Chris

On Wed, 5 Sep 2001, jean-frederic clere wrote:

> "Clere, Jean-Frederic" wrote:
> >
> > Chris Gokey wrote:
> > >
> > > I attached the output of the build process, although I don't see any
> > > errors..  But that doesn't mean anything :)
> >
> > The error is in the Makefile - I will fix it -
>
> I have fixed it.
>
> >
> > >
> > > Thanks for responding and taking a look.
> > >
> > > Chris
> > >
> > > On Wed, 5 Sep 2001, Pier Fumagalli wrote:
> > >
> > > > "Chris Gokey" <cg...@gcmd.gsfc.nasa.gov> wrote:
> > > >
> > > > > I've downloaded and installed the binary for Tomcat 4.0-b7.  I'm now
> > > > > trying to install the mod_webapp connector for apache. I've been able to
> > > > > cvs checkout the latest jakarta-tomcat-connectors/webapps and the apr and
> > > > > build it.  When I copy the
> > > > > apache-1.3/mod_webapp.so file into my
> > > > > apache/libexec directory and try to start apache, I get this error:
> > > > >
> > > > > [root@cgokey bin]# ./apachectl start
> > > > > Syntax error on line 993 of /usr/local/apache_1.3.17/conf/httpd.conf:
> > > > > Cannot load /usr/local/apache_1.3.17/libexec/mod_webapp.so into server:
> > > > > /usr/local/apache_1.3.17/libexec/mod_webapp.so: invalid ELF header
> > > > > ./apachectl start: httpd could not be started
> > > > >
> > > > > If I do a "file" on mod_webapp.so, I get this:
> > > > > [cgokey@cgokey apache-1.3]$ file  mod_webapp.so
> > > > > mod_webapp.so: Bourne shell script text
> > > > >
> > > > > Any idea why this module is not building properly?
> > > >
> > > > Nope, if you don't send an output of the build process :)
> > > >
> > > >     Pier
> > > >
> > >
> > > --
> > >  __________________________________________________
> > > /\                                                 \
> > > \_| Christopher D. Gokey, SSAI, NASA/GCMD          |
> > >   | 18 Martin Road, Shelburne Falls, MA  01370     |
> > >   | Phone: Voice (413) 625-8129 / FAX 208-248-9055 |
> > >   | cgokey@gcmd.nasa.gov / http://gcmd.nasa.gov    |
> > >   | ICQ #52132386, AOL IM: chrisgokey              |
> > >   |   _____________________________________________|_
> > >    \_/______________________________________________/
> > >
> > >   --------------------------------------------------------------------------------
> > >                   Name: output2.txt
> > >    output2.txt    Type: Plain Text (TEXT/plain)
> > >               Encoding: BASE64
>

-- 
 __________________________________________________
/\				   	           \
\_| Christopher D. Gokey, SSAI, NASA/GCMD          |
  | 18 Martin Road, Shelburne Falls, MA  01370     |
  | Phone: Voice (413) 625-8129 / FAX 208-248-9055 |
  | cgokey@gcmd.nasa.gov / http://gcmd.nasa.gov    |
  | ICQ #52132386, AOL IM: chrisgokey              |
  |   _____________________________________________|_
   \_/______________________________________________/


Re: mod_webapp.so: invalid ELF header

Posted by jean-frederic clere <jf...@fujitsu-siemens.com>.
"Clere, Jean-Frederic" wrote:
> 
> Chris Gokey wrote:
> >
> > I attached the output of the build process, although I don't see any
> > errors..  But that doesn't mean anything :)
> 
> The error is in the Makefile - I will fix it -

I have fixed it.

> 
> >
> > Thanks for responding and taking a look.
> >
> > Chris
> >
> > On Wed, 5 Sep 2001, Pier Fumagalli wrote:
> >
> > > "Chris Gokey" <cg...@gcmd.gsfc.nasa.gov> wrote:
> > >
> > > > I've downloaded and installed the binary for Tomcat 4.0-b7.  I'm now
> > > > trying to install the mod_webapp connector for apache. I've been able to
> > > > cvs checkout the latest jakarta-tomcat-connectors/webapps and the apr and
> > > > build it.  When I copy the
> > > > apache-1.3/mod_webapp.so file into my
> > > > apache/libexec directory and try to start apache, I get this error:
> > > >
> > > > [root@cgokey bin]# ./apachectl start
> > > > Syntax error on line 993 of /usr/local/apache_1.3.17/conf/httpd.conf:
> > > > Cannot load /usr/local/apache_1.3.17/libexec/mod_webapp.so into server:
> > > > /usr/local/apache_1.3.17/libexec/mod_webapp.so: invalid ELF header
> > > > ./apachectl start: httpd could not be started
> > > >
> > > > If I do a "file" on mod_webapp.so, I get this:
> > > > [cgokey@cgokey apache-1.3]$ file  mod_webapp.so
> > > > mod_webapp.so: Bourne shell script text
> > > >
> > > > Any idea why this module is not building properly?
> > >
> > > Nope, if you don't send an output of the build process :)
> > >
> > >     Pier
> > >
> >
> > --
> >  __________________________________________________
> > /\                                                 \
> > \_| Christopher D. Gokey, SSAI, NASA/GCMD          |
> >   | 18 Martin Road, Shelburne Falls, MA  01370     |
> >   | Phone: Voice (413) 625-8129 / FAX 208-248-9055 |
> >   | cgokey@gcmd.nasa.gov / http://gcmd.nasa.gov    |
> >   | ICQ #52132386, AOL IM: chrisgokey              |
> >   |   _____________________________________________|_
> >    \_/______________________________________________/
> >
> >   --------------------------------------------------------------------------------
> >                   Name: output2.txt
> >    output2.txt    Type: Plain Text (TEXT/plain)
> >               Encoding: BASE64

Re: mod_webapp.so: invalid ELF header

Posted by jean-frederic clere <jf...@fujitsu-siemens.com>.
Chris Gokey wrote:
> 
> I attached the output of the build process, although I don't see any
> errors..  But that doesn't mean anything :)

The error is in the Makefile - I will fix it -

> 
> Thanks for responding and taking a look.
> 
> Chris
> 
> On Wed, 5 Sep 2001, Pier Fumagalli wrote:
> 
> > "Chris Gokey" <cg...@gcmd.gsfc.nasa.gov> wrote:
> >
> > > I've downloaded and installed the binary for Tomcat 4.0-b7.  I'm now
> > > trying to install the mod_webapp connector for apache. I've been able to
> > > cvs checkout the latest jakarta-tomcat-connectors/webapps and the apr and
> > > build it.  When I copy the
> > > apache-1.3/mod_webapp.so file into my
> > > apache/libexec directory and try to start apache, I get this error:
> > >
> > > [root@cgokey bin]# ./apachectl start
> > > Syntax error on line 993 of /usr/local/apache_1.3.17/conf/httpd.conf:
> > > Cannot load /usr/local/apache_1.3.17/libexec/mod_webapp.so into server:
> > > /usr/local/apache_1.3.17/libexec/mod_webapp.so: invalid ELF header
> > > ./apachectl start: httpd could not be started
> > >
> > > If I do a "file" on mod_webapp.so, I get this:
> > > [cgokey@cgokey apache-1.3]$ file  mod_webapp.so
> > > mod_webapp.so: Bourne shell script text
> > >
> > > Any idea why this module is not building properly?
> >
> > Nope, if you don't send an output of the build process :)
> >
> >     Pier
> >
> 
> --
>  __________________________________________________
> /\                                                 \
> \_| Christopher D. Gokey, SSAI, NASA/GCMD          |
>   | 18 Martin Road, Shelburne Falls, MA  01370     |
>   | Phone: Voice (413) 625-8129 / FAX 208-248-9055 |
>   | cgokey@gcmd.nasa.gov / http://gcmd.nasa.gov    |
>   | ICQ #52132386, AOL IM: chrisgokey              |
>   |   _____________________________________________|_
>    \_/______________________________________________/
> 
>   --------------------------------------------------------------------------------
>                   Name: output2.txt
>    output2.txt    Type: Plain Text (TEXT/plain)
>               Encoding: BASE64

Re: mod_webapp.so: invalid ELF header

Posted by Chris Gokey <cg...@gcmd.gsfc.nasa.gov>.
I attached the output of the build process, although I don't see any
errors..  But that doesn't mean anything :)

Thanks for responding and taking a look.

Chris


On Wed, 5 Sep 2001, Pier Fumagalli wrote:

> "Chris Gokey" <cg...@gcmd.gsfc.nasa.gov> wrote:
>
> > I've downloaded and installed the binary for Tomcat 4.0-b7.  I'm now
> > trying to install the mod_webapp connector for apache. I've been able to
> > cvs checkout the latest jakarta-tomcat-connectors/webapps and the apr and
> > build it.  When I copy the
> > apache-1.3/mod_webapp.so file into my
> > apache/libexec directory and try to start apache, I get this error:
> >
> > [root@cgokey bin]# ./apachectl start
> > Syntax error on line 993 of /usr/local/apache_1.3.17/conf/httpd.conf:
> > Cannot load /usr/local/apache_1.3.17/libexec/mod_webapp.so into server:
> > /usr/local/apache_1.3.17/libexec/mod_webapp.so: invalid ELF header
> > ./apachectl start: httpd could not be started
> >
> > If I do a "file" on mod_webapp.so, I get this:
> > [cgokey@cgokey apache-1.3]$ file  mod_webapp.so
> > mod_webapp.so: Bourne shell script text
> >
> > Any idea why this module is not building properly?
>
> Nope, if you don't send an output of the build process :)
>
>     Pier
>

-- 
 __________________________________________________
/\				   	           \
\_| Christopher D. Gokey, SSAI, NASA/GCMD          |
  | 18 Martin Road, Shelburne Falls, MA  01370     |
  | Phone: Voice (413) 625-8129 / FAX 208-248-9055 |
  | cgokey@gcmd.nasa.gov / http://gcmd.nasa.gov    |
  | ICQ #52132386, AOL IM: chrisgokey              |
  |   _____________________________________________|_
   \_/______________________________________________/

Re: mod_webapp.so: invalid ELF header

Posted by Pier Fumagalli <pi...@betaversion.org>.
"Chris Gokey" <cg...@gcmd.gsfc.nasa.gov> wrote:

> I've downloaded and installed the binary for Tomcat 4.0-b7.  I'm now
> trying to install the mod_webapp connector for apache. I've been able to
> cvs checkout the latest jakarta-tomcat-connectors/webapps and the apr and
> build it.  When I copy the
> apache-1.3/mod_webapp.so file into my
> apache/libexec directory and try to start apache, I get this error:
> 
> [root@cgokey bin]# ./apachectl start
> Syntax error on line 993 of /usr/local/apache_1.3.17/conf/httpd.conf:
> Cannot load /usr/local/apache_1.3.17/libexec/mod_webapp.so into server:
> /usr/local/apache_1.3.17/libexec/mod_webapp.so: invalid ELF header
> ./apachectl start: httpd could not be started
> 
> If I do a "file" on mod_webapp.so, I get this:
> [cgokey@cgokey apache-1.3]$ file  mod_webapp.so
> mod_webapp.so: Bourne shell script text
> 
> Any idea why this module is not building properly?

Nope, if you don't send an output of the build process :)

    Pier