Currently we are building the grpc_csharp_ext.dll like this

```
set ARCHITECTURE=%1

call "C:\Program Files (x86)\Microsoft Visual 
Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" %ARCHITECTURE%

set OpenSSLVer=Win32
if "%ARCHITECTURE%" == "x64" (
  set OpenSSLVer=Win64
)

cmake -G Ninja -DCMAKE_C_COMPILER=cl.exe -DCMAKE_CXX_COMPILER=cl.exe 
-DCMAKE_BUILD_TYPE=RelWithDebInfo -DgRPC_SSL_PROVIDER:STRING=package 
-DOPENSSL_ROOT_DIR:PATH=c:\OpenSSL-%OpenSSLVer% -DgRPC_BUILD_TESTS=OFF 
-DgRPC_MSVC_STATIC_RUNTIME=ON 
../../../..

cmake --build . --target grpc_csharp_ext
```

with small changes in the CMakeList.txt to link with static OpenSSL lib
```
target_link_libraries(grpc_csharp_ext
  ${_gRPC_ALLTARGETS_LIBRARIES}
  ${_gRPC_SSL_LIBRARIES}
  gpr
  grpc
)
```
This was working fine in version 1.28. Now we updated our soruces to 1.41 
and the build of the dll failed with some Linker errors

```

upb.lib(text_encode.c.obj) : error LNK2019: unresolved external symbol 
upb_fielddef_isseq referenced in function txtenc_
msg
upb.lib(reflection.c.obj) : error LNK2001: unresolved external symbol 
upb_fielddef_isseq
upb.lib(text_encode.c.obj) : error LNK2019: unresolved external symbol 
upb_fielddef_ismap referenced in function txtenc_
msg
upb.lib(reflection.c.obj) : error LNK2001: unresolved external symbol 
upb_fielddef_ismap
upb.lib(text_encode.c.obj) : error LNK2019: unresolved external symbol 
upb_fielddef_msgsubdef referenced in function txt
enc_array
upb.lib(reflection.c.obj) : error LNK2001: unresolved external symbol 
upb_fielddef_msgsubdef
upb.lib(text_encode.c.obj) : error LNK2019: unresolved external symbol 
upb_fielddef_enumsubdef referenced in function tx
tenc_array
...
...
``` 
When running the `run_tests.py` it also failed with `Some tests failed`. 
Did something change between the versions for building the 
grpc_csharp_ext.dll? 

-- 
You received this message because you are subscribed to the Google Groups 
"grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/20bf2c67-e080-4aee-819b-2655150d2e7en%40googlegroups.com.

Reply via email to