Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#30275 - [nss|nspr] fatal error when including nss/pk11func.h header

Attached to Project: Arch Linux
Opened by Xyne (Xyne) - Wednesday, 13 June 2012, 03:03 GMT
Last edited by Jan de Groot (JGC) - Thursday, 14 June 2012, 22:18 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

The pk11func.h header is installed to /usr/include/nss/pk11func.h.
When including it in a source file, it throws a fatal error:

/usr/include/nss/pk11pub.h:39:21: fatal error: plarena.h: No such file or directory
compilation terminated.

plarena.h is located at /usr/include/nspr/plarena.h

I don't know what the best solution is, but it seems that the headers will need to be patched or moved.

Thanks.
This task depends upon

Closed by  Jan de Groot (JGC)
Thursday, 14 June 2012, 22:18 GMT
Reason for closing:  Not a bug
Comment by Jan de Groot (JGC) - Wednesday, 13 June 2012, 08:02 GMT
How do you include it in your source file?

$ pkg-config --cflags nss
-I/usr/include/nss -I/usr/include/nspr

It should be able to resolve the file, unless you didn't add nss/nspr cflags.

Loading...