You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Maulik S <ma...@tcs.com> on 2007/01/31 07:19:36 UTC
meanings of "-lapr-0 -lgcc -lc -lsocket -lnsl" in Makefile while building
nsapi_redirector.so
Hi,
I am trying to build nsapi_redirector.so from Makefile.solaris. when I
tried to use make command it not works.
Then i had copied to Makefile and made some changes as I found by
googling. One of the important thing that I found was -
LD_SHAREDCMD=ld -G -fPIC -lapr-0 -lgcc -lc -lsocket -lnsl
By default only entry which is not shown as bold is present. So is it ok
to build .so as it is or I have to use the above whole statement in the
Makefile. I also not know what this entry is meant for.
Can you please let me know what it is and what is the impact of it.
I also had found information from :
http://mail-archives.apache.org/mod_mbox/tomcat-dev/200201.mbox/%3C20020106223331.69255.qmail@icarus.apache.org%3E
Here you had recommended :
CC_CMD=gcc -DNET_SSL -DSOLARIS -D_REENTRANT -DXP_UNIX \
+ -DMCC_HTTPD -DSPAPI20 -Wall \
+ -fPIC
What is the impact by using -Wall in CC_CMD?
I am using sun one web server 6.1 and want to connect JBoss App
throughTomcat connector.
Any help would be appreciated.
Maulik H Shah
Tata Consultancy Services
Website: http://www.tcs.com
=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain
confidential or privileged information. If you are
not the intended recipient, any dissemination, use,
review, distribution, printing or copying of the
information contained in this e-mail message
and/or attachments to it are strictly prohibited. If
you have received this communication in error,
please notify us by reply e-mail or telephone and
immediately and permanently delete the message
and any attachments. Thank you
Re: meanings of "-lapr-0 -lgcc -lc -lsocket -lnsl" in Makefile while building nsapi_redirector.so
Posted by Jim Jagielski <ji...@jaguNET.com>.
On Jan 31, 2007, at 1:36 AM, Zack Grafton wrote:
> Maulik,
>
> In the line:
> LD_SHAREDCMD=ld -G -fPIC -lapr-0 -lgcc -lc -lsocket -lnsl
>
> I can't tell which one is bold, but anyway, that line specifies
> which linker command to use, and the -l options specify the loading
> of a library. You should check the man page for 'ld'.
>
> And in the line:
> CC_CMD= gcc -DNET_SSL -DSOLARIS -D_REENTRANT -DXP_UNIX \
> -DMCC_HTTPD -DSPAPI20 -Wall \
> -fPIC
>
> The -Wall option is telling the compiler to give you all the
> warnings it can provide.
>
I'd recommend not using gcc at all, otherwise it's possible
(in fact likely) that you'll run into a relocation error
when using with SunONE (missing __lshrdi3). Instead
use Sun Studio.
Also, the Makefile.solaris seems broken as well (looking
into it and will fix soon) so just do a
cp ../common/*.c .
cp ../common/*.h .
while in ./netscape and the build should proceed OK.
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: meanings of "-lapr-0 -lgcc -lc -lsocket -lnsl" in Makefile while
building nsapi_redirector.so
Posted by Zack Grafton <za...@gmail.com>.
Maulik,
In the line:
LD_SHAREDCMD=ld -G -fPIC -lapr-0 -lgcc -lc -lsocket -lnsl
I can't tell which one is bold, but anyway, that line specifies which
linker command to use, and the -l options specify the loading of a
library. You should check the man page for 'ld'.
And in the line:
CC_CMD= gcc -DNET_SSL -DSOLARIS -D_REENTRANT -DXP_UNIX \
-DMCC_HTTPD -DSPAPI20 -Wall \
-fPIC
The -Wall option is telling the compiler to give you all the warnings it
can provide.
Zack
Maulik S wrote:
> Hi,
>
> I am trying to build nsapi_redirector.so from Makefile.solaris. when I
> tried to use make command it not works.
> Then i had copied to Makefile and made some changes as I found by
> googling. One of the important thing that I found was -
>
> LD_SHAREDCMD=ld -G -fPIC -lapr-0 -lgcc -lc -lsocket -lnsl
>
> By default only entry which is not shown as bold is present. So is it ok
> to build .so as it is or I have to use the above whole statement in the
> Makefile. I also not know what this entry is meant for.
> Can you please let me know what it is and what is the impact of it.
>
> I also had found information from :
> http://mail-archives.apache.org/mod_mbox/tomcat-dev/200201.mbox/%3C20020106223331.69255.qmail@icarus.apache.org%3E
>
>
> Here you had recommended :
> CC_CMD=gcc -DNET_SSL -DSOLARIS -D_REENTRANT -DXP_UNIX \
> + -DMCC_HTTPD -DSPAPI20 -Wall \
> + -fPIC
> What is the impact by using -Wall in CC_CMD?
>
> I am using sun one web server 6.1 and want to connect JBoss App
> throughTomcat connector.
>
> Any help would be appreciated.
>
> Maulik H Shah
> Tata Consultancy Services
> Website: http://www.tcs.com
> =====-----=====-----=====
> Notice: The information contained in this e-mail
> message and/or attachments to it may contain
> confidential or privileged information. If you are
> not the intended recipient, any dissemination, use,
> review, distribution, printing or copying of the
> information contained in this e-mail message
> and/or attachments to it are strictly prohibited. If
> you have received this communication in error,
> please notify us by reply e-mail or telephone and
> immediately and permanently delete the message
> and any attachments. Thank you
>
>
>
>
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org