--- Begin Message ---
- To: Debian Bug Tracking System <submit@bugs.debian.org>
- Subject: opencryptoki: FTBFS on GNU/kFreeBSD
- From: Cyril Brulebois <kibi@debian.org>
- Date: Fri, 04 Dec 2009 05:06:29 +0100
- Message-id: <20091204040629.31151.33184.reportbug@localhost.localdomain>
Package: opencryptoki
Version: 2.2.8+dfsg-3
Severity: important
User: debian-bsd@lists.debian.org
Usertags: kfreebsd
Hi,
your package FTBFS on GNU/kFreeBSD due to some includes: linux/limits.h
isn't found, PATH_MAX is not defined, etc.
The attached prospective patch fixes that in several files, but isn't
sufficient to get the package built (hence my not tagging it “patch”).
The build log now ends with:
| gcc -DPACKAGE_NAME=\"openCryptoki\" -DPACKAGE_TARNAME=\"opencryptoki\" -DPACKAGE_VERSION=\"2.2.6\" -DPACKAGE_STRING=\"openCryptoki\ 2.2.6\" -DPACKAGE_BUGREPORT=\"opencryptoki-tech@lists.sourceforge.net\" -DPACKAGE=\"opencryptoki\" -DVERSION=\"2.2.6\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1 -DHAVE_LIMITS_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_FILE_H=1 -DHAVE_SYSLOG_H=1 -DHAVE_UNISTD_H=1 -DHAVE_ALLOCA_H=1 -DHAVE_ALLOCA=1 -DHAVE_STRFTIME=1 -DHAVE_VPRINTF=1 -DHAVE_GETCWD=1 -I. -DSPINXPL -DPROGRAM_NAME=\"pkcsslotd-err.o\" -DNOODM -DNODAE -I../. -I../../include/pkcs11 -I../../include/pkcs11/stdll -g -O2 -O2 -DPKCS64 -DCONFIG_PATH=\"/var/lib/opencryptoki\" -DSBIN_PATH=\"/usr/sbin\" -DLIB_PATH=\"/usr/lib/opencryptoki\" -D_XOPEN_SOURCE=500 -c -o pkcsslotd-err.o
`test -f 'err.c' || echo './'`err.c
| err.c:334: error: 'ECHRNG' undeclared here (not in a function)
| err.c:335: error: 'EL2NSYNC' undeclared here (not in a function)
| err.c:336: error: 'EL3HLT' undeclared here (not in a function)
| err.c:337: error: 'EL3RST' undeclared here (not in a function)
| err.c:338: error: 'ELNRNG' undeclared here (not in a function)
| err.c:339: error: 'EUNATCH' undeclared here (not in a function)
| err.c:340: error: 'ENOCSI' undeclared here (not in a function)
| err.c:341: error: 'EL2HLT' undeclared here (not in a function)
| err.c:372: error: 'ERESTART' undeclared here (not in a function)
| err.c:383: error: 'ENOSR' undeclared here (not in a function)
| err.c:384: error: 'ETIME' undeclared here (not in a function)
| err.c:387: error: 'ENODATA' undeclared here (not in a function)
| err.c:388: error: 'ENOSTR' undeclared here (not in a function)
| err.c:427: error: 'SIGPWR' undeclared here (not in a function)
| err.c:427: error: initializer element is not constant
| err.c:427: error: (near initialization for 'SignalInfo[25].Code')
| make[3]: *** [pkcsslotd-err.o] Error 1
Using some #ifdef around those variables would probably fix it, but I'm
not sure it's the way to go. Opening this bug to keep track of the
limits.h thingy at the very least.
Mraw,
KiBi.
--- a/usr/include/pkcs11/apictl.h
+++ b/usr/include/pkcs11/apictl.h
@@ -296,7 +296,11 @@
#include <pkcs11types.h>
+#ifdef linux
#include <linux/limits.h>
+#else
+#include <limits.h>
+#endif
#include <local_types.h>
#include <stdll.h>
#include <slotmgr.h>
--- a/usr/include/pkcs11/slotmgr.h
+++ b/usr/include/pkcs11/slotmgr.h
@@ -301,7 +301,11 @@
#include <pkcs11types.h>
+#ifdef linux
#include <linux/limits.h>
+#else
+#include <limits.h>
+#endif
#include <local_types.h>
#include <pthread.h>
--- a/usr/include/pkcs11/stdll.h
+++ b/usr/include/pkcs11/stdll.h
@@ -302,7 +302,11 @@
#include <pkcs11types.h>
+#ifdef linux
#include <linux/limits.h>
+#else
+#include <limits.h>
+#endif
#include <local_types.h>
#include <slotmgr.h>
--- a/usr/sbin/pkcsslotd/pkcsslotd.h
+++ b/usr/sbin/pkcsslotd/pkcsslotd.h
@@ -353,7 +353,11 @@
#include <nl_types.h>
#include <sys/ipc.h>
+#ifdef linux
#include <linux/limits.h>
+#else
+#include <limits.h>
+#endif
#include <sys/shm.h>
#include <sys/stat.h>
#include <sys/types.h>
--- End Message ---
--- Begin Message ---
- To: 559405-close@bugs.debian.org
- Subject: Bug#559405: fixed in opencryptoki 2.3.1+dfsg-1
- From: Johann Felix Soden <johfel@gmx.de>
- Date: Sun, 05 Jun 2011 10:32:35 +0000
- Message-id: <E1QTAdH-0007Fa-Q3@franck.debian.org>
Source: opencryptoki
Source-Version: 2.3.1+dfsg-1
We believe that the bug you reported is fixed in the latest version of
opencryptoki, which is due to be installed in the Debian FTP archive:
libopencryptoki-dev_2.3.1+dfsg-1_amd64.deb
to main/o/opencryptoki/libopencryptoki-dev_2.3.1+dfsg-1_amd64.deb
libopencryptoki0_2.3.1+dfsg-1_amd64.deb
to main/o/opencryptoki/libopencryptoki0_2.3.1+dfsg-1_amd64.deb
opencryptoki-dbg_2.3.1+dfsg-1_amd64.deb
to main/o/opencryptoki/opencryptoki-dbg_2.3.1+dfsg-1_amd64.deb
opencryptoki_2.3.1+dfsg-1.debian.tar.gz
to main/o/opencryptoki/opencryptoki_2.3.1+dfsg-1.debian.tar.gz
opencryptoki_2.3.1+dfsg-1.dsc
to main/o/opencryptoki/opencryptoki_2.3.1+dfsg-1.dsc
opencryptoki_2.3.1+dfsg-1_amd64.deb
to main/o/opencryptoki/opencryptoki_2.3.1+dfsg-1_amd64.deb
opencryptoki_2.3.1+dfsg.orig.tar.gz
to main/o/opencryptoki/opencryptoki_2.3.1+dfsg.orig.tar.gz
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to 559405@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Johann Felix Soden <johfel@gmx.de> (supplier of updated opencryptoki package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Format: 1.8
Date: Sun, 05 Jun 2011 11:22:04 +0200
Source: opencryptoki
Binary: opencryptoki opencryptoki-dbg libopencryptoki0 libopencryptoki-dev
Architecture: source amd64
Version: 2.3.1+dfsg-1
Distribution: unstable
Urgency: low
Maintainer: Debian QA Group <packages@qa.debian.org>
Changed-By: Johann Felix Soden <johfel@gmx.de>
Description:
libopencryptoki-dev - PKCS#11 implementation (development)
libopencryptoki0 - PKCS#11 implementation (library)
opencryptoki - PKCS#11 implementation (daemon)
opencryptoki-dbg - PKCS#11 implementation (debug)
Closes: 559405 570527
Changes:
opencryptoki (2.3.1+dfsg-1) unstable; urgency=low
.
* QA upload.
.
[ Johann Felix Soden ]
* New upstream release
* Solving a FTBFS on GNU/kFreeBSD (Closes: #559405).
- thanks to Cyril Brulebois <kibi@debian.org> for the prospective patch.
* debian/rules:
- Do no install /etc/ld.so.conf.d/opencryptoki-i486.conf
- Creating instead soft-links in /usr/lib
* Depending on autoconf, automake, libtool because of new upstream build
procedure.
* Adding small man-page for pkcs_slot and missing whereis entries.
* Improving init script according to lintian.
* Fixing wrong year in debian/copyright.
* Adding get-orig-source target to debian/rules.
* Adding watch file.
* Removing the unnecessary "for Linux" from package descriptions.
.
[ Alessio Treglia ]
* Fix dangling symlinks in /usr/lib/pkcs11/ (Closes: #570527).
Checksums-Sha1:
5856a535b35bf0088452bae78e6650af7683bd9f 1220 opencryptoki_2.3.1+dfsg-1.dsc
4784cabf00ab267747a561510daca2988463ea4f 865341 opencryptoki_2.3.1+dfsg.orig.tar.gz
28a4f2672cf63548c9ef615eaa6f665a3730810e 15393 opencryptoki_2.3.1+dfsg-1.debian.tar.gz
49f3a29644b883269366f06a5962152a96b89264 57112 opencryptoki_2.3.1+dfsg-1_amd64.deb
90cdc1b94e210e2a6bd34d266c3aa8afd02959fe 495236 opencryptoki-dbg_2.3.1+dfsg-1_amd64.deb
099ca303b69fd8a733b053095b8d792cc8df6a5c 257142 libopencryptoki0_2.3.1+dfsg-1_amd64.deb
0894b413d044145e83351692ad7622d231054c9e 29810 libopencryptoki-dev_2.3.1+dfsg-1_amd64.deb
Checksums-Sha256:
89ba0bb94a4aca2b9e2e84d530d0fd45564080409303139afa3c35f08abf1f7e 1220 opencryptoki_2.3.1+dfsg-1.dsc
7401e35b6c6ca577e7e12444b9bce2cd8a5ba6ff95764a832811adc6306c839c 865341 opencryptoki_2.3.1+dfsg.orig.tar.gz
a779fb5dd8466af6d0b27942c761f563c28c83b5137dff1066b79fc927db4689 15393 opencryptoki_2.3.1+dfsg-1.debian.tar.gz
c87b150dceb67df98a613da4ffdfa4acf41334b636f41c7563139bfe957f507f 57112 opencryptoki_2.3.1+dfsg-1_amd64.deb
ee8227d13dd50ee8baec85ce5945546549ee141cc5ab628de8c4740fbcaf4c33 495236 opencryptoki-dbg_2.3.1+dfsg-1_amd64.deb
779e5f6626cae923b8a96ef0d84ce3ae6cf16fae0d9f49e3a2170d55287cedcb 257142 libopencryptoki0_2.3.1+dfsg-1_amd64.deb
a003914740c25457298d247be6e90ff18a093fd348ce1980d613ff2fd0368a14 29810 libopencryptoki-dev_2.3.1+dfsg-1_amd64.deb
Files:
d686114fec53dd3837b9362b7bafbcb6 1220 admin optional opencryptoki_2.3.1+dfsg-1.dsc
f684fe374423cb67050842b4750d9a2d 865341 admin optional opencryptoki_2.3.1+dfsg.orig.tar.gz
610fe836998f5f6f193ec382af64ae3a 15393 admin optional opencryptoki_2.3.1+dfsg-1.debian.tar.gz
7ed031354aa18b85ff5251863be123ac 57112 admin optional opencryptoki_2.3.1+dfsg-1_amd64.deb
e4c6d47c98be1273f4f06f6eecf21a8c 495236 debug extra opencryptoki-dbg_2.3.1+dfsg-1_amd64.deb
641e88d0a240a0f163d1de2af759d8b3 257142 libs optional libopencryptoki0_2.3.1+dfsg-1_amd64.deb
2459538f5ce24ef98cb1fe0a1ada681b 29810 libdevel optional libopencryptoki-dev_2.3.1+dfsg-1_amd64.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
iEYEARECAAYFAk3rWN0ACgkQRdSMfNz8P9ALWQCfcf3MMR6Yg85jNogzZ0+3Ah0o
2aYAniAOt/BK0l9zD5CMXNdBS38SyVeC
=efYf
-----END PGP SIGNATURE-----
--- End Message ---