Opened 6 years ago

Closed 6 years ago

#57348 closed defect (fixed)

mongodb @4.0.3: error: no member named 'SSLCopyRequestedPeerNameLength' in the global namespace

Reported by: dbl001 (dbl) Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version:
Keywords: elcapitan Cc:
Port: mongodb

Description (last modified by mf2k (Frank Schima))

I got an error building mogodb.

OS X 10.11.6 $ port version Version: 2.5.4

E.g. from /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_databases_mongodb/mongodb/main.log:

info:build src/mongo/util/net/ssl_manager_apple.cpp:969:25: error: no member named 'SSLCopyRequestedPeerNameLength' in the global namespace
:info:build         auto status = ::SSLCopyRequestedPeerNameLength(_ssl.get(), &len);
:info:build                       ~~^
:info:build src/mongo/util/net/ssl_manager_apple.cpp:975:20: error: no member named 'SSLCopyRequestedPeerName' in the global namespace

--->  Computing dependencies for mongodb
--->  Fetching archive for mongodb
--->  Attempting to fetch mongodb-4.0.3_0.darwin_15.x86_64.tbz2 from https://packages.macports.org/mongodb
--->  Attempting to fetch mongodb-4.0.3_0.darwin_15.x86_64.tbz2 from http://sea.us.packages.macports.org/macports/packages/mongodb
--->  Attempting to fetch mongodb-4.0.3_0.darwin_15.x86_64.tbz2 from http://ywg.ca.packages.macports.org/mirror/macports/packages/mongodb
--->  Fetching distfiles for mongodb
--->  Attempting to fetch mongodb-src-r4.0.3.tar.gz from https://fastdl.mongodb.org/src
--->  Verifying checksums for mongodb                                           
--->  Extracting mongodb
--->  Configuring mongodb
--->  Building mongodb
Error: Failed to build mongodb: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_databases_mongodb/mongodb/main.log for details.

Attachments (2)

main.log (441.0 KB) - added by dbl001 (dbl) 6 years ago.
mongodb-10.11.patch (1.7 KB) - added by ryandesign (Ryan Carsten Schmidt) 6 years ago.

Download all attachments as: .zip

Change History (10)

Changed 6 years ago by dbl001 (dbl)

Attachment: main.log added

comment:1 Changed 6 years ago by mf2k (Frank Schima)

In the future, please use WikiFormatting, fill in the Port field and add the port maintainer(s) to Cc (port info --maintainers mongodb), if any.

comment:2 Changed 6 years ago by mf2k (Frank Schima)

Description: modified (diff)
Keywords: mongodb removed
Owner: set to ryandesign
Port: mongodb added
Status: newassigned

comment:3 Changed 6 years ago by ryandesign (Ryan Carsten Schmidt)

Keywords: elcapitan added
Summary: Error: Failed to build mongodb: command execution failedmongodb @4.0.3: error: no member named 'SSLCopyRequestedPeerNameLength' in the global namespace

Hmm. Apple documentation says those symbols are available on 10.11 and later, and they do appear to be defined in the 10.11 SDK. Not sure why they're not found. I'll have to investigate further and/or report it to the developers.

comment:4 Changed 6 years ago by dbl001 (dbl)

Any news on this issue?

comment:5 Changed 6 years ago by ryandesign (Ryan Carsten Schmidt)

Changed 6 years ago by ryandesign (Ryan Carsten Schmidt)

Attachment: mongodb-10.11.patch added

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

In the upstream ticket we've figured out why this is happening. I've attached the patch I'm testing, if you want to try it too.

comment:7 Changed 6 years ago by dbl001 (dbl)

I had to installld64, then everything worked. E.g.

$ sudo port install ld64 +ld64_xcode
Last edited 6 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:8 Changed 6 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: assignedclosed

In 1cd87b5e3190bbf12e86a66bd678a6d1811eb8ab/macports-ports (master):

mongodb: Fix build failure on OS X 10.11

Use the 10.12 SDK on OS X 10.11 to get the prototypes of some security
framework functions that are part of 10.11 but which were not in the
10.11 SDK headers.

Closes: #57348

Note: See TracTickets for help on using tickets.