libphonenumber failed to build due to error LNK2019: unresolved external symbol "public: static class i18n" with MSVC on windows

40 views
Skip to first unread message

Shino Yang

unread,
Jan 30, 2022, 2:05:36 AM1/30/22
to libphonenumber-discuss
Hi All,
Environment: VS2019 + Windows Server 2019
libphonenumber failed to build due to error LNK2019: unresolved external symbol "public: static class i18n. It can be reproduced on latest version fb46438 on master branch. Could you please help look at this issue?
Repro steps:
1. cd F:\gitP\microsoft\vcpkg
2. bootstrap-vcpkg.bat
3. vcpkg.exe install --recurse gtest protobuf re2 icu --triplet x64-windows --clean-after-build
4. git clone https://github.com/google/libphonenumber F:\libphonenumber
5. cd F:\libphonenumber\cpp && mkdir build_amd64
6. cd F:\libphonenumber\cpp\build_amd64
7. cmake -G "Visual Studio 16 2019" -A x64 -DCMAKE_SYSTEM_VERSION=10.0.18362.0 -DCMAKE_BUILD_TYPE=Release -DBOOST_ROOT=F:\tools\boost_1_77_0\x64 -DCMAKE_TOOLCHAIN_FILE="F:\gitP\microsoft\vcpkg\scripts\buildsystems\vcpkg.cmake" -DVCPKG_TARGET_TRIPLET=x64-windows -DPROTOC_BIN=F:\gitP\microsoft\vcpkg\installed\x64-windows\tools\protobuf\protoc.exe -DPROTOBUF_LIB=F:\gitP\microsoft\vcpkg\installed\x64-windows\lib\libprotobuf.lib -DUSE_STD_MAP=ON -DICU_I18N_LIB=F:\gitP\microsoft\vcpkg\installed\x64-windows\lib\icuin.lib -DUSE_ICU_REGEXP=OFF ..
8. msbuild /p:Configuration=Release;Platform=x64 libphonenumber.sln /t:Rebuild /m

Error info:
error_info.png
please check the attachment "cmake.log" detailed cmake log.
please check the attachment "msbuildx64_error.log" detailed build error log.

cmake.log
msbuildx64_error.log

Gilles Vollant

unread,
Jan 30, 2022, 4:22:31 AM1/30/22
to libphonenum...@googlegroups.com

Hello,

Can you test both released version 8.12.39 (before abseil patch) and 8.12.41 (latest release)

Aravind Penmetsa

unread,
Feb 2, 2022, 3:25:05 AM2/2/22
to libphonenum...@googlegroups.com
Hi,

We are not able to reproduce this issue as we are doing releases / testing in only linux VMs available.
Tested again at new and old release tags.. Working fine in Linux; build instructions here.


On Sun, 30 Jan 2022 at 14:52, Gilles Vollant <voll...@gmail.com> wrote:

Hello,

Can you test both released version 8.12.39 (before abseil patch) and 8.12.41 (latest release)

--
You received this message because you are subscribed to the Google Groups "libphonenumber-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to libphonenumber-di...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/libphonenumber-discuss/004701d815ba%24e82e04e0%24b88a0ea0%24%40gmail.com.


--
Thanks & Regards,
Aravind
Reply all
Reply to author
Forward
0 new messages