Package Details: libgtop11dotnet 2019.04-1

Git Clone URL: (read-only, click to copy)
Package Base: libgtop11dotnet
Description: PKCS11 driver for the Gemalto Cryptocard token
Upstream URL:
Licenses: custom:Apple Public Source License
Submitter: swiftscythe
Maintainer: toto
Last Packager: toto
Votes: 4
Popularity: 0.084727
First Submitted: 2014-11-04 14:37
Last Updated: 2019-10-12 23:52

Latest Comments

1 2 Next › Last »

toto commented on 2019-04-09 16:06

Hi @lordchaos, I have fixed some issues in the original github repository to build it on Linux. And I've also modified the PKGBUILD of this package to build the (although it throws some errors). So my next step is to submit my changes (or adopt this repository if neccessary).

lordchaos commented on 2019-03-20 16:12


What's the current state of this package? Because it certainly doesn't work.

jlesev commented on 2018-08-05 18:27


thanks for your comments, i was able to build it. (grabbed source from somewhere, but is the same as the mentioned in a comment here)

here are the used PKGBUILD and "patch"

cat ~/packages/libgtop11dotnet/PKGBUILD

Contributor: Andrea Squeri

pkgname=libgtop11dotnet pkgver= pkgrel=1 pkgdesc='PKCS11 driver for the Gemalto Cryptocard token' arch=('i686' 'x86_64') url="" license=('custom') depends=('boost-libs' 'pcsclite' 'p11-kit' 'pcsc-tools' 'opensc' 'openct' 'openvpn' 'ccid' 'engine_pkcs11' 'pkcs11-helper') makedepends=('gcc5' 'boost') source=("${pkgname}_${pkgver}.tar.gz" "boost-array.patch") md5sums=('0d2ac6dc267377a5c3fad0117d8d5a6d' '797b3aab1c1218bbf3629aaeadff3394')

prepare () { cd ${srcdir}/${pkgname}-${pkgver} patch -Np1 -i ${srcdir}/boost-array.patch }

