Subject: Re: devel/nss and Linux
To: Jeremy C. Reed <reed@reedmedia.net>
From: Matthew Luckie <mjl@luckie.org.nz>
List: tech-pkg
Date: 07/06/2005 07:59:09
> My first problems with devel/nss was many:
>
> /usr/bin/ld: cannot find -lplc4
> then
> I modified all these files to add -L to point to the lib/nspr:
>
> work/nss-3.9.2/mozilla/security/nss/Makefile
> work/nss-3.9.2/mozilla/security/nss/lib/ckfw/builtins/Makefile
> work/nss-3.9.2/mozilla/security/nss/lib/fortcrypt/swfort/pkcs11/Makefile
> work/nss-3.9.2/mozilla/security/nss/lib/nss/config.mk
> work/nss-3.9.2/mozilla/security/nss/lib/smime/config.mk
> work/nss-3.9.2/mozilla/security/nss/lib/softoken/config.mk
> work/nss-3.9.2/mozilla/security/nss/lib/ssl/config.mk
>
> libplc4 is at work/.buildlink/lib/nspr/libplc4.so but no -L was point to
> it.
>
> Is there some way to use BUILDLINK_TRANSFORM to add
> -L${BUILDLINK_PREFIX.nspr}/lib/nspr when ever -lplc4 is used?
i don't know how to fix the above problem, without having a linux
machine myself. if you have a patch for this, open a PR.
> The second problem was that pkgsrc Makefile assumes the files to be
> installed are at ${OPSYS}${OS_VERSION}_OPT.OBJ (Linux2.6.9_OPT.OBJ), but
> on my system they were at Linux2.6_x86_glibc_PTH_OPT.OBJ.
I have a fair idea on how to fix this. but it isn't pretty. the nss
build system is really unpleasant and I doubt nss even compiles on
FreeBSD with pkgsrc (although I have not had a bug report about it).
so if you take the first problem, i'll take the second. i'm in the
middle of writing my thesis at the moment, so it will be a day before i
get the time to sort this.