[CDRIVER-1957] Build C Driver tests on MinGW 6.2.0 fails Created: 16/Dec/16  Updated: 25/Jan/17  Resolved: 25/Jan/17

Status: Closed
Project: C Driver
Component/s: Build, libmongoc, mingw, tests
Affects Version/s: 1.5.0
Fix Version/s: 1.6.0

Type: Bug Priority: Minor - P4
Reporter: Evgheni Popusoi Assignee: A. Jesse Jiryu Davis
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

OS- Windows-6.1.7601
PROCESSOR: AMD64
MinGW version x86_64-6.2.0-posix-sjlj-rt_v5-rev1
MSYS 1.0


Attachments: Text File buildlog.txt     Text File config.log    

 Description   

Hello.
Build v1.5.0 under MinGW 6.2.0 fails.

commands are.

./configure
make -j4

config.log attached

Here is some log message.

tests/test_libmongoc-test-mongoc-command-monitoring.o:test-mongoc-command-monitoring.c:(.text+0x239c): undefined reference to `realpath'
tests/test_libmongoc-test-mongoc-max-staleness.o:test-mongoc-max-staleness.c:(.text+0xc9c): undefined reference to `realpath'
tests/test_libmongoc-test-mongoc-sdam.o:test-mongoc-sdam.c:(.text+0x1c): undefined reference to `realpath'
tests/test_libmongoc-test-mongoc-sdam.o:test-mongoc-sdam.c:(.text+0x45): undefined reference to `realpath'
tests/test_libmongoc-test-mongoc-sdam.o:test-mongoc-sdam.c:(.text+0x6e): undefined reference to `realpath'
tests/test_libmongoc-test-mongoc-sdam.o:test-mongoc-sdam.c:(.text+0x93): more undefined references to `realpath' follow
collect2.exe: error: ld returned 1 exit status
make[1]: *** [test-libmongoc.exe] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory `/d/Libraries/Unpacked/mongo/mongo-c-driver-1.5.0'
make: *** [all-recursive] Error 1



 Comments   
Comment by Githook User [ 25/Jan/17 ]

Author:

{u'username': u'ajdavis', u'name': u'A. Jesse Jiryu Davis', u'email': u'jesse@mongodb.com'}

Message: CDRIVER-1957 fix test-libmongoc build in MinGW-W64
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/c4e5eb71bbb92ef01d12906d531a909683720f6a

Comment by Evgheni Popusoi [ 16/Dec/16 ]

Thx

Comment by A. Jesse Jiryu Davis [ 16/Dec/16 ]

Thanks for the report. As a workaround, can you ./configure --disable-tests?

Comment by Evgheni Popusoi [ 16/Dec/16 ]

Full build log

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