SmartCardServices Development
Hi, I want start to implement a Tokend module for a smartcard but Im pretty unexperienced in Mac development (I just implemented a Windows MiniDriver for this smartcard). Reading the documentation at http://smartcardservices.macosforge.org/trac/wiki/documentation/building it seems to be very simple to compile your project. Unfortunately Im unable to build neither the SmartCardServices nor the tokend project. Following the documentation I called: mkdir 9J61 cd 9J61 sudo darwinbuild init 9J61 sudo darwinbuild SmartCardServices After preparations and download of the sources it always ends with: Xcodebuild: error: cant exec '/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild (errno=No such file or directory) Regarding to the log (see attachment) it seems to be a problem with the development environment. Ive installed XCode (6.1.1) and command line tools and DarwinBuild. But the log reports that gcc, as, xcodebuild are not available although they are all available: whereis gcc -> /usr/bin/gcc gcc version -> Apple LLVM version 6.0 (clang-600.0.56) (based on LLVM 3.5svn) whereis as -> /usr/bin/as as v -> Apple Inc version cctools-862, GNU assembler version 1.38 xcodebuild version -> Xcode 6.1.1 Build version 6A2008a Can anyone help me please. BR, Harry
2015-03-03 12:55 GMT+01:00 Harry Göbel <hgoebel@ubin.ag>:
Hi,
Hello,
I want start to implement a Tokend module for a smartcard but I’m pretty unexperienced in Mac development (I just implemented a Windows MiniDriver for this smartcard).
Reading the documentation at http://smartcardservices.macosforge.org/trac/wiki/documentation/building it seems to be very simple to compile your project.
Unfortunately I’m unable to build neither the SmartCardServices nor the tokend project.
Following the documentation I called:
mkdir 9J61
cd 9J61
sudo darwinbuild –init 9J61
sudo darwinbuild SmartCardServices
After preparations and download of the sources it always ends with:
Xcodebuild: error: can’t exec '/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild‘ (errno=No such file or directory)
Regarding to the log (see attachment) it seems to be a problem with the development environment.
I’ve installed XCode (6.1.1) and command line tools and DarwinBuild.
But the log reports that gcc, as, xcodebuild are not available although they are all available:
whereis gcc -> /usr/bin/gcc
gcc –version -> Apple LLVM version 6.0 (clang-600.0.56) (based on LLVM 3.5svn)
whereis as -> /usr/bin/as
as –v -> Apple Inc version cctools-862, GNU assembler version 1.38
xcodebuild –version -> Xcode 6.1.1 Build version 6A2008a
Can anyone help me please.
darwinbuild is no more maintained by Apple since some years. Look at the darwinbuild bugs. Rebuilding the tokend project using a modern Mac OS X is not easy (or even possible). Bye -- Dr. Ludovic Rousseau
You can build TokenD using more recent OSX build systems by following what the OpenSC folks did, see https://github.com/OpenSC/OpenSC.tokend for recent changes they did to get it to work. Downside to the method is that there are pieces that have to be download from Apple to get the build to work - but at least TokenD modules can be built without keeping an old 10.6 box around that may die (and for which the licensing of 10.6 disallowed virtualization, if I recall right). On Thu, Mar 5, 2015 at 12:48 PM Ludovic Rousseau <ludovic.rousseau@gmail.com> wrote:
2015-03-03 12:55 GMT+01:00 Harry Göbel <hgoebel@ubin.ag>:
Hi,
Hello,
I want start to implement a Tokend module for a smartcard but I’m pretty unexperienced in Mac development (I just implemented a Windows MiniDriver for this smartcard).
Reading the documentation at http://smartcardservices.macosforge.org/trac/wiki/documentation/building it seems to be very simple to compile your project.
Unfortunately I’m unable to build neither the SmartCardServices nor the tokend project.
Following the documentation I called:
mkdir 9J61
cd 9J61
sudo darwinbuild –init 9J61
sudo darwinbuild SmartCardServices
After preparations and download of the sources it always ends with:
Xcodebuild: error: can’t exec '/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild‘ (errno=No such file or directory)
Regarding to the log (see attachment) it seems to be a problem with the development environment.
I’ve installed XCode (6.1.1) and command line tools and DarwinBuild.
But the log reports that gcc, as, xcodebuild are not available although they are all available:
whereis gcc -> /usr/bin/gcc
gcc –version -> Apple LLVM version 6.0 (clang-600.0.56) (based on LLVM 3.5svn)
whereis as -> /usr/bin/as
as –v -> Apple Inc version cctools-862, GNU assembler version 1.38
xcodebuild –version -> Xcode 6.1.1 Build version 6A2008a
Can anyone help me please.
darwinbuild is no more maintained by Apple since some years. Look at the darwinbuild bugs. Rebuilding the tokend project using a modern Mac OS X is not easy (or even possible).
Bye
-- Dr. Ludovic Rousseau _______________________________________________ SmartcardServices-Dev mailing list SmartcardServices-Dev@lists.macosforge.org https://lists.macosforge.org/mailman/listinfo/smartcardservices-dev
If you had to do it anyway, how old a MacOS would you recommend? I have Mountain Lion available, and I might be able to resurrect a Snow Leopard. On Mar 5, 2015, at 9:48 AM, Ludovic Rousseau <ludovic.rousseau@gmail.com> wrote:
2015-03-03 12:55 GMT+01:00 Harry Göbel <hgoebel@ubin.ag>:
Hi,
Hello,
I want start to implement a Tokend module for a smartcard but I’m pretty unexperienced in Mac development (I just implemented a Windows MiniDriver for this smartcard).
Reading the documentation at http://smartcardservices.macosforge.org/trac/wiki/documentation/building it seems to be very simple to compile your project.
Unfortunately I’m unable to build neither the SmartCardServices nor the tokend project.
Following the documentation I called:
mkdir 9J61
cd 9J61
sudo darwinbuild –init 9J61
sudo darwinbuild SmartCardServices
After preparations and download of the sources it always ends with:
Xcodebuild: error: can’t exec '/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild‘ (errno=No such file or directory)
Regarding to the log (see attachment) it seems to be a problem with the development environment.
I’ve installed XCode (6.1.1) and command line tools and DarwinBuild.
But the log reports that gcc, as, xcodebuild are not available although they are all available:
whereis gcc -> /usr/bin/gcc
gcc –version -> Apple LLVM version 6.0 (clang-600.0.56) (based on LLVM 3.5svn)
whereis as -> /usr/bin/as
as –v -> Apple Inc version cctools-862, GNU assembler version 1.38
xcodebuild –version -> Xcode 6.1.1 Build version 6A2008a
Can anyone help me please.
darwinbuild is no more maintained by Apple since some years. Look at the darwinbuild bugs. Rebuilding the tokend project using a modern Mac OS X is not easy (or even possible).
Bye
-- Dr. Ludovic Rousseau _______________________________________________ SmartcardServices-Dev mailing list SmartcardServices-Dev@lists.macosforge.org https://lists.macosforge.org/mailman/listinfo/smartcardservices-dev
-- Henry B. (Hank) Hotz, CISSP http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services
I would like to encourage you all to file a bug report on the state of TokenD building. I did a very long time ago, and it got nowhere. Perhaps if more of us did, Apple would take some notice. There should be public frameworks to build against. One problem with TokenD stuff is that is was heavily invested in the CDSA architecture, deprecated in 10.7. However, the CDSA stuff is still around in 10.10, but I don’t think Apple has a plan for moving smart card integration off of CDSA. I asked them about just using PKCS11, but they were sure they did not to go that route, but couldn’t really explain why. These conditions make it hard to provide supported products in this space due to the engineering work you might need for each new Mac OS release.
On Mar 5, 2015, at 11:54 AM, Henry B (Hank) Hotz, CISSP <hotz@2ndquadrant.com> wrote:
If you had to do it anyway, how old a MacOS would you recommend? I have Mountain Lion available, and I might be able to resurrect a Snow Leopard.
Hello, 2015-03-05 18:54 GMT+01:00 Henry B (Hank) Hotz, CISSP <hotz@2ndquadrant.com>:
If you had to do it anyway, how old a MacOS would you recommend? I have Mountain Lion available, and I might be able to resurrect a Snow Leopard.
From my darwinbuild notes: darwinbuild does not work on Mac OS X > 10.6.3 (Snow Leopard)
Bye -- Dr. Ludovic Rousseau
participants (5)
-
Harry Göbel
-
Henry B (Hank) Hotz, CISSP
-
Ludovic Rousseau
-
Paul Nelson
-
Thomas Harning Jr.