Need help building Mac OS X packages

classic Classic list List threaded Threaded
11 messages Options
Reply | Threaded
Open this post in threaded view
|

Need help building Mac OS X packages

Jean-Michel Pouré - GOOZE
Hello,

I have some problems building Mac OS X packages on the farm.
This is Mac OS X 10.6 (SnowLeopard) and OpenSC git.

Can you help?

./bootstrap
./MacOSX/build 10.6

returns

[...]

CompileC
build/Tokend.build/OpenSC.build/Objects-debug/i386/OpenSC_vers.o
build/Tokend.build/OpenSC.build/DerivedSources/OpenSC_vers.c debug i386
c com.apple.compilers.gcc.4_2

cd /Volumes/jenkins/snowleopard/ws/jenkins-OpenSC-pkg-MacOSX-10.6-SnowLeopard-15/opensc-0.13.0g20121001185219/OpenSC.tokend
    setenv LANG en_US.US-ASCII
    /Developer/usr/bin/gcc-4.2 -x c -arch i386 -fmessage-length=0 -pipe
-Wno-trigraphs -fpascal-strings -fasm-blocks -Os -mdynamic-no-pic
-isysroot /Developer/SDKs/MacOSX10.6.sdk -fvisibility=hidden
-mmacosx-version-min=10.6 -gdwarf-2
-I/Volumes/jenkins/snowleopard/ws/jenkins-OpenSC-pkg-MacOSX-10.6-SnowLeopard-15/opensc-0.13.0g20121001185219/OpenSC.tokend/build/Tokend.build/OpenSC.build/OpenSC.hmap -Wmost -Wno-four-char-constants -Wno-unknown-pragmas -F/Volumes/jenkins/snowleopard/ws/jenkins-OpenSC-pkg-MacOSX-10.6-SnowLeopard-15/opensc-0.13.0g20121001185219/OpenSC.tokend/build -F/usr/local/SecurityPieces/Frameworks -F/Developer/SDKs/MacOSX10.6.sdk/System/Library/PrivateFrameworks -I/Volumes/jenkins/snowleopard/ws/jenkins-OpenSC-pkg-MacOSX-10.6-SnowLeopard-15/opensc-0.13.0g20121001185219/OpenSC.tokend/build/include -I/Volumes/jenkins/snowleopard/ws/jenkins-OpenSC-pkg-MacOSX-10.6-SnowLeopard-15/opensc-0.13.0g20121001185219/OpenSC.tokend/build/opensc-src -I/Volumes/jenkins/snowleopard/ws/jenkins-OpenSC-pkg-MacOSX-10.6-SnowLeopard-15/opensc-0.13.0g20121001185219/OpenSC.tokend/build/Tokend.build/OpenSC.build/DerivedSources/i386 -I/Volumes/jenkins/snowleopard/ws/jenkins-OpenSC-pkg-MacOSX-10.6-SnowLeopard-15/opensc-0.13.0g20121001185219/OpenSC.tokend/build/Tokend.build/OpenSC.build/DerivedSources -O0 -fno-inline -c /Volumes/jenkins/snowleopard/ws/jenkins-OpenSC-pkg-MacOSX-10.6-SnowLeopard-15/opensc-0.13.0g20121001185219/OpenSC.tokend/build/Tokend.build/OpenSC.build/DerivedSources/OpenSC_vers.c -o /Volumes/jenkins/snowleopard/ws/jenkins-OpenSC-pkg-MacOSX-10.6-SnowLeopard-15/opensc-0.13.0g20121001185219/OpenSC.tokend/build/Tokend.build/OpenSC.build/Objects-debug/i386/OpenSC_vers.o


=== BUILD AGGREGATE TARGET world OF PROJECT Tokend WITH CONFIGURATION
Deployment ===
Check dependencies
** BUILD FAILED **


The following build commands failed:
OpenSC:
        CompileC
