Closed
Bug 1561953
Opened 5 years ago
Closed 5 years ago
Multiple definitions of libVersionPoint
Categories
(NSPR :: NSPR, defect, P1)
NSPR
NSPR
Tracking
(Not tracked)
RESOLVED
FIXED
4.22
People
(Reporter: eoger, Assigned: eoger)
References
Details
(Whiteboard: staticlink)
Attachments
(1 file)
When statically linking our lib with NSS, I'm getting the follow error on Linux:
/home/circleci/project/libs/desktop/linux-x86-64/nss/lib/libplc4.a(plvrsion.o): In function `libVersionPoint':
plvrsion.c:(.text+0x0): multiple definition of `libVersionPoint'
/home/circleci/project/libs/desktop/linux-x86-64/nss/lib/libnspr4.a(prvrsion.o):prvrsion.c:(.text+0x0): first defined here
/home/circleci/project/libs/desktop/linux-x86-64/nss/lib/libplds4.a(plvrsion.o): In function `libVersionPoint':
plvrsion.c:(.text+0x0): multiple definition of `libVersionPoint'
/home/circleci/project/libs/desktop/linux-x86-64/nss/lib/libnspr4.a(prvrsion.o):prvrsion.c:(.text+0x0): first defined here
collect2: error: ld returned 1 exit status
Comment 1•5 years ago
|
||
Looks like that's coming out of NSPR -- Did this just start happening?
Priority: -- → P1
Whiteboard: staticlink
Assignee | ||
Comment 2•5 years ago
•
|
||
I'm guessing it was always here, we haven't had a chance to test static linkage on Linux yet (on macOS I believe there's a bug in rustc where it doesn't tell you when there's duplicate symbols).
Assignee | ||
Comment 3•5 years ago
|
||
Updated•5 years ago
|
Attachment #9074872 -
Attachment description: Bug 1561953 - Add NO_PR_VERSION define. → Bug 1561953 - Filter out PR version files in static library build.
Assignee | ||
Comment 4•5 years ago
|
||
Mike I've updated the patch with a different approach as we discussed on Zoom, let us know if that's acceptable.
Updated•5 years ago
|
Flags: needinfo?(mh+mozilla)
Updated•5 years ago
|
Flags: needinfo?(mh+mozilla)
Assignee | ||
Comment 5•5 years ago
|
||
Patch updated with the review comments addressed
Flags: needinfo?(mh+mozilla)
Assignee | ||
Comment 6•5 years ago
|
||
Thanks for the review!
Updated•5 years ago
|
Component: Build → NSPR
Product: NSS → NSPR
QA Contact: jjones
Version: trunk → other
Comment 7•5 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → 4.22
You need to log in
before you can comment on or make changes to this bug.
Description
•