certsync: Please test patches on systems < 10.9

Joshua Root jmr at macports.org
Thu Jun 5 07:44:51 PDT 2014


On 2014-6-3 08:39 , Clemens Lang wrote:
> Hi,
> 
> I'd like to ask one of the devs with access to systems or VMs < Mavericks
> to test the attached patch against certsync's certsync.m file. You'll find
> the file in $(port dir certsync)/files.
> 
> Please test
> 
>  - Compilation: Run
>    $> sudo port destroot certsync.
> 
>  - Functionality:
>    $> cd $(port work certsync)/destroot/opt/local/libexec and
>    $> ./certsync >/dev/null
>    You should see a lot of lines starting with "Found" and possibly some
>    lines starting with "Removing untrusted certificate".
> 
> If no problems are found with this change I'm planning to commit it next
> week.

Works on Lion.

Fails to build on Snow Leopard:

<built-in>:0: warning: Mac OS X version 10.5 or later is needed for use
of the new objc abi
certsync.m: In function ‘ValidateSystemTrust’:
certsync.m:226: warning: implicit declaration of function
‘SecTrustGetTrustResult’
Undefined symbols:
  "_SecTrustGetTrustResult", referenced from:
      _certificatesForTrustDomain in ccQPWJhT.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
Command failed: /usr/bin/gcc-4.2  -Os  -mmacosx-version-min=10.4  -Wall
 certsync.m -o certsync  -L/opt/local/lib
-Wl,-headerpad_max_install_names  -arch x86_64  -framework Foundation
-framework Security -framework CoreServices

Leopard:

certsync.m: In function ‘ValidateSystemTrust’:
certsync.m:162: warning: implicit declaration of function
‘SecPolicyCreateBasicX509’
certsync.m:162: warning: initialization makes pointer from integer
without a cast
certsync.m:226: warning: implicit declaration of function
‘SecTrustGetTrustResult’
Undefined symbols:
  "_SecPolicyCreateBasicX509", referenced from:
      _certificatesForTrustDomain in ccUcZvLA.o
  "_SecTrustGetTrustResult", referenced from:
      _certificatesForTrustDomain in ccUcZvLA.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
Command failed: /usr/bin/gcc-4.2  -Os  -mmacosx-version-min=10.4  -Wall
 certsync.m -o certsync  -L/opt/local/lib
-Wl,-headerpad_max_install_names  -arch i386  -framework Foundation
-framework Security -framework CoreServices

and Tiger:

certsync.m:28:25: error: Availability.h: No such file or directory
certsync.m: In function 'ValidateSystemTrust':
certsync.m:162: warning: implicit declaration of function
'SecPolicyCreateBasicX509'
certsync.m:162: warning: initialization makes pointer from integer
without a cast
certsync.m:226: warning: implicit declaration of function
'SecTrustGetTrustResult'
certsync.m: In function 'certificatesForTrustDomain':
certsync.m:294: warning: implicit declaration of function
'SecTrustSettingsCopyTrustSettings'
certsync.m: In function 'exportCertificates':
certsync.m:402: warning: implicit declaration of function
'SecCopyErrorMessageString'
certsync.m:402: warning: passing argument 1 of 'PLCFAutorelease' makes
pointer from integer without a cast
certsync.m:422: warning: passing argument 1 of 'PLCFAutorelease' makes
pointer from integer without a cast
Command failed: /opt/local/bin/gcc-apple-4.2  -Os
-mmacosx-version-min=10.4  -Wall  certsync.m -o certsync
-L/opt/local/lib -Wl,-headerpad_max_install_names  -arch i386
-framework Foundation -framework Security -framework CoreServices

- Josh


More information about the macports-dev mailing list