jstedfast / gmime

A C/C++ MIME creation and parser library with support for S/MIME, PGP, and Unix mbox spools.
GNU Lesser General Public License v2.1
111 stars 36 forks source link

3.2.11: build fails because missing gpg-error build dependencies check #122

Closed kloczek closed 2 years ago

kloczek commented 2 years ago

Looks like latest version depends on gpg-error:

[tkloczko@devel-g2v gmime-3.2.11]$ grep -r gpg-error
tests/Makefile.am:LDADDS = $(top_builddir)/gmime/libgmime-$(GMIME_API_VERSION).la -lgpg-error $(GLIB_LIBS)
tests/Makefile.am:test_pkcs7_LDADD = $(LDADDS) $(GPGME_PTHREAD_LIBS) -lgpg-error
tests/test-pkcs7.c:#include <gpg-error.h>
tests/test-pkcs7.c:#include <gpg-error.h>

Because of that build fails:

[tkloczko@devel-g2v gmime-3.2.11]$ make -k
make  all-recursive
make[1]: Entering directory '/home/tkloczko/rpmbuild/BUILD/gmime-3.2.11'
Making all in m4
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/gmime-3.2.11/m4'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/gmime-3.2.11/m4'
Making all in build
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/gmime-3.2.11/build'
Making all in vs2008
make[3]: Entering directory '/home/tkloczko/rpmbuild/BUILD/gmime-3.2.11/build/vs2008'
make[3]: Nothing to be done for 'all'.
make[3]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/gmime-3.2.11/build/vs2008'
Making all in vs2010
make[3]: Entering directory '/home/tkloczko/rpmbuild/BUILD/gmime-3.2.11/build/vs2010'
make[3]: Nothing to be done for 'all'.
make[3]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/gmime-3.2.11/build/vs2010'
Making all in vs2017
make[3]: Entering directory '/home/tkloczko/rpmbuild/BUILD/gmime-3.2.11/build/vs2017'
make[3]: Nothing to be done for 'all'.
make[3]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/gmime-3.2.11/build/vs2017'
make[3]: Entering directory '/home/tkloczko/rpmbuild/BUILD/gmime-3.2.11/build'
make[3]: Nothing to be done for 'all-am'.
make[3]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/gmime-3.2.11/build'
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/gmime-3.2.11/build'
Making all in util
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/gmime-3.2.11/util'
Making all in .
make[3]: Entering directory '/home/tkloczko/rpmbuild/BUILD/gmime-3.2.11/util'
make[3]: Nothing to be done for 'all-am'.
make[3]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/gmime-3.2.11/util'
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/gmime-3.2.11/util'
Making all in gmime
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/gmime-3.2.11/gmime'
Making all in .
make[3]: Entering directory '/home/tkloczko/rpmbuild/BUILD/gmime-3.2.11/gmime'
make[3]: Nothing to be done for 'all-am'.
make[3]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/gmime-3.2.11/gmime'
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/gmime-3.2.11/gmime'
Making all in tests
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/gmime-3.2.11/tests'
Making all in .
make[3]: Entering directory '/home/tkloczko/rpmbuild/BUILD/gmime-3.2.11/tests'
../doltlibtool  --tag=CC   --mode=link /usr/bin/gcc  -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -fno-strict-aliasing  -Wl,-z,relro -Wl,--as-needed -Wl,--gc-sections -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -flto=auto -flto-partition=none -fuse-linker-plugin -Wl,--build-id=sha1 -o test-iconv test-iconv.o testsuite.o ../gmime/libgmime-3.0.la -lgpg-error -Wl,--export-dynamic -lgmodule-2.0 -lglib-2.0 -lgthread-2.0 -pthread -lglib-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0  -lz  -lidn2
libtool: link: /usr/bin/gcc -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -fno-strict-aliasing -Wl,-z -Wl,relro -Wl,--as-needed -Wl,--gc-sections -Wl,-z -Wl,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -flto=auto -flto-partition=none -fuse-linker-plugin -Wl,--build-id=sha1 -o .libs/test-iconv test-iconv.o testsuite.o -Wl,--export-dynamic -pthread  ../gmime/.libs/libgmime-3.0.so -lgpg-error -lgmodule-2.0 -lgthread-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0 -lz -lidn2 -pthread
/usr/bin/ld: cannot find -lgpg-error
collect2: error: ld returned 1 exit status
make[3]: *** [Makefile:720: test-iconv] Error 1
../doltlibtool  --tag=CC   --mode=link /usr/bin/gcc  -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -fno-strict-aliasing  -Wl,-z,relro -Wl,--as-needed -Wl,--gc-sections -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -flto=auto -flto-partition=none -fuse-linker-plugin -Wl,--build-id=sha1 -o test-streams test-streams.o testsuite.o ../gmime/libgmime-3.0.la -lgpg-error -Wl,--export-dynamic -lgmodule-2.0 -lglib-2.0 -lgthread-2.0 -pthread -lglib-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0  -lz  -lidn2
libtool: link: /usr/bin/gcc -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -fno-strict-aliasing -Wl,-z -Wl,relro -Wl,--as-needed -Wl,--gc-sections -Wl,-z -Wl,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -flto=auto -flto-partition=none -fuse-linker-plugin -Wl,--build-id=sha1 -o .libs/test-streams test-streams.o testsuite.o -Wl,--export-dynamic -pthread  ../gmime/.libs/libgmime-3.0.so -lgpg-error -lgmodule-2.0 -lgthread-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0 -lz -lidn2 -pthread
/usr/bin/ld: cannot find -lgpg-error
collect2: error: ld returned 1 exit status
make[3]: *** [Makefile:760: test-streams] Error 1
../doltlibtool  --tag=CC   --mode=link /usr/bin/gcc  -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -fno-strict-aliasing  -Wl,-z,relro -Wl,--as-needed -Wl,--gc-sections -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -flto=auto -flto-partition=none -fuse-linker-plugin -Wl,--build-id=sha1 -o test-cat test-cat.o testsuite.o ../gmime/libgmime-3.0.la -lgpg-error -Wl,--export-dynamic -lgmodule-2.0 -lglib-2.0 -lgthread-2.0 -pthread -lglib-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0  -lz  -lidn2
libtool: link: /usr/bin/gcc -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -fno-strict-aliasing -Wl,-z -Wl,relro -Wl,--as-needed -Wl,--gc-sections -Wl,-z -Wl,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -flto=auto -flto-partition=none -fuse-linker-plugin -Wl,--build-id=sha1 -o .libs/test-cat test-cat.o testsuite.o -Wl,--export-dynamic -pthread  ../gmime/.libs/libgmime-3.0.so -lgpg-error -lgmodule-2.0 -lgthread-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0 -lz -lidn2 -pthread
/usr/bin/ld: cannot find -lgpg-error
collect2: error: ld returned 1 exit status
make[3]: *** [Makefile:700: test-cat] Error 1
../doltlibtool  --tag=CC   --mode=link /usr/bin/gcc  -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -fno-strict-aliasing  -Wl,-z,relro -Wl,--as-needed -Wl,--gc-sections -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -flto=auto -flto-partition=none -fuse-linker-plugin -Wl,--build-id=sha1 -o test-encodings test-encodings.o testsuite.o ../gmime/libgmime-3.0.la -lgpg-error -Wl,--export-dynamic -lgmodule-2.0 -lglib-2.0 -lgthread-2.0 -pthread -lglib-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0  -lz  -lidn2
libtool: link: /usr/bin/gcc -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -fno-strict-aliasing -Wl,-z -Wl,relro -Wl,--as-needed -Wl,--gc-sections -Wl,-z -Wl,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -flto=auto -flto-partition=none -fuse-linker-plugin -Wl,--build-id=sha1 -o .libs/test-encodings test-encodings.o testsuite.o -Wl,--export-dynamic -pthread  ../gmime/.libs/libgmime-3.0.so -lgpg-error -lgmodule-2.0 -lgthread-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0 -lz -lidn2 -pthread
/usr/bin/ld: cannot find -lgpg-error
collect2: error: ld returned 1 exit status
make[3]: *** [Makefile:704: test-encodings] Error 1
../doltlibtool  --tag=CC   --mode=link /usr/bin/gcc  -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -fno-strict-aliasing  -Wl,-z,relro -Wl,--as-needed -Wl,--gc-sections -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -flto=auto -flto-partition=none -fuse-linker-plugin -Wl,--build-id=sha1 -o test-filters test-filters.o testsuite.o ../gmime/libgmime-3.0.la -lgpg-error -Wl,--export-dynamic -lgmodule-2.0 -lglib-2.0 -lgthread-2.0 -pthread -lglib-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0  -lz  -lidn2
libtool: link: /usr/bin/gcc -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -fno-strict-aliasing -Wl,-z -Wl,relro -Wl,--as-needed -Wl,--gc-sections -Wl,-z -Wl,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -flto=auto -flto-partition=none -fuse-linker-plugin -Wl,--build-id=sha1 -o .libs/test-filters test-filters.o testsuite.o -Wl,--export-dynamic -pthread  ../gmime/.libs/libgmime-3.0.so -lgpg-error -lgmodule-2.0 -lgthread-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0 -lz -lidn2 -pthread
/usr/bin/ld: cannot find -lgpg-error
collect2: error: ld returned 1 exit status
make[3]: *** [Makefile:708: test-filters] Error 1
../doltlibtool  --tag=CC   --mode=link /usr/bin/gcc  -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -fno-strict-aliasing  -Wl,-z,relro -Wl,--as-needed -Wl,--gc-sections -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -flto=auto -flto-partition=none -fuse-linker-plugin -Wl,--build-id=sha1 -o test-headers test-headers.o testsuite.o ../gmime/libgmime-3.0.la -lgpg-error -Wl,--export-dynamic -lgmodule-2.0 -lglib-2.0 -lgthread-2.0 -pthread -lglib-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0  -lz  -lidn2
libtool: link: /usr/bin/gcc -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -fno-strict-aliasing -Wl,-z -Wl,relro -Wl,--as-needed -Wl,--gc-sections -Wl,-z -Wl,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -flto=auto -flto-partition=none -fuse-linker-plugin -Wl,--build-id=sha1 -o .libs/test-headers test-headers.o testsuite.o -Wl,--export-dynamic -pthread  ../gmime/.libs/libgmime-3.0.so -lgpg-error -lgmodule-2.0 -lgthread-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0 -lz -lidn2 -pthread
/usr/bin/ld: cannot find -lgpg-error
collect2: error: ld returned 1 exit status
make[3]: *** [Makefile:712: test-headers] Error 1
../doltlibtool  --tag=CC   --mode=link /usr/bin/gcc  -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -fno-strict-aliasing  -Wl,-z,relro -Wl,--as-needed -Wl,--gc-sections -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -flto=auto -flto-partition=none -fuse-linker-plugin -Wl,--build-id=sha1 -o test-mime-part test-mime-part.o testsuite.o ../gmime/libgmime-3.0.la -lgpg-error -Wl,--export-dynamic -lgmodule-2.0 -lglib-2.0 -lgthread-2.0 -pthread -lglib-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0  -lz  -lidn2
libtool: link: /usr/bin/gcc -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -fno-strict-aliasing -Wl,-z -Wl,relro -Wl,--as-needed -Wl,--gc-sections -Wl,-z -Wl,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -flto=auto -flto-partition=none -fuse-linker-plugin -Wl,--build-id=sha1 -o .libs/test-mime-part test-mime-part.o testsuite.o -Wl,--export-dynamic -pthread  ../gmime/.libs/libgmime-3.0.so -lgpg-error -lgmodule-2.0 -lgthread-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0 -lz -lidn2 -pthread
/usr/bin/ld: cannot find -lgpg-error
collect2: error: ld returned 1 exit status
make[3]: *** [Makefile:732: test-mime-part] Error 1
../doltlibtool  --tag=CC   --mode=link /usr/bin/gcc  -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -fno-strict-aliasing  -Wl,-z,relro -Wl,--as-needed -Wl,--gc-sections -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -flto=auto -flto-partition=none -fuse-linker-plugin -Wl,--build-id=sha1 -o test-partial test-partial.o testsuite.o ../gmime/libgmime-3.0.la -lgpg-error -Wl,--export-dynamic -lgmodule-2.0 -lglib-2.0 -lgthread-2.0 -pthread -lglib-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0  -lz  -lidn2
libtool: link: /usr/bin/gcc -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -fno-strict-aliasing -Wl,-z -Wl,relro -Wl,--as-needed -Wl,--gc-sections -Wl,-z -Wl,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -flto=auto -flto-partition=none -fuse-linker-plugin -Wl,--build-id=sha1 -o .libs/test-partial test-partial.o testsuite.o -Wl,--export-dynamic -pthread  ../gmime/.libs/libgmime-3.0.so -lgpg-error -lgmodule-2.0 -lgthread-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0 -lz -lidn2 -pthread
/usr/bin/ld: cannot find -lgpg-error
collect2: error: ld returned 1 exit status
make[3]: *** [Makefile:740: test-partial] Error 1
../doltlibtool  --tag=CC   --mode=link /usr/bin/gcc  -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -fno-strict-aliasing  -Wl,-z,relro -Wl,--as-needed -Wl,--gc-sections -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -flto=auto -flto-partition=none -fuse-linker-plugin -Wl,--build-id=sha1 -o test-mbox test-mbox.o testsuite.o ../gmime/libgmime-3.0.la -lgpg-error -Wl,--export-dynamic -lgmodule-2.0 -lglib-2.0 -lgthread-2.0 -pthread -lglib-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0  -lz  -lidn2
libtool: link: /usr/bin/gcc -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -fno-strict-aliasing -Wl,-z -Wl,relro -Wl,--as-needed -Wl,--gc-sections -Wl,-z -Wl,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -flto=auto -flto-partition=none -fuse-linker-plugin -Wl,--build-id=sha1 -o .libs/test-mbox test-mbox.o testsuite.o -Wl,--export-dynamic -pthread  ../gmime/.libs/libgmime-3.0.so -lgpg-error -lgmodule-2.0 -lgthread-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0 -lz -lidn2 -pthread
/usr/bin/ld: cannot find -lgpg-error
collect2: error: ld returned 1 exit status
make[3]: *** [Makefile:724: test-mbox] Error 1
../doltlibtool  --tag=CC   --mode=link /usr/bin/gcc  -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -fno-strict-aliasing  -Wl,-z,relro -Wl,--as-needed -Wl,--gc-sections -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -flto=auto -flto-partition=none -fuse-linker-plugin -Wl,--build-id=sha1 -o test-autocrypt test-autocrypt.o testsuite.o ../gmime/libgmime-3.0.la -lgpg-error -Wl,--export-dynamic -lgmodule-2.0 -lglib-2.0 -lgthread-2.0 -pthread -lglib-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0  -lz  -lidn2
libtool: link: /usr/bin/gcc -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -fno-strict-aliasing -Wl,-z -Wl,relro -Wl,--as-needed -Wl,--gc-sections -Wl,-z -Wl,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -flto=auto -flto-partition=none -fuse-linker-plugin -Wl,--build-id=sha1 -o .libs/test-autocrypt test-autocrypt.o testsuite.o -Wl,--export-dynamic -pthread  ../gmime/.libs/libgmime-3.0.so -lgpg-error -lgmodule-2.0 -lgthread-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0 -lz -lidn2 -pthread
/usr/bin/ld: cannot find -lgpg-error
collect2: error: ld returned 1 exit status
make[3]: *** [Makefile:692: test-autocrypt] Error 1
../doltlibtool  --tag=CC   --mode=link /usr/bin/gcc  -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -fno-strict-aliasing  -Wl,-z,relro -Wl,--as-needed -Wl,--gc-sections -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -flto=auto -flto-partition=none -fuse-linker-plugin -Wl,--build-id=sha1 -o test-mime test-mime.o testsuite.o ../gmime/libgmime-3.0.la -lgpg-error -Wl,--export-dynamic -lgmodule-2.0 -lglib-2.0 -lgthread-2.0 -pthread -lglib-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0  -lz  -lidn2
libtool: link: /usr/bin/gcc -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -fno-strict-aliasing -Wl,-z -Wl,relro -Wl,--as-needed -Wl,--gc-sections -Wl,-z -Wl,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -flto=auto -flto-partition=none -fuse-linker-plugin -Wl,--build-id=sha1 -o .libs/test-mime test-mime.o testsuite.o -Wl,--export-dynamic -pthread  ../gmime/.libs/libgmime-3.0.so -lgpg-error -lgmodule-2.0 -lgthread-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0 -lz -lidn2 -pthread
/usr/bin/ld: cannot find -lgpg-error
collect2: error: ld returned 1 exit status
make[3]: *** [Makefile:728: test-mime] Error 1
../doltlibtool  --tag=CC   --mode=link /usr/bin/gcc  -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -fno-strict-aliasing  -Wl,-z,relro -Wl,--as-needed -Wl,--gc-sections -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -flto=auto -flto-partition=none -fuse-linker-plugin -Wl,--build-id=sha1 -o test-best test-best.o ../gmime/libgmime-3.0.la -lgpg-error -Wl,--export-dynamic -lgmodule-2.0 -lglib-2.0 -lgthread-2.0 -pthread -lglib-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0  -lz  -lidn2
libtool: link: /usr/bin/gcc -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -fno-strict-aliasing -Wl,-z -Wl,relro -Wl,--as-needed -Wl,--gc-sections -Wl,-z -Wl,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -flto=auto -flto-partition=none -fuse-linker-plugin -Wl,--build-id=sha1 -o .libs/test-best test-best.o -Wl,--export-dynamic -pthread  ../gmime/.libs/libgmime-3.0.so -lgpg-error -lgmodule-2.0 -lgthread-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0 -lz -lidn2 -pthread
/usr/bin/ld: cannot find -lgpg-error
collect2: error: ld returned 1 exit status
make[3]: *** [Makefile:696: test-best] Error 1
../doltlibtool  --tag=CC   --mode=link /usr/bin/gcc  -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -fno-strict-aliasing  -Wl,-z,relro -Wl,--as-needed -Wl,--gc-sections -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -flto=auto -flto-partition=none -fuse-linker-plugin -Wl,--build-id=sha1 -o test-parser test-parser.o ../gmime/libgmime-3.0.la -lgpg-error -Wl,--export-dynamic -lgmodule-2.0 -lglib-2.0 -lgthread-2.0 -pthread -lglib-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0  -lz  -lidn2
libtool: link: /usr/bin/gcc -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -fno-strict-aliasing -Wl,-z -Wl,relro -Wl,--as-needed -Wl,--gc-sections -Wl,-z -Wl,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -flto=auto -flto-partition=none -fuse-linker-plugin -Wl,--build-id=sha1 -o .libs/test-parser test-parser.o -Wl,--export-dynamic -pthread  ../gmime/.libs/libgmime-3.0.so -lgpg-error -lgmodule-2.0 -lgthread-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0 -lz -lidn2 -pthread
/usr/bin/ld: cannot find -lgpg-error
collect2: error: ld returned 1 exit status
make[3]: *** [Makefile:736: test-parser] Error 1
../doltlibtool  --tag=CC   --mode=link /usr/bin/gcc  -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -fno-strict-aliasing  -Wl,-z,relro -Wl,--as-needed -Wl,--gc-sections -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -flto=auto -flto-partition=none -fuse-linker-plugin -Wl,--build-id=sha1 -o test-html test-html.o ../gmime/libgmime-3.0.la -lgpg-error -Wl,--export-dynamic -lgmodule-2.0 -lglib-2.0 -lgthread-2.0 -pthread -lglib-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0  -lz  -lidn2
libtool: link: /usr/bin/gcc -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -fno-strict-aliasing -Wl,-z -Wl,relro -Wl,--as-needed -Wl,--gc-sections -Wl,-z -Wl,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -flto=auto -flto-partition=none -fuse-linker-plugin -Wl,--build-id=sha1 -o .libs/test-html test-html.o -Wl,--export-dynamic -pthread  ../gmime/.libs/libgmime-3.0.so -lgpg-error -lgmodule-2.0 -lgthread-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0 -lz -lidn2 -pthread
/usr/bin/ld: cannot find -lgpg-error
collect2: error: ld returned 1 exit status
make[3]: *** [Makefile:716: test-html] Error 1
make[3]: Target 'all-am' not remade because of errors.
make[3]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/gmime-3.2.11/tests'
make[2]: *** [Makefile:828: all-recursive] Error 1
make[2]: Target 'all' not remade because of errors.
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/gmime-3.2.11/tests'
Making all in docs
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/gmime-3.2.11/docs'
Making all in reference
make[3]: Entering directory '/home/tkloczko/rpmbuild/BUILD/gmime-3.2.11/docs/reference'
make[3]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/gmime-3.2.11/docs/reference'
Making all in tutorial
make[3]: Entering directory '/home/tkloczko/rpmbuild/BUILD/gmime-3.2.11/docs/tutorial'
make[3]: Nothing to be done for 'all'.
make[3]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/gmime-3.2.11/docs/tutorial'
make[3]: Entering directory '/home/tkloczko/rpmbuild/BUILD/gmime-3.2.11/docs'
make[3]: Nothing to be done for 'all-am'.
make[3]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/gmime-3.2.11/docs'
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/gmime-3.2.11/docs'
Making all in examples
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/gmime-3.2.11/examples'
Making all in .
make[3]: Entering directory '/home/tkloczko/rpmbuild/BUILD/gmime-3.2.11/examples'
make[3]: Nothing to be done for 'all-am'.
make[3]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/gmime-3.2.11/examples'
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/gmime-3.2.11/examples'
Making all in tools
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/gmime-3.2.11/tools'
Making all in .
make[3]: Entering directory '/home/tkloczko/rpmbuild/BUILD/gmime-3.2.11/tools'
make[3]: Nothing to be done for 'all-am'.
make[3]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/gmime-3.2.11/tools'
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/gmime-3.2.11/tools'
Making all in .
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/gmime-3.2.11'
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/gmime-3.2.11'
make[1]: *** [Makefile:544: all-recursive] Error 1
make[1]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/gmime-3.2.11'
make: *** [Makefile:451: all] Error 2
jstedfast commented 2 years ago

