Closed Bug 1115944 Opened 5 years ago Closed 3 years ago

Cannot make libnssutil3 : unix.c:3049: undefined reference to `clock_gettime'

Categories

(Firefox Build System :: General, defect)

x86
Linux
defect
Not set

Tracking

(firefox52 fixed)

RESOLVED FIXED
mozilla52
Tracking Status
firefox52 --- fixed

People

(Reporter: linuxcbon, Assigned: glandium)

References

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (X11; Linux i686; rv:22.0) Gecko/20100101 Firefox/22.0 SeaMonkey/2.19
Build ID: 20130714085432

Steps to reproduce:

- download seamonkey-2.32b2.source.tar.bz2
- untar
- ./configure --disable-gstreamer
- make


Actual results:

make doesnt work

/root/comm-beta/dist/lib/libnspr4.a(unix.o): In function `_PR_UNIX_GetInterval2':
/root/comm-beta/mozilla/nsprpub/pr/src/md/unix/unix.c:3049: undefined reference to `clock_gettime'
collect2: ld returned 1 exit status
make[5]: *** [/root/comm-beta/security/nss/lib/util/libnssutil3.so] Error 1
make[5]: Leaving directory `/root/comm-beta/mozilla/security/nss/lib/util'
make[4]: *** [libs] Error 2
make[4]: Leaving directory `/root/comm-beta/mozilla/security/nss/lib'
make[3]: *** [libs-nss/lib] Error 2
make[3]: Leaving directory `/root/comm-beta/config/external/nss'
make[2]: *** [config/external/nss/target] Error 2
make[2]: Leaving directory `/root/comm-beta'
make[1]: *** [compile] Error 2
make[1]: Leaving directory `/root/comm-beta'
make: *** [default] Error 2
This can be closed, it was a bug in the OS.
Status: UNCONFIRMED → RESOLVED
Closed: 4 years ago
Resolution: --- → INVALID
This is actually a real bug. It was first described (afaik) in https://groups.google.com/d/msg/mozilla.dev.builds/Q2NgFd9l0PY/trT50kl0EeMJ

And, in fact, I just figured today why it's happening: there's a missing dependency between nss and nspr in root-deps.mk.
Status: RESOLVED → REOPENED
Ever confirmed: true
Product: SeaMonkey → Core
Resolution: INVALID → ---
Version: SeaMonkey 2.32 Branch → unspecified
Assignee: nobody → mh+mozilla
Presumably the patches in bug 1295937 would also fix this, then.
Comment on attachment 8807449 [details]
Bug 1115944 - Work around race condition between building NSPR and NSS.

https://reviewboard.mozilla.org/r/90582/#review90408

LGTM - ted, can you verify that bug 1295937 maintains this behavior if it fixes it in a different way? I didn't see this same change in your patches, but I might have missed it.
Attachment #8807449 - Flags: review?(mshal) → review+
ni?ted just so you see #c5.
Flags: needinfo?(ted)
Pushed by mh@glandium.org:
https://hg.mozilla.org/integration/autoland/rev/b439e504fc3e
Work around race condition between building NSPR and NSS. r=mshal
mshal: it works with those patches because the NSS build is no longer external--it emits Library objects for everything it builds, so the build system can order the dependencies appropriately.
Flags: needinfo?(ted)
https://hg.mozilla.org/mozilla-central/rev/b439e504fc3e
Status: REOPENED → RESOLVED
Closed: 4 years ago3 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla52
Depends on: 1315882
Product: Core → Firefox Build System
You need to log in before you can comment on or make changes to this bug.