GNOME Bugzilla – Bug 344790
Add nss/nspr package names to pkgconfig requirements
Last modified: 2013-09-10 13:42:18 UTC
Oddly, I'm getting the following build problems, which looks like it's not finding the mozilla libraries. But I checked the first 3 or so and the are indeed installed in /opt/gnome2/lib/mozilla-1.7.13, so it's just not getting the necessary -L flags, I guess. /usr/bin/ld: warning: libplds4.so, needed by /opt/gnome2/lib/libedataserver-1.2.so, not found (try using -rpath or -rpath-link) /usr/bin/ld: warning: libplc4.so, needed by /opt/gnome2/lib/libedataserver-1.2.so, not found (try using -rpath or -rpath-link) /usr/bin/ld: warning: libnspr4.so, needed by /opt/gnome2/lib/libedataserver-1.2.so, not found (try using -rpath or -rpath-link) /usr/bin/ld: warning: libnss3.so, needed by /opt/gnome2/lib/libcamel-1.2.so.0, not found (try using -rpath or -rpath-link) /usr/bin/ld: warning: libsmime3.so, needed by /opt/gnome2/lib/libcamel-1.2.so.0, not found (try using -rpath or -rpath-link) /usr/bin/ld: warning: libssl3.so, needed by /opt/gnome2/lib/libcamel-1.2.so.0, not found (try using -rpath or -rpath-link) /usr/bin/ld: warning: libsoftokn3.so, needed by /opt/gnome2/lib/libcamel-1.2.so.0, not found (try using -rpath or -rpath-link) /opt/gnome2/lib/libcamel-1.2.so.0: undefined reference to `NSS_NoDB_Init@NSS_3.2' /opt/gnome2/lib/libcamel-1.2.so.0: undefined reference to `NSS_InitReadWrite@NSS_3.2' /opt/gnome2/lib/libcamel-1.2.so.0: undefined reference to `PR_Cleanup' /opt/gnome2/lib/libcamel-1.2.so.0: undefined reference to `NSS_SetDomesticPolicy@NSS_3.2' /opt/gnome2/lib/libedataserver-1.2.so: undefined reference to `PR_Poll' /opt/gnome2/lib/libedataserver-1.2.so: undefined reference to `PR_Close' /opt/gnome2/lib/libcamel-1.2.so.0: undefined reference to `PR_Init' /opt/gnome2/lib/libedataserver-1.2.so: undefined reference to `PR_Read' /opt/gnome2/lib/libcamel-1.2.so.0: undefined reference to `SSL_OptionSetDefault@NSS_3.2' /opt/gnome2/lib/libedataserver-1.2.so: undefined reference to `PR_GetError' /opt/gnome2/lib/libedataserver-1.2.so: undefined reference to `PR_CreatePipe' /opt/gnome2/lib/libedataserver-1.2.so: undefined reference to `PR_Write' /opt/gnome2/lib/libcamel-1.2.so.0: undefined reference to `NSS_Shutdown@NSS_3.2' collect2: ld returned 1 exit status make[2]: *** [bug-buddy] Error 1 make[2]: Leaving directory `/floss/building/gnome/bug-buddy/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/floss/building/gnome/bug-buddy' make: *** [all] Error 2
could this be a problem with eds .pc file not setting it correctly?
Created attachment 67291 [details] [review] Include the mozilla libraries so builds of apps depending on eds don't break
(In reply to comment #1) > could this be a problem with eds .pc file not setting it correctly? Indeed it is; just attached a patch that fixes it for me. Reassigning.
Adding harish to Cc.
libebook doesn't depend on mozilla libraries.
patch should be against libedataserver and not addressbook/libebook, yepp.
fixing patch status; elijah and me discussed this directly at the guadec bug day.
elijah, any news on this?
Sorry, been swamped with lots of other work and I've been unable to get back to everything. I'll try to get to it this next week; especially since it should take <5 min. (If anyone else wants to update as per comment 6, they should feel free; it'll be really easy..)
Created attachment 73171 [details] [review] patch against libedataserver instead of addressbook/libebook, as Andre pointed out Well, it looks like no one else wanted to tackle this, so here 'tis.
harish: *poke*
And should it be mozilla-nspr/mozilla-nss? Fedora packages them as nspr and nss respectively...
Good point, Kjartan.
It should probably be set to $mozilla_nspr and $mozilla_nss which are set to the corrent pkg-config name in configure.in. Also camel's .pc needs the fix too: http://jhbuild.bxlug.be/builds/2007-02-09-0003/logs/bug-buddy/#build http://jhbuild.bxlug.be/builds/2007-02-09-0003/logs/evolution-webcal/#build And for completeness I'm guessing evolution-data-server.pc should also have it.
*** Bug 430019 has been marked as a duplicate of this bug. ***
*** Bug 348852 has been marked as a duplicate of this bug. ***
Also see bug 356774.
Bumping version to a stable release.
Fixed on master. This shouldn't have taken 3 years to get to... http://git.gnome.org/cgit/evolution-data-server/commit/?id=7330f2e1d19eee3cfbf36a4eae397463fbdc1e32