Issue 42544 - Solarisgccport: moz build patch
Summary: Solarisgccport: moz build patch
Status: CLOSED NOT_AN_OOO_ISSUE
Alias: None
Product: porting
Classification: Code
Component: code (show other issues)
Version: current
Hardware: PC Solaris
: P3 Trivial (vote)
Target Milestone: ---
Assignee: Frank Schönheit
QA Contact: issues@porting
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-02-11 13:43 UTC by taniguchi
Modified: 2006-03-14 11:25 UTC (History)
4 users (show)

See Also:
Issue Type: PATCH
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
solarisgcc mozilla build patch (1.43 KB, patch)
2005-02-11 13:44 UTC, taniguchi
no flags Details | Diff
mozilla patch2 (1017 bytes, patch)
2005-02-12 10:13 UTC, taniguchi
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this issue.
Description taniguchi 2005-02-11 13:43:09 UTC
This patch is for cws_srx645_mozooo.

It is necessary to pass "-shared" option instead of "-G" to GNU ld when we
build shared libraries on Solaris gcc platform.

This patch changes to use "-shared" when GNU ld is used.
Comment 1 taniguchi 2005-02-11 13:44:45 UTC
Created attachment 22460 [details]
solarisgcc mozilla build patch
Comment 2 pavel 2005-02-11 23:05:23 UTC
taniguchi: The second part of the patch looks like my patch for MacOS X/Darwin,
can you please update it?

windly: this is your playground :-)
Comment 3 taniguchi 2005-02-12 10:12:11 UTC
Oops. I'm sorry. I'll attache a new one.
Comment 4 taniguchi 2005-02-12 10:13:02 UTC
Created attachment 22502 [details]
mozilla patch2
Comment 5 wind.li 2005-02-18 09:43:53 UTC
There is a same thread in mozilla bugzilla at
https://bugzilla.mozilla.org/show_bug.cgi?id=35419
But the patch get checked in and then backed out. 
taniguchi: Do you finish mozilla build with this patch?
Comment 6 taniguchi 2005-02-22 16:38:09 UTC
Yes, I do. I uploaded mozilla solaris gcc binaries to waooo site.
See, https://sourceforge.jp/projects/waooo/files/.

GCC can be built with ether Sun ld or GNU ld on Solaris environment, and
it is necessary to use GNU ld to build OOo because map file format is different
between GCC and Sun C.

I don't know which ld they use, but I failed to build mozilla with -G option
with GNU ld because unnecessary reference to main symbol was defined
in shared libraries like libxpcom.so, libnspr.so, and so on.

=============================================================
cd ./unxsogi.pro/misc/SOLARISGCCIruntime && strip *.so
cd ./unxsogi.pro/misc/SOLARISGCCIruntime/components && strip *.so
cd ./unxsogi.pro/misc/SOLARISGCCIruntime && ./regxpcom
Can not initialize XPCOM Glue
Can not aquire component registrar
dmake:  Error code 255, while making './unxsogi.pro/misc/build/so_moz_runtime_files'
================================================
$ nm libxpcom.so |grep main
[4780] | 0| 0|NOTY |GLOB |0 |UNDEF |main
==========================================

I changed to use -shared option when GNU ld is used and I succeeded to build it.

Thank you.
Comment 7 wind.li 2005-03-23 09:00:05 UTC
working transfer
Comment 8 Frank Schönheit 2005-05-10 13:44:37 UTC
taniguchi, sorry for the delay. Is the latest attached patch still valid? In
this case we could pursue bringing it into the tree ...
Comment 9 stx123 2006-03-02 22:05:48 UTC
taniguchi, could you update us on the status of the solaris gcc port?
Thanks, Stefan
Comment 10 Frank Schönheit 2006-03-14 11:24:19 UTC
No response for nearly a year. Closing.
Feel free to re-open if the patch is still valid, and action is required.
Comment 11 Frank Schönheit 2006-03-14 11:25:00 UTC
closing