GNOME Bugzilla – Bug 670794
phase build of nss fails with undefined symbol PR_AF_INET_SDP
Last modified: 2012-08-06 23:39:58 UTC
This affects the following files: nss-3.12.11/mozilla/security/nss/cmd/tstclnt/tstclnt.c nss-3.12.11/mozilla/security/nss/cmd/selfserv/selfserv.c nss-3.12.11/mozilla/security/nss/cmd/strsclnt/strsclnt.c selfserv.c line 1501: if (PR_GetEnv("NSS_USE_SDP")) { socketDomain = PR_AF_INET_SDP; } strsclnt.c line 1129: /* check if SDP is going to be used */ if (!PR_GetEnv("NSS_USE_SDP")) { socketDomain = addr.raw.family; } else { socketDomain = PR_AF_INET_SDP; } tstclnt.c line 707: /* check if SDP is going to be used */ if (!PR_GetEnv("NSS_USE_SDP")) { socketDomain = addr.raw.family; } else { socketDomain = PR_AF_INET_SDP; } Here is an example of an error message that appears: make[3]: Entering directory `/home/bobby/checkout/gnome/nss-3.12.11/mozilla/security/nss/cmd/selfserv' gcc -o Linux3.0_x86_64_glibc_PTH_64_OPT.OBJ/selfserv.o -c -O2 -ansi -D_POSIX_SOURCE -D_BSD_SOURCE -D_XOPEN_SOURCE -fPIC -DLINUX2_1 -Wall -Werror-implicit-function-declaration -Wno-switch -pipe -DLINUX -Dlinux -DHAVE_STRERROR -DXP_UNIX -DNSPR20 -UDEBUG -DNDEBUG -D_REENTRANT -DNSS_ENABLE_ECC -DUSE_UTIL_DIRECTLY -I/usr/include/nspr -I/home/bobby/checkout/gnome/nss-3.12.11/mozilla/dist/include -I../../../../dist/public/nss -I../../../../dist/private/nss -I../../../../dist/public/seccmd -I../../../../dist/public/dbm selfserv.c selfserv.c: In function ‘getBoundListenSocket’: selfserv.c:1501:24: error: ‘PR_AF_INET_SDP’ undeclared (first use in this function) selfserv.c:1501:24: note: each undeclared identifier is reported only once for each function it appears in make[3]: *** [Linux3.0_x86_64_glibc_PTH_64_OPT.OBJ/selfserv.o] Error 1 make[3]: Leaving directory `/home/bobby/checkout/gnome/nss-3.12.11/mozilla/security/nss/cmd/selfserv' make[2]: *** [libs] Error 2 make[2]: Leaving directory `/home/bobby/checkout/gnome/nss-3.12.11/mozilla/security/nss/cmd' make[1]: *** [libs] Error 2 make[1]: Leaving directory `/home/bobby/checkout/gnome/nss-3.12.11/mozilla/security/nss' make: *** [all] Error 2
Why is this a jhbuild error, and not an NSS error?
I could have reported the bug in the wrong place, and I apologize for that. Should I post it here? https://bugzilla.mozilla.org/buglist.cgi?product=NSS&component=Build&resolution=---
I can't reproduce the problem. The problem looks like nspr. Try 'jhbuild uninstall nspr' and clean and rebuild nspr. This bug may be worth reading: https://bugzilla.mozilla.org/show_bug.cgi?id=518078
Closing bug. Please reopen bug if this is still a problem.
I also had the error PR_AF_INET_SDP undeclared error when building nss. jhbuild had not built nspr before attempting to build nss. After building nspr with "jhbuild buildone nspr", nss could be built without error. I think the build order should be adjusted: it looks like nss depends on nspr.
(In reply to comment #5) > I think the build > order should be adjusted: it looks like nss depends on nspr. nss does depend on nspr [1]. [1] http://git.gnome.org/browse/jhbuild/tree/modulesets/gnome-suites-core-deps-3.6.modules#n862