build/Tokend.build/OpenSC.build/Objects-normal/x86_64/OpenSCRecord.o /Volumes/jenkins/snowleopard/ws/jenkins-OpenSC-pkg-MacOSX-10.6-SnowLeopard-15/opensc-0.13.0g20121001185219/OpenSC.tokend/OpenSC/OpenSCRecord.cpp normal x86_64 c++ com.apple.compilers.gcc.4_2
        CompileC
build/Tokend.build/OpenSC.build/Objects-normal/i386/OpenSCRecord.o /Volumes/jenkins/snowleopard/ws/jenkins-OpenSC-pkg-MacOSX-10.6-SnowLeopard-15/opensc-0.13.0g20121001185219/OpenSC.tokend/OpenSC/OpenSCRecord.cpp normal i386 c++ com.apple.compilers.gcc.4_2
        CompileC
build/Tokend.build/OpenSC.build/Objects-debug/x86_64/OpenSCRecord.o /Volumes/jenkins/snowleopard/ws/jenkins-OpenSC-pkg-MacOSX-10.6-SnowLeopard-15/opensc-0.13.0g20121001185219/OpenSC.tokend/OpenSC/OpenSCRecord.cpp debug x86_64 c++ com.apple.compilers.gcc.4_2
        CompileC
build/Tokend.build/OpenSC.build/Objects-debug/i386/OpenSCRecord.o /Volumes/jenkins/snowleopard/ws/jenkins-OpenSC-pkg-MacOSX-10.6-SnowLeopard-15/opensc-0.13.0g20121001185219/OpenSC.tokend/OpenSC/OpenSCRecord.cpp debug i386 c++ com.apple.compilers.gcc.4_2
(4 failures)

Build step 'Execute shell' marked build as failure
Archiving artifacts
SSH: Current build result is [FAILURE], not going to run.
Finished: FAILURE

_______________________________________________
opensc-devel mailing list
[hidden email]
http://www.opensc-project.org/mailman/listinfo/opensc-devel