Fixed

kloczek commented 2 years ago

Issue still is not fixed because there is no dependency checking for gpg-error in configure.ac

kloczek commented 2 years ago

Here is the patch which I'm using now which as well modernises use pkg-config

--- a/configure.ac~     2022-06-04 12:57:15.000000000 +0000
+++ b/configure.ac      2022-06-04 14:24:15.731329956 +0000
@@ -283,21 +283,11 @@
 esac

 dnl
-dnl zlib support
+dnl checking pkg-config dependencies
 dnl
-PKG_CHECK_MODULES([ZLIB], [zlib], [found_zlib=yes], [found_zlib=no])
-AS_IF([test "x$found_zlib" = "xno"], [
-  AC_CHECK_LIB(z, inflate, [AC_CHECK_HEADER(zlib.h, found_zlib=yes)])
-  if test "x$found_zlib" = "xno" ; then
-    AC_MSG_ERROR([*** Working zlib library and headers not found ***])
-  fi
-  ZLIB_LIBS='-lz'
-])
-
-dnl We need at *least* glib 2.16.0 for GIO, 2.18.0 for g_set_error_literal, 2.32.0 for g_mutex_init, and 2.58 for g_time_zone_new_offset
-AM_PATH_GLIB_2_0(2.58.0, ,
-                AC_MSG_ERROR(Cannot find GLIB: Is pkg-config in your path?),
-                gobject gmodule gthread gio)
+PKG_CHECK_MODULES([ZLIB], [zlib])
+PKG_CHECK_MODULES([GPG_ERRPR], [gpg-error])
+PKG_CHECK_MODULES([GLIB], [glib-2.0 >= 2.58.0 gio-2.0])

 CFLAGS_save="$CFLAGS"
 CFLAGS="$CFLAGS -I$srcdir"
