Unable to build Mongo-C-Driver on AIX

44 views
Skip to first unread message

Mohit

unread,
Jun 22, 2017, 5:44:25 PM6/22/17
to mongodb-user

Hello,


I am tring to build the mongo c driver on AIX from mongo-c-driver-1.5.0.tar.gz. I am currently on AIX 6.1.0.0 with gcc 4.2.4.

./configure runs fine. However, when I run make. I am getting a bunch of warnings and the following error:


$ make

Making all in src/libbson

Target "all" is up to date.

  CC       src/mongoc/libmongoc_1_0_la-mongoc-counters.lo

In file included from src/mongoc/mongoc-counters.c:34:

src/mongoc/mongoc-counters-private.h:78:3: warning: #warning "_mongoc_get_cpu_count() not supported, defaulting to 1."

src/mongoc/mongoc-counters.c: In function 'mongoc_counters_alloc':

src/mongoc/mongoc-counters.c:172: error: 'O_NOFOLLOW' undeclared (first use in this function)

src/mongoc/mongoc-counters.c:172: error: (Each undeclared identifier is reported only once

src/mongoc/mongoc-counters.c:172: error: for each function it appears in.)

make: 1254-004 The error code from the last command is 1.



Stop.

make: 1254-004 The error code from the last command is 1.



Stop.



Can you tell me what I need to do in order to build mongo-c-driver on AIX.

Thanks

A. Jesse Jiryu Davis

unread,
Jun 24, 2017, 10:24:12 AM6/24/17
to mongodb-user
Hi, try disabling the code that refers to O_NOFOLLOW, by disabling shared-memory performance counters:

./configure --disable-shm-counters

Note that AIX is not officially supported, but I hope that this will work for you.
Reply all
Reply to author
Forward
0 new messages