Closed Bug 1363348 Opened 7 years ago Closed 7 years ago

network.standard-url.enable-rust=false is sometimes ignored

Categories

(Core :: Networking, defect)

defect
Not set
normal

Tracking

()

RESOLVED WONTFIX
Tracking Status
firefox-esr52 --- unaffected
firefox53 --- unaffected
firefox54 --- unaffected
firefox55 --- affected

People

(Reporter: jbeich, Unassigned)

References

Details

Bug 1324243 introduced a direct dependency on rust-url-capi instead of using RustURL wrapper.

$ hg import https://github.com/jbeich/gecko-dev/commit/97edad93c6b9.patch
$ echo "ac_add_options --disable-rust" >>.mozconfig
$ ./mach build
[...]
../../netwerk/base/Unified_cpp_netwerk_base3.o: In function `mozilla::net::nsStandardURL::BuildNormalizedSpec(char const*)':
objdir/netwerk/base/Unified_cpp_netwerk_base3.cpp:(.text+0x195c6): undefined reference to `rusturl_parse_ipv6addr'
/usr/bin/ld: ../../netwerk/base/Unified_cpp_netwerk_base3.o: relocation R_X86_64_PC32 against `rusturl_parse_ipv6addr' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Bad value
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
Ah, bug 1324243 comment 2 suggests the current behavior is intentional.
Status: NEW → RESOLVED
Closed: 7 years ago
Keywords: regression
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.