On 07/26/2011 10:22 AM, florent ainardi wrote:
hi
i have just installed nss library and all dependencies (libc6, sqlite,
zlib1g ...... )
my program look like this
#include<nss/nss.h>
#include<nss/pk11pub.h>
that's all
when i launch the gcc command : gcc test.c -otest -lnss
i have more than hundred error but the firsts one are these
prtypes.h not found in nss directory
seccomon.h not found in nss directory
and also prlink.h, prlog.h, plarena.h plstr.h
does anyone can help me and tell me what package i forget to install
or have an idea
i also try to compile the sample2.c from the official website of
mozilla nss, and i have the same error
so i'm sure and forget something
O.K. some of this is a basic software development you should already
understand, not really an appropriate question for this list (also it's
not a bug).
Also, you don't need to CC all the mailing lists and newsgroups, the
redundant posts are generally not appreciated.
However, this is what you need to do, find the location where the
headers are installed and add -Ipath to the compile command where path
is the installed path. Read the compiler doc to understand the -I option.
If the headers aren't on your system then:
prtypes.h belongs the nspr package, not nss, nspr is a dependency of
nss, this is documented.
If you're installing using pre-built packages make sure you also install
the devel packages, those have the headers necessary for software
development (hence the devel suffix). For RPM based systems it would be
nspr-devel, nss-devel, nss-util-devel (because you need both nspr and nss).
Understanding where to find headers, how to install packages, etc. are
OS specific issues better dealt on a mailing list devoted to software
development on you're chosen OS.
Hope that helps and gets you started,
John
--
John Dennis <jden...@redhat.com>
Looking to carve out IT costs?
www.redhat.com/carveoutcosts/
--
dev-tech-crypto mailing list
dev-tech-crypto@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-tech-crypto