rpmio/bson.h provide MONGO_INLINE and MONGO_EXPORT defines for Studio
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
RPM |
Fix Committed
|
Medium
|
Jeff Johnson |
Bug Description
rpm-5.4.12 on x86_64-
rpmio/bson.h appears to assume either GCC or Windows, so when using a non-gcc compiler the incorrect defines for MONGO_INLINE and expecially MONGO_EXPORT cause compilation problems.
source='bson.c' object='bson.lo' libtool=yes \
/bin/sh ../libtool --tag=CC --mode=compile cc -m64 -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I../build -I../lib -I../lib -I../rpmdb -I../rpmio -I../misc -I../beecrypt/
libtool: compile: cc -m64 -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I../build -I../lib -I../lib -I../rpmdb -I../rpmio -I../misc -I../beecrypt/
"bson.h", line 156: warning: old-style declaration or incorrect type for: __declspec
"bson.h", line 156: parameter not in identifier list: bson_init_zero
"bson.h", line 167: warning: no explicit type given for parameter: dllimport
"bson.h", line 167: syntax error before or at: __declspec
"bson.h", line 167: warning: old-style declaration or incorrect type for: __declspec
"bson.h", line 167: identifier redefined: __declspec
[ and so on, for pages ]
The fix is to provide suitable defines for MONGO_INLINE and especially MONGO_EXPORT
A possible patch is attached.
Changed in rpm: | |
assignee: | nobody → Jeff Johnson (n3npq) |
importance: | Undecided → Medium |
Changed in rpm: | |
milestone: | none → 5.4.13 |
Changed in rpm: | |
milestone: | 5.4.13 → 5.4.14 |
Applied: thanks for the patch.