[CDRIVER-3939] ENABLE_ICU=OFF does not prevent libmongoc from linking Created: 29/Mar/21  Updated: 20/May/21  Resolved: 20/May/21

Status: Closed
Project: C Driver
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Clyde Bazile III (Inactive) Assignee: Roberto Sanchez
Resolution: Cannot Reproduce Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to CDRIVER-3915 Static linking failing Closed
is related to CXX-2201 Getting "could not start SASLPrep for... Closed

 Description   

Testing locally, ENABLE_ICU=OFF (as specified in our docs here) results in linking errors. For example, the error:

/usr/bin/ld: /mongo-c-driver/src/libmongoc/src/mongoc/mongoc-scram.c:1065: undefined reference to `u_strFromUTF8_67'.

However, MONGOC_ENABLE_ICU=OFF compiles without issue but for some users (see CDRIVER-3915) this does not prevent libmongoc from linking against libicu.

We should investigate why the options above do not prevent libicu from linking.



 Comments   
Comment by Roberto Sanchez [ 20/May/21 ]

I have validated that the ENABLE_ICU flag correctly functions for both ON and OFF values. The failure does not occur for any combination of flags I can come up with.

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