[MacPorts] #52036: go @1.7 build error
#52036: go @1.7 build error --------------------+-------------------------------- Reporter: eric@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Keywords: | Port: --------------------+-------------------------------- Latest go failed to build… and then tried to reinstall it with: {{{ $ sudo port clean --all go $ sudo port -v -s upgrade go }}} Last part: {{{ # crypto/x509 crypto/x509/root_cgo_darwin.go:114:28: error: 'SecCertificateCopyNormalizedSubjectContent' is unavailable CFDataRef subjectName = SecCertificateCopyNormalizedSubjectContent(cert, &errRef); ^ /System/Library/Frameworks/Security.framework/Headers/SecCertificate.h:459:11: note: function has been explicitly marked unavailable here CFDataRef SecCertificateCopyNormalizedSubjectContent(SecCertificateRef certificate, CFErrorRef *error) ^ crypto/x509/root_cgo_darwin.go:119:27: error: 'SecCertificateCopyNormalizedIssuerContent' is unavailable CFDataRef issuerName = SecCertificateCopyNormalizedIssuerContent(cert, &errRef); ^ /System/Library/Frameworks/Security.framework/Headers/SecCertificate.h:442:11: note: function has been explicitly marked unavailable here CFDataRef SecCertificateCopyNormalizedIssuerContent(SecCertificateRef certificate, CFErrorRef *error) ^ 2 errors generated. cmd/link cmd/compile/internal/gc cmd/compile/internal/amd64 cmd/compile/internal/arm64 cmd/compile/internal/arm cmd/compile/internal/ppc64 cmd/compile/internal/mips64 cmd/compile/internal/s390x cmd/compile/internal/x86 cmd/compile Command failed: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_go/go/work/go/src" && ./make.bash Exit code: 2 Error: org.macports.build for port go returned: command execution failed Warning: targets not executed for go: org.macports.install org.macports.build org.macports.destroot Please see the log file for port go for details: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_go/go/main.log Error: Unable to upgrade port: 1 To report a bug, follow the instructions in the guide: http://guide.macports.org/#project.tickets }}} ----- //Attaching the log file.// -- Ticket URL: <https://trac.macports.org/ticket/52036> MacPorts <https://www.macports.org/> Ports system for OS X
#52036: go @1.7_0: crypto/x509 build fails on Lion ---------------------+------------------------- Reporter: eric@… | Owner: ciserlohn@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: lion Port: go | ---------------------+------------------------- Changes (by larryv@…): * keywords: => lion * owner: macports-tickets@… => ciserlohn@… * port: => go -- Ticket URL: <https://trac.macports.org/ticket/52036#comment:1> MacPorts <https://www.macports.org/> Ports system for OS X
#52036: go @1.7_0: crypto/x509 build fails with "'SecCertificateCopyNormalizedSubjectContent' is unavailable" ---------------------+------------------------- Reporter: eric@… | Owner: ciserlohn@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: lion Port: go | ---------------------+------------------------- Changes (by larryv@…): * cc: ryandesign@… (added) Comment: Has duplicate #52047. -- Ticket URL: <https://trac.macports.org/ticket/52036#comment:2> MacPorts <https://www.macports.org/> Ports system for OS X
#52036: go @1.7_0: crypto/x509 build fails with "'SecCertificateCopyNormalizedSubjectContent' is unavailable" ---------------------+------------------------- Reporter: eric@… | Owner: ciserlohn@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: lion Port: go | ---------------------+------------------------- Comment (by eric@…): go@1.7.1_0 … same error. //Attaching that log file// -- Ticket URL: <https://trac.macports.org/ticket/52036#comment:3> MacPorts <https://www.macports.org/> Ports system for the Mac operating system
#52036: go @1.7_0: crypto/x509 build fails with "'SecCertificateCopyNormalizedSubjectContent' is unavailable" ---------------------+------------------------- Reporter: eric@… | Owner: ciserlohn@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: lion Port: go | ---------------------+------------------------- Comment (by scottm@…): This issue seems to be caused by line 10 of src/crypto/x509/root_cgo_darwin.go file, which appears as: [[br]] `#cgo CFLAGS: -mmacosx-version-min=10.6 -D__MAC_OS_X_VERSION_MAX_ALLOWED=1060` The value of 1060 for !__MAC_OS_X_VERSION_MAX_ALLOWED represents OSX 10.6, which conflicts with compiling it on lion. Removing this restriction allows successful compilation. I didn't research beyond just getting it to build on my box -- but from the look of it, I don't understand how it could be compiled anywhere. -- Ticket URL: <https://trac.macports.org/ticket/52036#comment:4> MacPorts <https://www.macports.org/> Ports system for the Mac operating system
participants (1)
-
MacPorts