You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Cracauer, David D." <dc...@vue.com> on 2001/10/30 15:02:18 UTC

mod_webapp/apache & solaris 8 compile problems

I have a sun blade 100 running Solaris 8 that I am using to show that it is
possible to run our web apps on unix.  I have everything working under
tomcat, but I want to show how well it will perform under apache/tomcat.
This is the factory install that I have added gcc tools to.  When I try to
use the pre-compiled mod_webapp with the pre-compiled httpd that came on the
box I get this:

Cannot load /usr/apache/libexec/mod_webapp.so into server: ld.so.1:
/usr/apache/
bin/httpd: fatal: relocation error: file /usr/apache/libexec/mod_webapp.so:
symbol __lshrdi3: referenced symbol not found

When I try to start the httpd binary that I built i get this:

Cannot load /www/libexec/mod_env.so into server: ld.so.1: /www/bin/httpd:
fatal:
 relocation error: file /www/libexec/mod_env.so: symbol ap_palloc:
referenced symbol not found

I'm no genius, but these seem related.  I am more familiar with linux than I
am with solaris, but they don't trust linux here yet.....


Any help appreciated,
Dave


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: mod_webapp/apache & solaris 8 compile problems

Posted by Pier Fumagalli <pi...@betaversion.org>.
Steve Brunton at brunton@dweeb.turner.com wrote:

> Cracauer, David D. wrote:
> 
>> I have a sun blade 100 running Solaris 8 that I am using to show that it is
>> possible to run our web apps on unix.  I have everything working under
>> tomcat, but I want to show how well it will perform under apache/tomcat.
>> This is the factory install that I have added gcc tools to.  When I try to
>> use the pre-compiled mod_webapp with the pre-compiled httpd that came on the
>> box I get this:
>> 
>> Cannot load /usr/apache/libexec/mod_webapp.so into server: ld.so.1:
>> /usr/apache/
>> bin/httpd: fatal: relocation error: file /usr/apache/libexec/mod_webapp.so:
>> symbol __lshrdi3: referenced symbol not found
>> 
>> When I try to start the httpd binary that I built i get this:
>> 
>> Cannot load /www/libexec/mod_env.so into server: ld.so.1: /www/bin/httpd:
>> fatal:
>>  relocation error: file /www/libexec/mod_env.so: symbol ap_palloc:
>> referenced symbol not found
>> 
>> I'm no genius, but these seem related.  I am more familiar with linux than I
>> am with solaris, but they don't trust linux here yet.....
>> 
>> 
>> 
> 
> 
> I had the same problem on Solaris 8 x86 (no flames on "well, just use
> Linux then, since it's Intel" there are performance reasons).

I like this guy :) :) :) Sol8/intel ROCKS!

> It's a 
> problem with the .so being built with GCC and the runtime not finding a
> libgcc.so to dynamically load some of the junk it's looking for. I had
> to pull apart the libgcc.a and put it back together in a libgcc.so and
> drop it in /usr/lib in order to get the Apache HTTPD process to even
> want to start with an attempt to load the mod_webapp.so. After that the
> httpd process would start, but it never actually registered the WebApp
> module being loaded, so I just backed down to mod_jk.
>  This is with Apache 1.3.22, Tomcat 4.0.1 and the latest connectors
> out of CVS.

>From my distro of GCC (both on Sol8 x86 AND sparc), libgcc is already
included as a .so in /usr/local/lib... Just make sure you export the correct
LD_LIBRARY_PATH by doing:

# LD_LIBRARY_PATH=/lib:/usr/lib:/usr/local/lib
# export LD_LIBRARY_PATH
# apachectl configtest
Syntax OK
# apachectl start

And it goes (for me! :)

    Pier


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: mod_webapp/apache & solaris 8 compile problems

Posted by Steve Brunton <br...@dweeb.turner.com>.
Cracauer, David D. wrote:

> I have a sun blade 100 running Solaris 8 that I am using to show that it is
> possible to run our web apps on unix.  I have everything working under
> tomcat, but I want to show how well it will perform under apache/tomcat.
> This is the factory install that I have added gcc tools to.  When I try to
> use the pre-compiled mod_webapp with the pre-compiled httpd that came on the
> box I get this:
> 
> Cannot load /usr/apache/libexec/mod_webapp.so into server: ld.so.1:
> /usr/apache/
> bin/httpd: fatal: relocation error: file /usr/apache/libexec/mod_webapp.so:
> symbol __lshrdi3: referenced symbol not found
> 
> When I try to start the httpd binary that I built i get this:
> 
> Cannot load /www/libexec/mod_env.so into server: ld.so.1: /www/bin/httpd:
> fatal:
>  relocation error: file /www/libexec/mod_env.so: symbol ap_palloc:
> referenced symbol not found
> 
> I'm no genius, but these seem related.  I am more familiar with linux than I
> am with solaris, but they don't trust linux here yet.....
> 
> 
>


   I had the same problem on Solaris 8 x86 (no flames on "well, just use 
Linux then, since it's Intel" there are performance reasons). It's a 
problem with the .so being built with GCC and the runtime not finding a 
libgcc.so to dynamically load some of the junk it's looking for. I had 
to pull apart the libgcc.a and put it back together in a libgcc.so and 
drop it in /usr/lib in order to get the Apache HTTPD process to even 
want to start with an attempt to load the mod_webapp.so. After that the 
httpd process would start, but it never actually registered the WebApp 
module being loaded, so I just backed down to mod_jk.
   This is with Apache 1.3.22, Tomcat 4.0.1 and the latest connectors 
out of CVS.

--
Steve Brunton   <br...@dweeb.turner.com>  Phone: 404-827-2756
Chief Engineer Enterprise Systems    One CNN Center, Atlanta GA
CNN Internet Technologies          ICBM: 84W 23' 45" 33N 45' 29"
<*> They who drink beer will think beer. <*>




--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: mod_webapp/apache & solaris 8 compile problems

Posted by Pier Fumagalli <pi...@betaversion.org>.
Cracauer, David  D. at dcracauer@vue.com wrote:

> 
> I have a sun blade 100 running Solaris 8 that I am using to show that it is
> possible to run our web apps on unix.  I have everything working under
> tomcat, but I want to show how well it will perform under apache/tomcat.
> This is the factory install that I have added gcc tools to.  When I try to
> use the pre-compiled mod_webapp with the pre-compiled httpd that came on the
> box I get this:
> 
> Cannot load /usr/apache/libexec/mod_webapp.so into server: ld.so.1:
> /usr/apache/
> bin/httpd: fatal: relocation error: file /usr/apache/libexec/mod_webapp.so:
> symbol __lshrdi3: referenced symbol not found
> 
> When I try to start the httpd binary that I built i get this:
> 
> Cannot load /www/libexec/mod_env.so into server: ld.so.1: /www/bin/httpd:
> fatal:
> relocation error: file /www/libexec/mod_env.so: symbol ap_palloc:
> referenced symbol not found
> 
> I'm no genius, but these seem related.  I am more familiar with linux than I
> am with solaris, but they don't trust linux here yet.....

You're using Sun's C compiler I believe... Use GCC :) :) :)


    Pier


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>