- Revenera Community
- :
- FlexNet Publisher
- :
- FlexNet Publisher Forum
- :
- FLEXNET 11.19.1 for windows Build issues with unresolved pthread symbols from lmgr.lib
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
I'm attempting on the windows platform to link FLEXNET's 11.19.1 software and I'm getting the f unresolved symbols below - all unresolved symbols are coming from lmgr.lib which came with FLEXNET's installation.
ALSO
Also I did a grep on the previous lmgr*lib files in FLEXNet (11.16) windows software we received and got NO references to pthread, BUT when I do it on the 11.19.1 version edition I get this
grep pthread lmgr*.lib
Binary file lmgras.lib matches
Binary file lmgr.lib matches
Binary file lmgrs.lib matches
REFERENCES to PTHREAD
Binary file lmgr_trl.lib matches
Here they are:
LINK /nologo /NODEFAULTLIB /OPT:NOREF /NXCOMPAT /DynamicBase /subsystem:CONSOLE lmnewgen.obj lmcode.obj libsimplifier.lib .\activation\lib\libnoact.lib lmgr.lib libcrvs.lib libsb.lib libredir_std.lib legacy_stdio_wide_specifiers.lib legacy_stdio_definitions.lib vcruntime.lib ucrt.lib oldnames.lib kernel32.lib user32.lib netapi32.lib gdi32.lib comdlg32.lib comctl32.lib wsock32.lib shell32.lib Rpcrt4.lib oleaut32.lib Ole32.lib Wbemuuid.lib wintrust.lib crypt32.lib Ws2_32.lib iphlpapi.lib Psapi.lib advapi32.lib Shlwapi.lib dhcpcsvc.lib userenv.lib Setupapi.lib normaliz.lib lmgr_dongle.lib msvcrt.lib /out:lmnewgen.exe
lmgr.lib(cmn_sock_impl.obj) : error LNK2001: unresolved external symbol pthread_mutex_lock
lmgr.lib(l_ssl.obj) : error LNK2001: unresolved external symbol pthread_mutex_lock
lmgr.lib(cmn_vm.obj) : error LNK2001: unresolved external symbol pthread_mutex_lock
lmgr.lib(cmn_tpm.obj) : error LNK2001: unresolved external symbol pthread_mutex_lock
lmgr.lib(cmn_net.obj) : error LNK2001: unresolved external symbol pthread_mutex_lock
lmgr.lib(lm_init.obj) : error LNK2001: unresolved external symbol pthread_mutex_lock
lmgr.lib(l_diagnostics.obj) : error LNK2001: unresolved external symbol pthread_mutex_lock
lmgr.lib(fnp_errorlogger.obj) : error LNK2001: unresolved external symbol pthread_mutex_lock
lmgr.lib(cmn_thread_impl.obj) : error LNK2001: unresolved external symbol pthread_mutex_lock
lmgr.lib(cmn_sock_impl.obj) : error LNK2001: unresolved external symbol pthread_mutex_unlock
lmgr.lib(l_ssl.obj) : error LNK2001: unresolved external symbol pthread_mutex_unlock
lmgr.lib(cmn_vm.obj) : error LNK2001: unresolved external symbol pthread_mutex_unlock
lmgr.lib(cmn_tpm.obj) : error LNK2001: unresolved external symbol pthread_mutex_unlock
lmgr.lib(cmn_net.obj) : error LNK2001: unresolved external symbol pthread_mutex_unlock
lmgr.lib(lm_init.obj) : error LNK2001: unresolved external symbol pthread_mutex_unlock
lmgr.lib(l_diagnostics.obj) : error LNK2001: unresolved external symbol pthread_mutex_unlock
lmgr.lib(fnp_errorlogger.obj) : error LNK2001: unresolved external symbol pthread_mutex_unlock
lmgr.lib(cmn_thread_impl.obj) : error LNK2001: unresolved external symbol pthread_mutex_unlock
lmgr.lib(cmn_thread_impl.obj) : error LNK2019: unresolved external symbol pthread_create referenced in function sFgblBlKjM9Cs12qCY9
lmgr.lib(cmn_thread_impl.obj) : error LNK2019: unresolved external symbol pthread_detach referenced in function yf8ng0FSMVs_GD5gxMH
lmgr.lib(cmn_thread_impl.obj) : error LNK2019: unresolved external symbol pthread_equal referenced in function d7Vpa7iYQqwrsN8RqJEYY57m
lmgr.lib(cmn_thread_impl.obj) : error LNK2019: unresolved external symbol pthread_join referenced in function zpe5xYyLR8RF1JIrI
lmgr.lib(cmn_thread_impl.obj) : error LNK2019: unresolved external symbol pthread_self referenced in function uX0y46mEt9PoKDLlUihRiEv
lmgr.lib(cmn_thread_impl.obj) : error LNK2019: unresolved external symbol pthread_key_create referenced in function xiQRS5pfA8kE_ZmcRkSV_
lmgr.lib(cmn_thread_impl.obj) : error LNK2019: unresolved external symbol pthread_key_delete referenced in function xlRpN0Cbd1mmoKGzI
lmgr.lib(cmn_thread_impl.obj) : error LNK2019: unresolved external symbol pthread_setspecific referenced in function nHlYgMf81UAzS
lmgr.lib(cmn_thread_impl.obj) : error LNK2019: unresolved external symbol pthread_getspecific referenced in function mhzgJOL0qNmnD
lmgr.lib(cmn_thread_impl.obj) : error LNK2019: unresolved external symbol pthread_mutex_init referenced in function ieTcJ7SfBBP0OzP3XxIEV9N
lmgr.lib(cmn_thread_impl.obj) : error LNK2019: unresolved external symbol pthread_mutex_timedlock referenced in function d7Vpa7iYQqwrsN8RqJEYY57m
lmgr.lib(cmn_thread_impl.obj) : error LNK2019: unresolved external symbol pthread_mutex_trylock referenced in function goOd4Pc9xFV3xR2WlI692KcIwQ
lmgr.lib(cmn_thread_impl.obj) : error LNK2019: unresolved external symbol pthread_cond_init referenced in function splZrEZCMhjEtLCIezDuNC
lmgr.lib(cmn_thread_impl.obj) : error LNK2019: unresolved external symbol pthread_cond_wait referenced in function pNkpVzo0r_fLAvh_mYsO8O
lmgr.lib(cmn_thread_impl.obj) : error LNK2019: unresolved external symbol pthread_cond_timedwait referenced in function uX0y46mEt9PoKDLlUihRiEv
lmgr.lib(cmn_thread_impl.obj) : error LNK2019: unresolved external symbol pthread_cond_signal referenced in function dfd9oAC4icKqrkNGV
lmgr.lib(cmn_thread_impl.obj) : error LNK2019: unresolved external symbol pthread_cond_broadcast referenced in function sluapHqeK7YJSeA5eJG1
lmnewgen.exe : fatal error LNK1120: 19 unresolved externals
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.29.30133\bin\HostX64\x64\LINK.EXE"' : return code '0x460'
Stop.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Hi @cadencelic ,
Pthread was introduced from 11.17 FNP toolkits. So make sure all the libraries listed in the makefile and the ones listed under the section "Flexible API" in development environment guide are linked are linked especially libpthread.lib . The list and sequence of libraries provided in the makefile should be ample to get rid of any build warnings
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Hi @cadencelic ,
Pthread was introduced from 11.17 FNP toolkits. So make sure all the libraries listed in the makefile and the ones listed under the section "Flexible API" in development environment guide are linked are linked especially libpthread.lib . The list and sequence of libraries provided in the makefile should be ample to get rid of any build warnings
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Thanks for your prompt replyand your prompting of what to do. I could not find any reference to libpthread.lib in the FNP_devenv.pdf part of the FNP_11.19.1_doclib.pdf document. Also I made changes to makefile.template.ENH, .NOENH and makefile.NEOLINLD to reference libpthread.lib (update XTRALIB1, smallest change I could see to do). These are your files I believe/not sure though/not sure if I should be changing them)
Thanks again
CG
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Hi @cadencelic ,
The reference of "libpthread" can be seen in the makefile . You can do a quick search for it in the same file . All the libraries mentioned in the makefile have to be linked.
![](/skins/images/8CE4FAD0DE6F3A6F9D0567434D2D2DAE/responsive_peak/images/icon_anonymous_message.png)