smime.p7s (8K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Need help building Mac OS X packages

Peter Stuge-4
Jean-Michel Pouré - GOOZE wrote:
> Can you help?

Difficult without actual error output. The mail only included the
executed commands.


//Peter

_______________________________________________
opensc-devel mailing list
[hidden email]
http://www.opensc-project.org/mailman/listinfo/opensc-devel

attachment0 (197 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Need help building Mac OS X packages

Jean-Michel Pouré - GOOZE
Le mardi 02 octobre 2012 à 00:22 +0200, Peter Stuge a écrit :
>
> Difficult without actual error output. The mail only included the
> executed commands.

Let's see how we can display an error.

OS X : 10.7
Xcode 3.2.6 for 10.7

Running MaOSX/build-package 10.6
line 123:

xcodebuild -configuration Deployment -project
OpenSC.tokend/Tokend.xcodeproj

Maybe it should be:
xcodebuild -configuration Debug -project
OpenSC.tokend/Tokend.xcodeproj

But still no error displayed.

Does anyone know how to display an explicit error with xcodebuild?

Kind regards,
--
                  Jean-Michel Pouré - Gooze - http://www.gooze.eu

_______________________________________________
opensc-devel mailing list
[hidden email]
http://www.opensc-project.org/mailman/listinfo/opensc-devel

smime.p7s (8K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Need help building Mac OS X packages

Ludovic Rousseau
In reply to this post by Jean-Michel Pouré - GOOZE
2012/10/2 Jean-Michel Pouré - GOOZE <[hidden email]>:
> Hello,
>
> I have some problems building Mac OS X packages on the farm.
> This is Mac OS X 10.6 (SnowLeopard) and OpenSC git.
>
> Can you help?
>
> ./bootstrap
> ./MacOSX/build 10.6

I never used the ./MacOSX/build script.

I fixed some issues for 10.8 (Moutain Lion) in my macosx branch [1].
For now the OpenSC.tokend fails to build because the SDK is no more in
/Developer/SDKs/ but inside the Xcode application.

I will try to have a look at the issues on 10.6.

Bye

[1] https://github.com/LudovicRousseau/OpenSC/commits/macosx

--
 Dr. Ludovic Rousseau
_______________________________________________
opensc-devel mailing list
[hidden email]
http://www.opensc-project.org/mailman/listinfo/opensc-devel
Reply | Threaded
Open this post in threaded view
|

Re: Need help building Mac OS X packages

Ludovic Rousseau
2012/10/7 Ludovic Rousseau <[hidden email]>:

> 2012/10/2 Jean-Michel Pouré - GOOZE <[hidden email]>:
>> Hello,
>>
>> I have some problems building Mac OS X packages on the farm.
>> This is Mac OS X 10.6 (SnowLeopard) and OpenSC git.
>>
>> Can you help?
>>
>> ./bootstrap
>> ./MacOSX/build 10.6
>
> I never used the ./MacOSX/build script.
>
> I fixed some issues for 10.8 (Moutain Lion) in my macosx branch [1].
> For now the OpenSC.tokend fails to build because the SDK is no more in
> /Developer/SDKs/ but inside the Xcode application.
>
> I will try to have a look at the issues on 10.6.

I can't rebuild the tokend on 10.8 :-(

The SDK used in the project is 10.6. This is no more supported by
Xcode for 10.8.
After changing the project to use 10.7 or 10.8 SDK I have the error:

In file included from
/Users/rousseau/Documents/github/OpenSC/OpenSC.tokend/Tokend/RecordHandle.cpp:29:
In file included from
/Users/rousseau/Documents/github/OpenSC/OpenSC.tokend/Tokend/RecordHandle.h:32:
In file included from
/Users/rousseau/Documents/github/OpenSC/OpenSC.tokend/build/security_cdsa_utilities.framework/Headers/handleobject.h:32:
/Users/rousseau/Documents/github/OpenSC/OpenSC.tokend/build/security_cdsa_utilities.framework/Headers/handletemplates.h:132:17:
error: use 'template' keyword to treat 'findAllRefs' as a dependent
template name
        state().findAllRefs<Subtype>(refs);
                ^
                template
1 error generated.

I do not plan to debug the tokend build.
Apple deprecated [1] the use of tokend in 10.7.

I propose to reuse the latest tokend binary and include it in the the
package for 10.8. Or maybe just build OpenSC for 10.6 and use the same
package for 10.6, 10.7 and 10.8.

Bye

[1] http://ludovicrousseau.blogspot.fr/2011/08/mac-os-x-lion-and-tokend.html

--
 Dr. Ludovic Rousseau
_______________________________________________
opensc-devel mailing list
[hidden email]
http://www.opensc-project.org/mailman/listinfo/opensc-devel
Reply | Threaded
Open this post in threaded view
|

Re: Need help building Mac OS X packages

Ludovic Rousseau
In reply to this post by Jean-Michel Pouré - GOOZE
2012/10/2 Jean-Michel Pouré - GOOZE <[hidden email]>:
> Hello,
>
> I have some problems building Mac OS X packages on the farm.
> This is Mac OS X 10.6 (SnowLeopard) and OpenSC git.
>
> Can you help?

On my Snow Leopard system with up to date version of OpenSC I have:

/Users/rousseau/Documents/github/OpenSC/OpenSC.tokend/OpenSC/OpenSCRecord.cpp:72:13:{72:15-72:25}:
error: assigning to 'uint8 *' (aka 'unsigned char *') from
incompatible type 'struct sc_pkcs15_der' [3]
                 data.Data = cert->data;
                           ^ ~~~~~~~~~~
/Users/rousseau/Documents/github/OpenSC/OpenSC.tokend/OpenSC/OpenSCRecord.cpp:73:23:{73:17-73:21}:
error: no member named 'data_len' in 'sc_pkcs15_cert' [3]
                 data.Length = cert->data_len;
                               ~~~~  ^
2 errors generated.


The sc_pkcs15_cert structure has been updated in OpenSC but not its
use in the tokend. The tokend is then out of sync and can't be build
with a "recent" OpenSC.

I would suggest to drop the OpenSC tokend, unless someone volunteer to
maintain it.

I also propose to, instead, use the tokend over PKCS#11 hosted at the
SmartCard Services project [1]. This tokend should work with any
PKCS#11 library.
I have not rebuild this tokend since a long time so it may be as easy
(or hard) to rebuild as the tokend from OpenSC.

Bye,

[1] http://smartcardservices.macosforge.org/trac/browser/trunk/Tokend/PKCS11

--
 Dr. Ludovic Rousseau
_______________________________________________
opensc-devel mailing list
[hidden email]
http://www.opensc-project.org/mailman/listinfo/opensc-devel
Reply | Threaded
Open this post in threaded view
|

Re: Need help building Mac OS X packages

B. Scott Michel-3
On 10/14/2012 5:27 AM, Ludovic Rousseau wrote:

> 2012/10/2 Jean-Michel Pouré - GOOZE <[hidden email]>:
>> Hello,
>>
>> I have some problems building Mac OS X packages on the farm.
>> This is Mac OS X 10.6 (SnowLeopard) and OpenSC git.
>>
>> Can you help?
> On my Snow Leopard system with up to date version of OpenSC I have:
>
> /Users/rousseau/Documents/github/OpenSC/OpenSC.tokend/OpenSC/OpenSCRecord.cpp:72:13:{72:15-72:25}:
> error: assigning to 'uint8 *' (aka 'unsigned char *') from
> incompatible type 'struct sc_pkcs15_der' [3]
>                   data.Data = cert->data;
>                             ^ ~~~~~~~~~~
> /Users/rousseau/Documents/github/OpenSC/OpenSC.tokend/OpenSC/OpenSCRecord.cpp:73:23:{73:17-73:21}:
> error: no member named 'data_len' in 'sc_pkcs15_cert' [3]
>                   data.Length = cert->data_len;
>                                 ~~~~  ^
> 2 errors generated.

These are relatively easy to fix, since the sc_pkcs15_cert structure
changed slightly. I'd send in a patch, but I'm loth to having my repo
micromanaged. Also, would need to disentangle the build system.

> The sc_pkcs15_cert structure has been updated in OpenSC but not its
> use in the tokend. The tokend is then out of sync and can't be build
> with a "recent" OpenSC.
>
> I would suggest to drop the OpenSC tokend, unless someone volunteer to
> maintain it.
>
> I also propose to, instead, use the tokend over PKCS#11 hosted at the
> SmartCard Services project [1]. This tokend should work with any
> PKCS#11 library.
> I have not rebuild this tokend since a long time so it may be as easy
> (or hard) to rebuild as the tokend from OpenSC.
>
I'll give it a shot later this week, if work doesn't get in the way.


-scooter
_______________________________________________
opensc-devel mailing list
[hidden email]
http://www.opensc-project.org/mailman/listinfo/opensc-devel
Reply | Threaded
Open this post in threaded view
|

Re: Need help building Mac OS X packages

Jean-Michel Pouré - GOOZE
Le lundi 15 octobre 2012 à 10:17 -0700, B. Scott Michel a écrit :
> These are relatively easy to fix, since the sc_pkcs15_cert structure
> changed slightly. I'd send in a patch, but I'm loth to having my repo
> micromanaged. Also, would need to disentangle the build system.

Cool. Please do have a look.
I can open you access to our machines if you want.

On my side I have been working hard setting up the required hardware.

We now have 3 Mac OS X machine running in the data center.

1) Mac Mini core duo : 10.8 (Moutain Lion)
2) Mac Mini core solo : 10.6 (Snow Leopard)
3) Mac Mini core solo : 10.6 (Snow Leopard)

