Open Bug 1253904 Opened 9 years ago Updated 2 years ago

file libmozjs.so: required by ../../toolkit/library/libxul.so

Categories

(Firefox Build System :: General, defect)

38 Branch
x86
Other
defect

Tracking

(Not tracked)

UNCONFIRMED

People

(Reporter: richard.palo, Unassigned)

Details

User Agent: Mozilla/5.0 (X11; SunOS i86pc; rv:) Gecko/20160228 Firefox/ Build ID: 20160228150910 Steps to reproduce: seems I dropped the ball from (http://mozilla.6506.n7.nabble.com/35969-ld-warning-file-libmozjs-so-required-by-toolkit-library-libxul-so-not-found-td342265.html) after building libxul.so, there are issues building plugin-container and xpcshell where libmozjs.so (needed by libxul.so) isn't provided. One of the easier workarounds seems to be adding >SHARED_LIBS += $(DEPTH)/js/src/libmozjs.so after >SHARED_LIBS += $(DEPTH)/toolkit/library/libxul.so in the respective backend.mk since backend.mk is a generated file, what would be the "right" way to add libmozjs.so? Actual results: ld: warning: file libmozjs.so: required by ../../../toolkit/library/libxul.so, not found Undefined first referenced symbol in file JS::NewMapObject(JSContext*) ../../../toolkit/library/libxul.so ... ld: fatal: symbol referencing errors. No output written to xpcshell collect2: error: ld returned 1 exit status /tmp/pkgsrc/www/firefox38/work/mozilla-esr38/config/rules.mk:658: recipe for target 'xpcshell' failed Expected results: link should complete correctly. by the way, this is because on illumos (SunOS 5.11) with non-shared js, the following happens during link: > ld: fatal: relocation error: R_386_GOTOFF: file ../../js/src/Unified_cpp_js_src11.o: symbol vtable for JS::CustomAutoRooter: a GOT relative relocation must reference a local symbol > ld: fatal: relocation error: R_386_GOTOFF: file ../../js/src/Unified_cpp_js_src11.o: symbol vtable for JS::CustomAutoRooter: a GOT relative relocation must reference a local symbol > ld: fatal: relocation error: R_386_GOTOFF: file ../../js/src/Unified_cpp_js_src11.o: symbol vtable for JS::CustomAutoRooter: a GOT relative relocation must reference a local symbol > ld: fatal: relocation error: R_386_GOTOFF: file ../../js/src/Unified_cpp_js_src11.o: symbol vtable for JS::CustomAutoRooter: a GOT relative relocation must reference a local symbol > collect2: error: ld returned 1 exit status
OS: Unspecified → Other
Hardware: Unspecified → x86
Component: Untriaged → Build Config
Product: Firefox → Core
Product: Core → Firefox Build System
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.