build() { cd ${srcdir}/${pkgname}-${pkgver} export CFLAGS="-march=native -O2" export CXXFLAGS="-march=native -O2 -std=c++03" export CC=/usr/bin/gcc-5 export CXX=/usr/bin/g++-5

./configure --prefix=/usr/ --enable-system-boost
make all-am


package() { cd ${srcdir}/${pkgname}-${pkgver} make DESTDIR=${pkgdir} install-exec-am }

cat ~/packages/libgtop11dotnet/boost-array.patch

libgtop11dotnet- 2011-05-19 14:53:52.000000000 +0300 --- libgtop11dotnet- 2018-08-05 20:58:37.229870070 +0300 ** 25,31 ***

#include <boost serialization="" serialization.hpp=""> #include <boost serialization="" shared_ptr.hpp=""> ! #include <boost array.hpp="" serialization=""> #include <boost array.hpp=""> #include <boost shared_ptr.hpp=""> #include <string> --- 25,31 ----</string></boost></boost></boost></boost></boost>

#include <boost serialization="" serialization.hpp=""> #include <boost serialization="" shared_ptr.hpp=""> ! #include <boost boost_array.hpp="" serialization=""> #include <boost array.hpp=""> #include <boost shared_ptr.hpp=""> #include <string></string></boost></boost></boost></boost></boost>

phkelley commented on 2018-07-22 12:28

I wanted to share the two things I did to get this package to build successfully on Ubuntu 18.04. The errors look the same so perhaps those of you in the Arch community can use these fixes as well.

  1. The code needs to be built with this added to CXXFLAGS: -std=c++03. I am not sure how to do this at ./configure time; I just added it to the generated Makefile afterwards.
  2. The only remaining error after that is the one that @terusus below hit related to serialization. Here, the problem is in MiniDriverContainerMapFile.hpp, where it says on line 28 #include <boost array.hpp="" serialization="">. This should be changed to #include <boost boost_array.hpp="" serialization=""> instead. I believe that in C++11 they added an std::array type and now the boost/serialization/array.hpp file contains the serialize logic for std::array instead. The serialize logic for the older boost::array (which I guess is largely deprecated now) is over in boost_array.hpp now.</boost></boost>

I hope this helps someone out!

ssehovic commented on 2018-06-16 21:25

I am having the same error as @terusus and have nod idea how to solve it.

terusus commented on 2018-03-25 13:41

gcc5: configure: error: C++ compiler cannot create executables

latest gcc for in MiniDriverContainer.cpp: /usr/include/c++/7.3.1/bits/locale_conv.h: In member function ‘std::cxx11::wstring_convert<_Codecvt, _Elem, _Wide_alloc, _Byte_alloc>::wide_string std::cxx11::wstring_convert<_Codecvt, _Elem, _Wide_alloc, _Byte_alloc>::from_bytes(const char, const char)’: /usr/include/c++/7.3.1/bits/locale_conv.h:253:45: error: expected primary-expression before ‘,’ token if (str_codecvt_in(first, last, out, _M_cvt, _M_state, ^ /usr/include/c++/7.3.1/bits/locale_conv.h:255:4: error: return-statement with no value, in function returning ‘std::cxx11::wstring_convert<_Codecvt, _Elem, _Wide_alloc, _Byte_alloc>::wide_string’ [-fpermissive] return out; ^~~~~~ /usr/include/c++/7.3.1/bits/locale_conv.h: In member function ‘std::cxx11::wstring_convert<_Codecvt, _Elem, _Wide_alloc, _Byte_alloc>::byte_string std::cxx11::wstring_convert<_Codecvt, _Elem, _Wide_alloc, _Byte_alloc>::to_bytes(const _Elem, const _Elem)’: /usr/include/c++/7.3.1/bits/locale_conv.h:289:46: error: expected primary-expression before ‘,’ token if (str_codecvt_out(first, last, out, _M_cvt, _M_state, ^ /usr/include/c++/7.3.1/bits/locale_conv.h:291:4: error: return-statement with no value, in function returning ‘std::cxx11::wstring_convert<_Codecvt, _Elem, _Wide_alloc, _Byte_alloc>::byte_string’ [-fpermissive] return out; ^~~~~~ /usr/include/c++/7.3.1/bits/locale_conv.h: In member function ‘typename std::wbuffer_convert<_Codecvt, _Elem, _Tr>::_Wide_streambuf::int_type std::wbuffer_convert<_Codecvt, _Elem, _Tr>::overflow(typename std::wbuffer_convert<_Codecvt, _Elem, _Tr>::_Wide_streambuf::int_type)’: /usr/include/c++/7.3.1/bits/locale_conv.h:385:34: error: expected primary-expression before ‘,’ token else if (!_Tr::eq_int_type(__out, _Tr::eof())) ^ make: *** [Makefile:524: MiniDriverContainer.lo] Error 1 ==> ERROR: A failure occurred in build(). Aborting...

latest gcc for in MiniDriver.cpp: MiniDriver.cpp:269:19: required from here /usr/include/boost/serialization/access.hpp:116:11: error: ‘class boost::array<minidrivercontainer, 15="">’ has no member named ‘serialize’ (This is super weird because MiniDriverContainer has friended the serialization and has a serialize method...)</minidrivercontainer,>

Any ideas?

Argenet commented on 2017-03-29 20:27


The source can be taken from:
See the last item below: libgtop11dotnet_2.2.0.12.orig.tar.gz (544.9 KiB)
Or use a direct link:
I tried it and it compiles just fine. The checksum also matches.


If there's no current owner for this package, I could maintain it.
Can you grant me permissions for that?

andre77 commented on 2016-12-16 09:45

Where can i found the source of the lib?

swiftscythe commented on 2016-08-05 07:46

Since I am no longer using this package, I will disown it, hope someone will make it work again.
@blazm: maybe you can add a dependency on gcc5 from the official repos and export the following variables before the ./configure:

blazm commented on 2016-08-05 07:42

Hi kjozsa,

Even the latest version of the library will not compile with GCC 6.x.

In order to build Gemalto IDPrime PKCS#11 library on Arch, you will need to:
1. Obtain the latest package with the source code: from your local Gemalto partner.
2. Downgrade (temporary) GCC to version 5.3.0-5 or similar by installing gcc and gcc-libs packages (pacman -U). (After you succeed to compile the library, you can restore current GCC 6.1.1).
3. Install required libraries and tools (which ones are required is written in readme.rtf included in the ZIP archive).
4. Add #include <cerrno> line at the top of Token.cpp file:
- either you modify the file in the archive libidprimepkcs11- which is part of the ZIP
- OR try to compile with script which is included in ZIP and when it fails cd to src folder, modify Token.cpp there and then do make in src folder.

Hope this helps, best regards,