Each Mac has an ePass2003 and a Feitian PKI smartcard attached.

I am still looking for a solution to upgrade from 10.6 to 10.7 (Lion) on
one machine using a genuine disc. Unfortunately, I could not find a
genuine disc (although I previously acquired Lion on iTunes).

Do you think someone could help me on Lion, please contact me privately
at [hidden email]

Kind regards,
Jean-Michel

_______________________________________________
opensc-devel mailing list
[hidden email]
http://www.opensc-project.org/mailman/listinfo/opensc-devel

smime.p7s (8K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Need help building Mac OS X packages

Jean-Michel Pouré - GOOZE
In reply to this post by B. Scott Michel-3
Le lundi 15 octobre 2012 à 10:17 -0700, B. Scott Michel a écrit :
> I'll give it a shot later this week, if work doesn't get in the way.

Dear Scott,

I am available on Skype to discuss these issues. I will forward you my
Skype ID. The Mac OS X stations are available in the farm to compile
0.13 packages so I would like to find a suitable solution.

Kind regards,
--
                  Jean-Michel Pouré - Gooze - http://www.gooze.eu

_______________________________________________
opensc-devel mailing list
[hidden email]
http://www.opensc-project.org/mailman/listinfo/opensc-devel

smime.p7s (8K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Need help building Mac OS X packages

Martin Paljak-4
In reply to this post by Ludovic Rousseau
On Sun, Oct 14, 2012 at 3:27 PM, Ludovic Rousseau
<[hidden email]> wrote:
> I would suggest to drop the OpenSC tokend, unless someone volunteer to
> maintain it.
I think my current mbp running 10.7 will be the last piece of Applet
hardware/software combo I'll run, so the future is uncertain, but
current situation is solid.

> I have not rebuild this tokend since a long time so it may be as easy
> (or hard) to rebuild as the tokend from OpenSC.

The final version of OSX that supports *building* Tokend is 10.7.

10.8 also removes OpenSSL and that brings a stack of other problems
for the future. But as of now, Tokend works as expected (but needs to
be in sync with libopensc, of course).

Will look into it.

Martin
_______________________________________________
opensc-devel mailing list
[hidden email]
http://www.opensc-project.org/mailman/listinfo/opensc-devel
Reply | Threaded
Open this post in threaded view
|

Re: Need help building Mac OS X packages

Lukas Wunner
On Thu, Nov 22, 2012 at 01:44:45PM +0200, Martin Paljak wrote:
> On Sun, Oct 14, 2012 at 3:27 PM, Ludovic Rousseau <[hidden email]> wrote:
> > I would suggest to drop the OpenSC tokend, unless someone volunteer to
> > maintain it.
> I think my current mbp running 10.7 will be the last piece of Applet
> hardware/software combo I'll run, so the future is uncertain, but
> current situation is solid.


OpenSC tokend is still useful. For the record, I managed to get it
running with opensc 0.13.0rc1 on 10.4.11 using Xcode 2.5 with some
fiddling:

The Security and SecurityTokend frameworks that shipped with Xcode 2.5
are missing a few #define's. On the other hand, linking against the
compiled frameworks included in Martin's build-10.5.tar.gz failed
because of linker commands that the Xcode 2.5 linker (gcc 4.0.1)
doesn't understand. The solution was to compile against the 10.5
version of the frameworks and link against the native 10.4 versions.

The security_cdsa_client and security_cdsa_utilities frameworks are
not included with Xcode 2.5. They're available on opensource.apple.com
but I couldn't be bothered to download and compile them. I just compiled
and linked against the versions included in Martin's build-10.5.tar.gz.
The only problem is that these versions call UNIX2003 symbols in libc
which don't exist on 10.4.11. This can be overcome by having the linker
translate the symbols like this: '-Wl,-i_write$UNIX2003:_write'
'-Wl,-i_read$UNIX2003:_read' '-Wl,-i_close$UNIX2003:_close' and so on.

With OpenSC tokend compiled like this, a GemSafeV1 card correctly shows
up in Keychain and when connecting to a website which requires client
authentication, Safari will query for the PIN of the card.

It's a shame that Apple stopped their in-house work on the tokend
infrastructure.

As for openssl, the build script automatically found and used the
fink-installed openssl in /sw, so one (albeit not so user-friendly)
solution for the removal of openssl in 10.8 may be to ask users
that they pre-install openssl with brew, fink or whatever.

Lukas
_______________________________________________
opensc-devel mailing list
[hidden email]
http://www.opensc-project.org/mailman/listinfo/opensc-devel