[Libreoffice-bugs] [Bug 124910] xmlsec: Build fails with error: ‘SEC_OID_SHA224’ undeclared (first use in this function); did you mean ‘SEC_OID_SHA384’?

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Mon Apr 29 14:25:46 UTC 2019


https://bugs.documentfoundation.org/show_bug.cgi?id=124910

--- Comment #9 from Paul Menzel <pmenzel+bugs.documentfoundation.org at molgen.mpg.de> ---
Building xmlsec directly, it looks like `nss.h` from the xulrunner installation
is used for some reason.


```
$ ./autogen.sh
$ ./configure
$ make V=1
[…]
Making all in nss
make[3]: Entering directory '/dev/shm/xmlsec/src/nss'
/bin/sh ../../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.
-I../..  -DPACKAGE=\"xmlsec1\" -I../../include -I../../include
-D__XMLSEC_FUNCTION__=__func__ -DXMLSEC_NO_SIZE_T -DXMLSEC_NO_GOST=1
-DXMLSEC_NO_GOST2012=1 -DXMLSEC_DL_LIBLTDL=1 -I/usr/include/xulrunner-1.9.2.16 
 -I/usr/include/xulrunner-1.9.2.16   -DXMLSEC_CRYPTO_NSS=1
-I/usr/include/libxml2   -I/usr/include/libxml2      -g -O2 -MT
libxmlsec1_nss_la-digests.lo -MD -MP -MF .deps/libxmlsec1_nss_la-digests.Tpo -c
-o libxmlsec1_nss_la-digests.lo `test -f 'digests.c' || echo './'`digests.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../.. -DPACKAGE=\"xmlsec1\"
-I../../include -I../../include -D__XMLSEC_FUNCTION__=__func__
-DXMLSEC_NO_SIZE_T -DXMLSEC_NO_GOST=1 -DXMLSEC_NO_GOST2012=1
-DXMLSEC_DL_LIBLTDL=1 -I/usr/include/xulrunner-1.9.2.16
-I/usr/include/xulrunner-1.9.2.16 -DXMLSEC_CRYPTO_NSS=1 -I/usr/include/libxml2
-I/usr/include/libxml2 -g -O2 -MT libxmlsec1_nss_la-digests.lo -MD -MP -MF
.deps/libxmlsec1_nss_la-digests.Tpo -c digests.c  -fPIC -DPIC -o
.libs/libxmlsec1_nss_la-digests.o
digests.c: In function 'xmlSecNssDigestInitialize':
digests.c:142:43: error: 'SEC_OID_SHA224' undeclared (first use in this
function); did you mean 'SEC_OID_SHA384'?
         ctx->digest = SECOID_FindOIDByTag(SEC_OID_SHA224);
                                           ^~~~~~~~~~~~~~
                                           SEC_OID_SHA384
digests.c:142:43: note: each undeclared identifier is reported only once for
each function it appears in
make[3]: *** [Makefile:648: libxmlsec1_nss_la-digests.lo] Error 1
```

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20190429/e7ee865a/attachment.html>


More information about the Libreoffice-bugs mailing list