Opened 8 years ago

Closed 16 months ago

#52132 closed defect (fixed)

MongoObjCDriver @1.0.6: error: property 'UTF8String' not found on object of type 'id _Nullable'

Reported by: anufant@… Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 2.3.4
Keywords: Cc:
Port: MongoObjCDriver

Description

OS X El Capitan 10.11.6

During install of MongoHUB port i've got errors in MongoObjCDriver:

sudo port install MongoHUB
Password:
--->  Computing dependencies for MongoHub
--->  Dependencies to be installed: MongoObjCDriver
--->  Building MongoObjCDriver
Error: org.macports.build for port MongoObjCDriver returned: command execution failed
Error: Failed to install MongoObjCDriver
Please see the log file for port MongoObjCDriver for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_MongoObjCDriver/MongoObjCDriver/main.log
Error: The following dependencies were not installed: MongoObjCDriver
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
Error: Processing of port MongoHUB failed

And there is in log file:

:info:build CompileC build/MongoObjCDriver.build/Release/MongoObjCDriver.build/Objects-normal/x86_64/MODClient_utils.o Sources/MODClient_utils.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
:info:build     cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_MongoObjCDriver/MongoObjCDriver/work/MongoObjCDriver-1.0.6
:info:build     export LANG=en_US.US-ASCII
:info:build     /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -arch x86_64 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=c99 -Wno-trigraphs -fpascal-strings -Os -Wno-missing-field-initializers -Wmissing-prototypes -Wno-implicit-atomic-properties -Wno-arc-repeated-use-of-weak -Wno-missing-braces -Wparentheses -Wswitch -Wno-unused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wno-empty-body -Wno-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wno-constant-conversion -Wno-int-conversion -Wno-bool-conversion -Wno-enum-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wno-undeclared-selector -Wno-deprecated-implementations -D_MONGO_USE_GETADDRINFO=1 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk -fasm-blocks -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -mmacosx-version-min=10.11 -g -Wno-sign-conversion -iquote /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_MongoObjCDriver/MongoObjCDriver/work/MongoObjCDriver-1.0.6/build/MongoObjCDriver.build/Release/MongoObjCDriver.build/MongoObjCDriver-generated-files.hmap -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_MongoObjCDriver/MongoObjCDriver/work/MongoObjCDriver-1.0.6/build/MongoObjCDriver.build/Release/MongoObjCDriver.build/MongoObjCDriver-own-target-headers.hmap -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_MongoObjCDriver/MongoObjCDriver/work/MongoObjCDriver-1.0.6/build/MongoObjCDriver.build/Release/MongoObjCDriver.build/MongoObjCDriver-all-target-headers.hmap -iquote /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_MongoObjCDriver/MongoObjCDriver/work/MongoObjCDriver-1.0.6/build/MongoObjCDriver.build/Release/MongoObjCDriver.build/MongoObjCDriver-project-headers.hmap -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_MongoObjCDriver/MongoObjCDriver/work/MongoObjCDriver-1.0.6/build/Release/include -I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_MongoObjCDriver/MongoObjCDriver/work/MongoObjCDriver-1.0.6/Libraries/mongo-c-driver/src/libbson/src/bson -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_MongoObjCDriver/MongoObjCDriver/work/MongoObjCDriver-1.0.6/Libraries/mongo-c-driver/src/libbson/src -I/opt/local/include/libbson-1.0 -I/opt/local/include/libmongoc-1.0 -I/opt/local/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_MongoObjCDriver/MongoObjCDriver/work/MongoObjCDriver-1.0.6/build/MongoObjCDriver.build/Release/MongoObjCDriver.build/DerivedSources/x86_64 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_MongoObjCDriver/MongoObjCDriver/work/MongoObjCDriver-1.0.6/build/MongoObjCDriver.build/Release/MongoObjCDriver.build/DerivedSources -F/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_MongoObjCDriver/MongoObjCDriver/work/MongoObjCDriver-1.0.6/build/Release -DMONGOC_COMPILATION -DBSON_COMPILATION -MMD -MT dependencies -MF /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_MongoObjCDriver/MongoObjCDriver/work/MongoObjCDriver-1.0.6/build/MongoObjCDriver.build/Release/MongoObjCDriver.build/Objects-normal/x86_64/MODClient_utils.d --serialize-diagnostics /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_MongoObjCDriver/MongoObjCDriver/work/MongoObjCDriver-1.0.6/build/MongoObjCDriver.build/Release/MongoObjCDriver.build/Objects-normal/x86_64/MODClient_utils.dia -c /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_MongoObjCDriver/MongoObjCDriver/work/MongoObjCDriver-1.0.6/Sources/MODClient_utils.m -o /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_MongoObjCDriver/MongoObjCDriver/work/MongoObjCDriver-1.0.6/build/MongoObjCDriver.build/Release/MongoObjCDriver.build/Objects-normal/x86_64/MODClient_utils.o
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_MongoObjCDriver/MongoObjCDriver/wo
rk/MongoObjCDriver-1.0.6/Sources/MODClient_utils.m:137:13: warning: 8 enumeration values not handled in switch: 'MONGOC_ERROR_COLLECTION_UPDATE_FAILED', 'MO
NGOC_ERROR_COLLECTION_DELETE_FAILED', 'MONGOC_ERROR_WRITE_CONCERN_ERROR'... [-Wswitch]
:info:build     switch ((mongoc_error_code_t)error.code) {
:info:build             ^
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_MongoObjCDriver/MongoObjCDriver/work/MongoObjCDriver-1.0.6/Sources/MODClient_utils.m:495:78: error: property 'UTF8String' not found on object of type 'id _Nullable'
:info:build         bson_append_symbol(bson, keyString, strlen(keyString), [value value].UTF8String, strlen([value value].UTF8String));
:info:build                                                                              ^
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_MongoObjCDriver/MongoObjCDriver/work/MongoObjCDriver-1.0.6/Sources/MODClient_utils.m:495:111: error: property 'UTF8String' not found on object of type 'id _Nullable'
:info:build         bson_append_symbol(bson, keyString, strlen(keyString), [value value].UTF8String, strlen([value value].UTF8String));
:info:build                                                                                                               ^
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_MongoObjCDriver/MongoObjCDriver/work/MongoObjCDriver-1.0.6/Sources/MODClient_utils.m:442:43: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32]
:info:build         bson_append_null(bson, keyString, strlen(keyString));
:info:build         ~~~~~~~~~~~~~~~~                  ^~~~~~~~~~~~~~~~~
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_MongoObjCDriver/MongoObjCDriver/work/MongoObjCDriver-1.0.6/Sources/MODClient_utils.m:446:43: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32]
:info:build         bson_append_utf8(bson, keyString, strlen(keyString), cStringValue, strlen(cStringValue));
:info:build         ~~~~~~~~~~~~~~~~                  ^~~~~~~~~~~~~~~~~
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_MongoObjCDriver/MongoObjCDriver/work/MongoObjCDriver-1.0.6/Sources/MODClient_utils.m:446:76: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32]
:info:build         bson_append_utf8(bson, keyString, strlen(keyString), cStringValue, strlen(cStringValue));
:info:build         ~~~~~~~~~~~~~~~~                                                   ^~~~~~~~~~~~~~~~~~~~
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_MongoObjCDriver/MongoObjCDriver/work/MongoObjCDriver-1.0.6/Sources/MODClient_utils.m:450:53: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32]
:info:build         bson_append_document_begin(bson, keyString, strlen(keyString), &childBson);
:info:build         ~~~~~~~~~~~~~~~~~~~~~~~~~~                  ^~~~~~~~~~~~~~~~~
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_MongoObjCDriver/MongoObjCDriver/work/MongoObjCDriver-1.0.6/Sources/MODClient_utils.m:457:50: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32]
:info:build         bson_append_array_begin(bson, keyString, strlen(keyString), &childBson);
:info:build         ~~~~~~~~~~~~~~~~~~~~~~~                  ^~~~~~~~~~~~~~~~~
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_MongoObjCDriver/MongoObjCDriver/work/MongoObjCDriver-1.0.6/Sources/MODClient_utils.m:468:42: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32]
:info:build         bson_append_oid(bson, keyString, strlen(keyString), [value bsonObjectId]);
:info:build         ~~~~~~~~~~~~~~~                  ^~~~~~~~~~~~~~~~~
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_MongoObjCDriver/MongoObjCDriver/work/MongoObjCDriver-1.0.6/Sources/MODClient_utils.m:470:44: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32]
:info:build         bson_append_regex(bson, keyString, strlen(keyString), [value pattern].UTF8String, [(MODRegex *)value options].UTF8String);
:info:build         ~~~~~~~~~~~~~~~~~                  ^~~~~~~~~~~~~~~~~
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_MongoObjCDriver/MongoObjCDriver/work/MongoObjCDriver-1.0.6/Sources/MODClient_utils.m:472:48: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32]
:info:build         bson_append_timestamp(bson, keyString, strlen(keyString), [value tValue], [value iValue]);
:info:build         ~~~~~~~~~~~~~~~~~~~~~                  ^~~~~~~~~~~~~~~~~
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_MongoObjCDriver/MongoObjCDriver/work/MongoObjCDriver-1.0.6/Sources/MODClient_utils.m:475:47: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32]
:info:build             bson_append_bool(bson, keyString, strlen(keyString), [value boolValue]);
:info:build             ~~~~~~~~~~~~~~~~                  ^~~~~~~~~~~~~~~~~
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_MongoObjCDriver/MongoObjCDriver/work/MongoObjCDriver-1.0.6/Sources/MODClient_utils.m:479:48: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32]
:info:build             bson_append_int32(bson, keyString, strlen(keyString), [value intValue]);
:info:build             ~~~~~~~~~~~~~~~~~                  ^~~~~~~~~~~~~~~~~
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_MongoObjCDriver/MongoObjCDriver/work/MongoObjCDriver-1.0.6/Sources/MODClient_utils.m:482:49: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32]
:info:build             bson_append_double(bson, keyString, strlen(keyString), [value doubleValue]);
:info:build             ~~~~~~~~~~~~~~~~~~                  ^~~~~~~~~~~~~~~~~
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_MongoObjCDriver/MongoObjCDriver/work/MongoObjCDriver-1.0.6/Sources/MODClient_utils.m:484:48: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32]
:info:build             bson_append_int64(bson, keyString, strlen(keyString), [value longLongValue]);
:info:build             ~~~~~~~~~~~~~~~~~                  ^~~~~~~~~~~~~~~~~
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_MongoObjCDriver/MongoObjCDriver/work/MongoObjCDriver-1.0.6/Sources/MODClient_utils.m:487:48: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32]
:info:build         bson_append_date_time(bson, keyString, strlen(keyString), llround([value timeIntervalSince1970] * 1000.0));
:info:build         ~~~~~~~~~~~~~~~~~~~~~                  ^~~~~~~~~~~~~~~~~
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_MongoObjCDriver/MongoObjCDriver/work/MongoObjCDriver-1.0.6/Sources/MODClient_utils.m:489:45: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32]
:info:build         bson_append_binary(bson, keyString, strlen(keyString), BSON_SUBTYPE_BINARY, [value bytes], [value length]);
:info:build         ~~~~~~~~~~~~~~~~~~                  ^~~~~~~~~~~~~~~~~
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_MongoObjCDriver/MongoObjCDriver/work/MongoObjCDriver-1.0.6/Sources/MODClient_utils.m:489:100: warning: implicit conversion loses integer precision: 'NSUInteger' (aka 'unsigned long') to 'uint32_t' (aka 'unsigned int') [-Wshorten-64-to-32]
:info:build         bson_append_binary(bson, keyString, strlen(keyString), BSON_SUBTYPE_BINARY, [value bytes], [value length]);
:info:build         ~~~~~~~~~~~~~~~~~~                                                                         ^~~~~~~~~~~~~~
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_MongoObjCDriver/MongoObjCDriver/work/MongoObjCDriver-1.0.6/Sources/MODClient_utils.m:491:45: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32]
:info:build         bson_append_binary(bson, keyString, strlen(keyString), [value binaryType], [value binaryData].bytes, [value binaryData].length);
:info:build         ~~~~~~~~~~~~~~~~~~                  ^~~~~~~~~~~~~~~~~
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_MongoObjCDriver/MongoObjCDriver/work/MongoObjCDriver-1.0.6/Sources/MODClient_utils.m:491:110: warning: implicit conversion loses integer precision: 'NSUInteger' (aka 'unsigned long') to 'uint32_t' (aka 'unsigned int') [-Wshorten-64-to-32]
:info:build         bson_append_binary(bson, keyString, strlen(keyString), [value binaryType], [value binaryData].bytes, [value binaryData].length);
:info:build         ~~~~~~~~~~~~~~~~~~                                                                                   ^~~~~~~~~~~~~~~~~~~~~~~~~
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_MongoObjCDriver/MongoObjCDriver/work/MongoObjCDriver-1.0.6/Sources/MODClient_utils.m:493:48: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32]
:info:build         bson_append_undefined(bson, keyString, strlen(keyString));
:info:build         ~~~~~~~~~~~~~~~~~~~~~                  ^~~~~~~~~~~~~~~~~
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_MongoObjCDriver/MongoObjCDriver/work/MongoObjCDriver-1.0.6/Sources/MODClient_utils.m:497:48: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32]
:info:build         bson_append_undefined(bson, keyString, strlen(keyString));
:info:build         ~~~~~~~~~~~~~~~~~~~~~                  ^~~~~~~~~~~~~~~~~
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_MongoObjCDriver/MongoObjCDriver/work/MongoObjCDriver-1.0.6/Sources/MODClient_utils.m:499:45: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32]
:info:build         bson_append_minkey(bson, keyString, strlen(keyString));
:info:build         ~~~~~~~~~~~~~~~~~~                  ^~~~~~~~~~~~~~~~~
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_MongoObjCDriver/MongoObjCDriver/work/MongoObjCDriver-1.0.6/Sources/MODClient_utils.m:501:45: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32]
:info:build         bson_append_maxkey(bson, keyString, strlen(keyString));
:info:build         ~~~~~~~~~~~~~~~~~~                  ^~~~~~~~~~~~~~~~~
:info:build 22 warnings and 2 errors generated.

Change History (3)

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

Cc: ryandesign@… openmaintainer@… removed
Keywords: devel mongo removed
Owner: changed from macports-tickets@… to ryandesign@…
Port: @1.0.6 (devel) removed

Please do not Cc openmaintainer@… because it is not a valid email address.

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

Summary: Couldn't compile MongoObjCDriverMongoObjCDriver @1.0.6: error: property 'UTF8String' not found on object of type 'id _Nullable'

The MongoHub port in MacPorts is at version 2.7b10, which is very old. Unfortunately MongoHub and its MongoObjCDriver dependency have been very difficult to compile and although I have made several attempts and had several conversations with the developer about it I have not yet succeeded in updating the MongoHub port to a later version. I recommend you instead download the latest precompiled version of MongoHub from the developer's web site.

comment:3 Changed 16 months ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: newclosed

In 738185f160394d518575b43e1774d2d80e590603/macports-ports (master):

MongoObjCDriver: Delete

Closes: #52132

Note: See TracTickets for help on using tickets.