[CDRIVER-514] undefined reference to `bson_atomic_int64_add' (mongo-c-driver-1.1.0) in armv7l Created: 23/Jan/15  Updated: 18/May/15  Resolved: 18/May/15

Status: Closed
Project: C Driver
Component/s: Build, libbson
Affects Version/s: None
Fix Version/s: 1.1.5

Type: Bug Priority: Major - P3
Reporter: Samantha Ritter (Inactive) Assignee: Unassigned
Resolution: Done Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
is duplicated by CDRIVER-515 Undefined reference "bson_atomic_int6... Closed

 Description   

(ported from github)

Compile with:

Linux 3.4.75+ #6 PREEMPT Wed Mar 19 13:53:29 EET 2014 armv7l GNU/Linux

$ gcc --versiongcc (Debian 4.6.3-14) 4.6.3
Copyright (C) 2011 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE

../mongoDB_C_Driver/mongo-c-driver-1.1.0
$ ./configure
This is an unstable version of libmongoc.
It is for test purposes only.

 Please, DO NOT use it in a production environment.
 It will probably crash and you will lose your data.
 
 Additionally, the API/ABI may change during the course
 of development.
 
 Thanks,
 
   The libmongoc team.
 
 *** END OF WARNING ***
 
 
libmongoc was configured with the following options:
 
Build configuration:
  Enable debugging (slow)                          : no
  Compile with debug symbols (slow)                : no
  Enable GCC build optimization                    : yes
  Enable automatic binary hardening                : yes
  Code coverage support                            : no
  Cross Compiling                                  : no
  Fast counters                                    : no
  SASL                                             : no
  SSL                                              : yes
  Libbson                                          : system
 
Documentation:
  man                                              : no
  HTML                                             : no

$ make

CC src/mongoc/libmongoc_1_0_la-mongoc-scram.lo
CC src/mongoc/libmongoc_1_0_la-mongoc-stream-tls.lo
CC src/mongoc/libmongoc_1_0_la-mongoc-ssl.lo
CCLD libmongoc-1.0.la
CC src/tools/mongoc_stat-mongoc-stat.o
src/tools/mongoc-stat.c: In function âmongoc_counters_print_infoâ:
src/tools/mongoc-stat.c:184:15: warning: cast increases required alignment of target type [-Wcast-align]
CCLD mongoc-stat
CC tests/test_load-test-load.o
CC tests/test_load-mongoc-tests.o
CCLD test-load
./.libs/libmongoc-priv.so: undefined reference to bson_atomic_int64_add' collect2: ld returned 1 exit status make[1]: *** [test-load] Error 1 make[1]: Leaving directory/home/prjsprod/install/mongoDB_C_Driver/mongo-c-driver-1.1.0'
make: *** [all-recursive] Error 1

My best regards to all the menbers mongo-c-driver.



 Comments   
Comment by A. Jesse Jiryu Davis [ 18/May/15 ]

Fixed in https://github.com/mongodb/libbson/commit/d2f337ef14f694d0b35a6ce5a06efa4e299d7d00

Generated at Wed Feb 07 21:09:44 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.