The port for mongo-c-driver is out of date. I've created an update to the latest version (1.1.6) here: https://github.com/pusateri/ports/tree/master/devel libbson has been broken out into a different package and so there is a new port for libbson there as well. I can submit it in a different format if desired.
Reformat Summary and notify maintainer of existing port.
I just updated https://github.com/pusateri/ports/tree/master/devel with some minor edits to remove portlint warnings.
A commit references this bug: Author: wen Date: Fri Jul 3 04:12:59 UTC 2015 New revision: 391214 URL: https://svnweb.freebsd.org/changeset/ports/391214 Log: libbson is a library providing useful routines related to building, parsing, and iterating BSON documents. It is a useful base for those wanting to write high-performance C extensions to higher level languages such as python, ruby, or perl. https://github.com/mongodb/libbson PR: 200338 Submitted by: pusateri@bangj.com Changes: head/devel/Makefile head/devel/libbson/ head/devel/libbson/Makefile head/devel/libbson/distinfo head/devel/libbson/pkg-descr head/devel/libbson/pkg-plist
Hi, Is the email of maintainer and creator another of your mail ? wen
Thanks for your submission Tom. Could you please include, as attachments: * Changes as a unified diff against ports head * QA results for: portlint -AC poudriere testport (or bulk -t)
(In reply to Wen Heping from comment #4) No, I am not the maintainer, just someone interested in getting the port updated.
(In reply to Tom Pusateri from comment #6) I mean libbson. Because the email of libbson's maintainer and creator is waitman@waitman.net, is it another of your email ? wen
This is not fixed. mongo-c-driver is still at 0.7.1. I am not the maintainer. I have been trying to get this port updated for over a year and the maintainer appears to be inactive. I think a new maintainer is needed.
I took your port from https://github.com/pusateri/ports/tree/master/devel/mongo-c-driver and tried to build it on 11amd64. It failed with: /bin/sh ./libtool --tag=CC --mode=link cc -I./src/mongoc -I./src/mongoc -I/usr/local/include/libbson-1.0 -O2 -pipe -fstack-protector -fno-strict-aliasing -Wall -Waggregate-return -Wcast-align -Wdeclaration-after-statement -Wempty-body -Wformat -Wformat-nonliteral -Wformat-security -Winit-self -Winline -Wmissing-include-dirs -Wno-strict-aliasing -Wno-uninitialized -Wredundant-decls -Wreturn-type -Wshadow -Wswitch-default -Wswitch-enum -Wundef -Wuninitialized -O2 -fstack-protector -o filter-bsondump examples/filter_bsondump-filter-bsondump.o libmongoc-1.0.la -L/usr/local/lib -lbson-1.0 /usr/bin/ld: undefined reference to symbol `pthread_create@@FBSD_1.0' (try adding -lthr) //lib/libthr.so.3: could not read symbols: Bad value cc: error: linker command failed with exit code 1 (use -v to see invocation) Makefile:2047: recipe for target 'test-libmongoc' failed gmake[2]: *** [test-libmongoc] Error 1 Any ideas ?
(In reply to Kurt Jaeger from comment #9) My port tree on github is for version 1.1.6 and you are building it against libbson 1.1.9 that is already in the ports tree. These two libraries must be kept in sync. If you try to build my port of mongo-c-driver 1.1.6 against my version of libbson 1.1.6, it builds fine. So something changed between 1.1.6 and 1.1.9. I will update my github tree to 1.1.9 so that it will build agains the libbson 1.1.9 already in the tree. Then I can update my tree to the latest version that is 1.2.0.
Tested as mongo-c-driver 1.1.9, same problem ?
(In reply to Kurt Jaeger from comment #11) Right, I think the issue was created by changes in 1.1.7 which tried to fix concurrency issues in sasl2. I will update my tree for 1.1.9 if you give me a day or so.
(In reply to Tom Pusateri from comment #12) Ok, it was easier than I thought. I just update my tree: https://github.com/pusateri/ports/tree/master/devel/mongo-c-driver It needed an explicit LDFLAG (-pthread)
Test-builds on 11cur, 10.2a+i, 9.3 look good. Those two ports depend on this: net-mgmt/collectd5 net-mgmt/pmacct
(In reply to Tom Pusateri from comment #13) I just updated my github tree for mongo-c-driver to use newer ports infrastructure for autoreconf to match libbson port. I also removed the static libraries since they don't build anymore.
A commit references this bug: Author: pi Date: Sun Oct 18 19:33:03 UTC 2015 New revision: 399627 URL: https://svnweb.freebsd.org/changeset/ports/399627 Log: devel/mongo-c-driver: 0.7.1 -> 1.1.9 Changes: https://github.com/mongodb/mongo-c-driver/releases PR: 200338 Submitted by: Tom Pusateri <pusateri@bangj.com> Approved by: maintainer timeout Changes: head/devel/mongo-c-driver/Makefile head/devel/mongo-c-driver/distinfo head/devel/mongo-c-driver/files/ head/devel/mongo-c-driver/pkg-descr head/devel/mongo-c-driver/pkg-plist
Committed, thanks!