After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 670794 - phase build of nss fails with undefined symbol PR_AF_INET_SDP
phase build of nss fails with undefined symbol PR_AF_INET_SDP
Status: RESOLVED NOTGNOME
Product: jhbuild
Classification: Infrastructure
Component: module sets
3.4.x
Other Linux
: Normal normal
: ---
Assigned To: Jhbuild maintainers
Jhbuild QA
Depends on:
Blocks:
 
 
Reported: 2012-02-25 16:04 UTC by R Ratliff
Modified: 2012-08-06 23:39 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description R Ratliff 2012-02-25 16:04:45 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
Comment 1 André Klapper 2012-02-26 10:27:41 UTC
Why is this a jhbuild error, and not an NSS error?
Comment 2 R Ratliff 2012-02-26 20:20:47 UTC
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=---
Comment 3 Craig Keogh 2012-02-26 22:51:20 UTC
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
Comment 4 Craig Keogh 2012-04-17 05:01:16 UTC
Closing bug. Please reopen bug if this is still a problem.
Comment 5 James Legg 2012-08-06 22:56:31 UTC
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.
Comment 6 Craig Keogh 2012-08-06 23:39:58 UTC
(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