Opened 10 years ago

Closed 9 years ago

#42961 closed defect (fixed)

certsync @1.0.7: Undefined symbols: _SecPolicyCreateBasicX509

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: landonf (Landon Fuller)
Priority: Normal Milestone:
Component: ports Version: 2.2.1
Keywords: leopard Cc: cooljeanius (Eric Gallager), larryv (Lawrence Velázquez), neverpanic (Clemens Lang)
Port: certsync

Description

certsync fails to build on Leopard:

--->  Configuring certsync
DEBUG: Using compiler 'Xcode GCC 4.2'
DEBUG: Executing org.macports.configure (certsync)
DEBUG: Privilege de-escalation not attempted as not running as root.
DEBUG: build phase started at Thu Mar 20 19:50:20 CDT 2014
--->  Building certsync
DEBUG: Executing org.macports.build (certsync)
certsync.m: In function ‘ValidateSelfTrust’:
certsync.m:108: warning: implicit declaration of function ‘SecPolicyCreateBasicX509’
certsync.m:108: warning: initialization makes pointer from integer without a cast
Undefined symbols:
  "_SecPolicyCreateBasicX509", referenced from:
      _certificatesForTrustDomain in ccVFdihG.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

Change History (4)

comment:1 Changed 10 years ago by cooljeanius (Eric Gallager)

Cc: egall@… added

Cc Me!

comment:2 Changed 10 years ago by landonf (Landon Fuller)

I don't suppose there's a 10.4/10.5 user that wants to take responsibility for maintaining backwards compatibility? SecPolicyCreateBasicX509() was added in 10.6; for <= 10.5, I believe this will need to use the deprecated SecPolicySearchCreate/SecPolicySearchCopyNext APIs.

comment:3 Changed 10 years ago by larryv (Lawrence Velázquez)

Cc: larryv@… added

Cc Me!

comment:4 Changed 9 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: cal@… added
Resolution: fixed
Status: newclosed

This was fixed in certsync 1.1.0 in r124828.

Note: See TracTickets for help on using tickets.