@@ -486,7 +476,7 @@
 AC_ARG_WITH(libidn, AS_HELP_STRING([--with-libidn=[DIR]],[Support IDN (needs GNU Libidn)]),
   libidn=$withval, libidn=yes)
 if test "$libidn" != "no" ; then
-  PKG_CHECK_MODULES(LIBIDN, libidn2 >= 2.0.0, [libidn=yes], [libidn=no])
+  PKG_CHECK_MODULES([LIBIDN], [libidn2 >= 2.0.0], [libidn=yes], [libidn=no])
   if test "$libidn" != "yes" ; then
     libidn=no
     AC_MSG_WARN([Libidn not found])
--- a/tests/Makefile.am~        2022-06-04 12:57:15.000000000 +0000
+++ b/tests/Makefile.am 2022-06-04 14:28:50.781442552 +0000
@@ -42,7 +42,8 @@
 noinst_PROGRAMS = $(AUTOMATED_TESTS) $(MANUAL_TESTS)

 DEPS = $(top_builddir)/gmime/libgmime-$(GMIME_API_VERSION).la
-LDADDS = $(top_builddir)/gmime/libgmime-$(GMIME_API_VERSION).la $(GLIB_LIBS)
+LDADDS = $(top_builddir)/gmime/libgmime-$(GMIME_API_VERSION).la $(GLIB_LIBS) $(GPG_ERROR_LIBS)
+AM_CFLAGS = $(GPG_ERROR_CFLAGS)

 test_best_SOURCES = test-best.c
 test_best_LDFLAGS =
--- a/tests/test-pkcs7.c
+++ b/tests/test-pkcs7.c
@@ -32,6 +32,7 @@

 #include <gmime/gmime.h>
 #include <gmime/gmime-pkcs7-context.h>
+#include <gpg-error.h>

 #include <gpg-error.h>

Please let me know if you want that as PR.

jstedfast commented 2 years ago

Your patch didn't work for me, but I committed a fixed up version

kloczek commented 2 years ago

OK I see your point. I've tested in my packaging procedure all up to 5cde40c7 and it is better solution than mine. Thank you 👍