Problems building NSS 3.12.3 with NSPR 4.7.5 on AIX 7.1 in 64-bit mode.

UNCONFIRMED
Assigned to

Status

--
blocker
UNCONFIRMED
7 years ago
5 years ago

People

(Reporter: veera.narkedimilli, Assigned: wtc)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Reporter)

Description

7 years ago
Created attachment 545875 [details]
Build Log for NSS 3.12.3.1 on AIX 7.1

I am trying to build NSS 3.12.3.1 with NSPR 4.7.5 on AIX 7.1 in 64-bit mode.

I have followed these steps

1. Downloaded the source from 
ftp://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/NSS_3_12_3_1_RTM/src/nss-3.12.3.1-with-nspr-4.7.5.tar.gz
2. Extracted them to /LDAP
3. gmake version is 3.80, 
    Compiler is IBM XL C/C++ 11.1.0.0
4. setenv BUILD_OPT 1
    setenv USE_64 1
5. >cd /LDAP/nss-3.12.3.1/mozilla/security/nss
6. >gmake nss_build_all >& nss_build_all.log


I get the following Duplicate symbol warnings in the creation of .so files

ld: 0711-224 WARNING: Duplicate symbol: .bcopy
ld: 0711-224 WARNING: Duplicate symbol: .memcpy
	The following duplicates were found:
 Symbol                    Source-File(Object) OR Import-File{Shared-object}
 ------------------------- -------------------------------------------------
 .bcopy                    {../../../../dist/AIX7.1_64_OPT.OBJ/lib/libnspr4.so}
    ** Duplicate **        moveeq.s(/usr/lib/libc.a[moveeq_64.o])
ld: 0711-224 WARNING: Duplicate symbol: .memcpy
 .memcpy                   {../../../../dist/AIX7.1_64_OPT.OBJ/lib/libnspr4.so}
    ** Duplicate **        moveeq.s(/usr/lib/libc.a[moveeq_64.o])


I should not get these Duplicate symbol warnings.

Suppose if I unset BUILD_OPT, then .memcpy duplicate symbol warning is gone. But still facing .bcopy duplicate symbol warning.
Please let us know how to eliminate these warnings.
Group: core-security

Comment 1

5 years ago
Ashwani, did you ever resolve this problem ?

Updated

5 years ago
Assignee: nobody → wtc
Component: Build → NSPR
Product: NSS → NSPR
Version: 3.12.3.1 → 4.10
(Assignee)

Comment 2

5 years ago
This may be related to bug 200561. I think the command we used to
build libnspr4.so may be wrong:

/usr/bin/ld -brtl -bnortllib -bM:SRE -bnoentry -bexpall -blibpath:/usr/lib:/lib -binitfini::_PR_Fini -o libnspr4.so ./prvrsion.o io/./prfdcach.o ... md/unix/./uxwrap.o md/unix/./aix.o   -lodm -lcfg -lpthreads -ldl -lC_r -lC -lc_r -lm /usr/lib/libc.a

I suspect the problematic one is /usr/lib/libc.a. We should also
be able to omit -lC_r -lC.
You need to log in before you can comment on or make changes to this bug.