Closed Bug 195797 Opened 22 years ago Closed 21 years ago

Build NSS with GCC 3.x

Categories

(NSS :: Build, defect, P2)

x86
OS/2
defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: jhpedemonte, Assigned: wtc)

References

Details

Attachments

(2 files, 3 obsolete files)

Derived from Meta bug 177789.  This bug deals specifically with patches to make
NSS build on OS/2 using GCC 3.x.
Attached patch patch (obsolete) — Splinter Review
Attached patch patch v1.1 (obsolete) — Splinter Review
Missing endif in OS2.mk
Attachment #116136 - Attachment is obsolete: true
Attached patch patch v1.2 (obsolete) — Splinter Review
More cleanup.
Attachment #116154 - Attachment is obsolete: true
Comment on attachment 117253 [details] [diff] [review]
patch v1.2

Trying to get this approved and checked in for 1.4a
Attachment #117253 - Flags: review?(relyea)
Question: is the desire to really only allow GCC to work (not CSet)? It seems
like the patch would break CSet compiles (unless there are some if's I'm missing).

bob
Attached patch patch v1.3Splinter Review
Small change to sign.cmd
Attachment #117253 - Attachment is obsolete: true
Attachment #118337 - Flags: review?(relyea)
Attachment #117253 - Flags: review?(relyea)
For the moment, both GCC and Visual Age (CSet) compilers will work.  In the
future, though, we will switch to only supporting GCC.
My understanding is that the Mozilla browser needs an updated C++ compiler, and
C Set ++ / Visual Age have fallen too far behind to be supported for the build.
There have been ongoing complaints from client land to use those features, and
OS/2 was the only platform holding them back. This means that the browser will
no longer build with C Set ++ or VAC++ on OS/2.

However, NSS and NSPR currently have a C API, and there is no requirement for
them to be built with gcc. I'd like to keep the ability to build them with VAC.
I use them a lot with small programs such as the NSS command-line tools that are
C-based, even if the browser won't build with those compilers.

I'll try Javier's patches and see if my VAC build still works.
This patch didn't break my VAC build of NSS, however it is broken for other
reasons. It is trying to call "exec" when signing the softoken dll, even without
the patch. exec doesn't exist on my OS/2 system.
exec in a makefile is not supposed to invoke exec on a client.

What version of gmake are you using?
I am using gmake 3.76.1 .
FYI, the problem can be fixed in mozilla/security/nss/cmd/shlibsign/Makefile by
replacing "-exec sign.cmd" with "cmd.exe /c sign.cmd" .
Julien: You should update to make 3.79
(http://www.unixos2.org/sw/pub/binary/make/make-3_79_2a1-r2-bin.zip)
Relyea:  Can we get this checked in for 1.4a?  Thanks...
Comment on attachment 118337 [details] [diff] [review]
patch v1.3

r=wtc.

Requesting mozilla 1.4a approval.  These are OS/2 build
changes.  All the changes are either in OS/2-only files
or ifdef's with OS/2.
Attachment #118337 - Flags: review?(relyea)
Attachment #118337 - Flags: review+
Attachment #118337 - Flags: approval1.4a?
Comment on attachment 118337 [details] [diff] [review]
patch v1.3

a=asa (on behalf of drivers) for checkin to 1.4a
Attachment #118337 - Flags: approval1.4a? → approval1.4a+
Comment on attachment 118337 [details] [diff] [review]
patch v1.3

Javier,

Two questions:

1. In security/coreconf/OS2.mk

>+ifeq (,$EMXOMFLD_LINKER)  # using LINK386.EXE

Can I add parentheses "()" around EMXOMFLD_LINKER?  That is,

>+ifeq (,$(EMXOMFLD_LINKER))  # using LINK386.EXE

2. In security/nss/cmd/shlibsign/sign.cmd

>+'set BEGINLIBPATH=%BEGINLIBPATH%;'dist'\lib'

Can I move 'dist'\lib to the front of BEGINLIBPATH?  That is,

>+'set BEGINLIBPATH='dist'\lib;%BEGINLIBPATH%'

Please let me know if these two suggested changes are fine.
wtc: Yes, both of those changes should be fine.  Thanks for trying to get this in.
Patch checked in (with the two changes described in comment 16)
on the NSS TIP (NSS 3.8) and NSS_CLIENT_TAG (mozilla 1.4alpha).
Status: NEW → RESOLVED
Closed: 21 years ago
Priority: -- → P2
Resolution: --- → FIXED
Target Milestone: --- → 3.8
Attached patch Actual checkinSplinter Review
This is Javier's patch v1.3 plus the two changes I suggested
in comment 16.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: