Closed Bug 982761 Opened 10 years ago Closed 10 years ago

Duplicate symbol insanity::_1

Categories

(Core :: Security: PSM, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla30

People

(Reporter: st3fan, Assigned: st3fan)

References

Details

Attachments

(2 files, 1 obsolete file)

Unable to compile the unit tests in pkixder_tests.cpp because:

 0:03.18 duplicate symbol __ZN8insanity2_1E in:
 0:03.18 ../../security/manager/ssl/tests/gtest/pkixder_tests.o
 0:03.18 ../../security/certverifier/Unified_cpp_security_certverifier0.o
Comment on attachment 8389955 [details] [diff] [review]
982761-duplicate_symbol.patch

Review of attachment 8389955 [details] [diff] [review]:
-----------------------------------------------------------------

::: security/insanity/lib/pkixbind.cpp
@@ +19,5 @@
> +
> +namespace insanity {
> +
> +Placeholder1 _1;
> +  

Trailing whitespace.
Attachment #8389955 - Flags: review+
I rebased the patch on top of the current state of mozilla-inbound. This required moving the moz.build entry for pkixbind.cpp to insanity/moz.build. Also, I had to make the code in pkixbind.cpp conditional on _MSC_VER, because on MSVC we use the built-in std::bind implementation.
Attachment #8389955 - Attachment is obsolete: true
Attachment #8390910 - Flags: review+
mozilla-inbound is closed. Thanks!
Keywords: checkin-needed
Attached file Brian's .hgrc
Stefan, I'm sorry the patch got pushed with me as the author. Please see my .hgrc in this attachment for how you can configure Mercurial to add your username to your patches automatically (see the "username = ..." line).

Also, your patches will be easier to review if you use the following settings:

[defaults]
diff=-U 8 -p
qdiff=-U 8 -p
qnew = -U

[diff]
unified = 8
showfunc = true

Thanks for fixing this!
https://hg.mozilla.org/mozilla-central/rev/b753b98bcf55
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla30
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: