Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build failure due to deprecated 'gcry_thread_cbs' #5

Open
triaxx opened this issue Oct 6, 2019 · 0 comments
Open

Build failure due to deprecated 'gcry_thread_cbs' #5

triaxx opened this issue Oct 6, 2019 · 0 comments

Comments

@triaxx
Copy link
Contributor

triaxx commented Oct 6, 2019

I tried to build the last commit on NetBSD 8.0 with GnuTLS 3.6.10 and Gcript 1.8.5. I got the following error:

In file included from gcrypt_init.c:30:0:
/usr/pkgsrc/tags/HEAD/chat/jabberd/work/.buildlink/include/gcrypt.h:221:17: error: 'gcry_thread_cbs' is deprecated [-Werror=deprecated-declarations]
   static struct gcry_thread_cbs gcry_threads_pth = {                    \
                 ^
gcrypt_init.c:35:1: note: in expansion of macro 'GCRY_THREAD_OPTION_PTH_IMPL'
 GCRY_THREAD_OPTION_PTH_IMPL;
 ^
/usr/pkgsrc/tags/HEAD/chat/jabberd/work/.buildlink/include/gcrypt.h:211:8: note: declared here
 struct gcry_thread_cbs
        ^
cc1: all warnings being treated as errors
gmake[3]: *** [Makefile:570: gcrypt_init.lo] Error 1
gmake[3]: *** Waiting for unfinished jobs....
libtool: compile:  c++ -DLOCALEDIR=\"/usr/pkg/share/locale\" -DHAVE_CONFIG_H -I. -I.. -Ilib -I/usr/pkg/include -I/usr/pkg/include/glib-2.0 -I/usr/pkg/include/gio-unix-2.0 -I/usr/pkg/lib/glib-2.0/include -I/usr/include -Wall -Werror -I/usr/pkg/
include/glibmm-2.4 -I/usr/pkg/lib/glibmm-2.4/include -I/usr/pkg/include -I/usr/pkg/include/glib-2.0 -I/usr/pkg/lib/glib-2.0/include -I/usr/pkg/include/sigc++-2.0 -I/usr/pkg/lib/sigc++-2.0/include -I/usr/pkg/include -I/usr/pkg/include
/p11-kit-1 -O2 -D_FORTIFY_SOURCE=2 -I/usr/pkg/include -I/usr/pkg/include/glib-2.0 -I/usr/pkg/include/gio-unix-2.0 -I/usr/pkg/lib/glib-2.0/include -I/usr/include -c config.cc -o config.o >/dev/null 2>&1
gmake[3]: Leaving directory '/usr/pkgsrc/chat/jabberd/work/jabberd-b2b871eaf3f6455d7d37113ce23d6bc59c8da70f/jabberd14/jabberd'
gmake[2]: *** [Makefile:615: all-recursive] Error 1
gmake[2]: Leaving directory '/usr/pkgsrc/chat/jabberd/work/jabberd-b2b871eaf3f6455d7d37113ce23d6bc59c8da70f/jabberd14/jabberd'
gmake[1]: *** [Makefile:544: all-recursive] Error 1
gmake[1]: Leaving directory '/usr/pkgsrc/chat/jabberd/work/jabberd-b2b871eaf3f6455d7d37113ce23d6bc59c8da70f/jabberd14'
gmake: *** [Makefile:392: all] Error 2
*** Error code 2

Stop.
bmake[1]: stopped in /usr/pkgsrc/chat/jabberd
*** Error code 1

Stop.
bmake: stopped in /usr/pkgsrc/chat/jabberd

The following patch fix the issue:

--- configure.ac.orig 2019-09-29 18:37:09.000000000 +0000
+++ configure.ac
@@ -35,7 +35,7 @@ if test x-$developer = "x-yes" ; then
 else
     AC_MSG_RESULT(no)
 fi
-CPPFLAGS="$CPPFLAGS -Wall -Werror"
+CPPFLAGS="$CPPFLAGS -Wall -Werror -Wno-deprecated-declarations"
 
 dnl Check for programs
 AC_PROG_CC
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant