[omniORB] omniORB 4.2.3 - mingw x86 - COSDynamic423_rt link error

DIETMAR MAY dietmar.may at outlook.com
Fri Mar 15 00:55:09 GMT 2019


Fails because COS423_rt.lib doesn't exist with mingw, probably an output of a Visual Studio compile.

Resolved by referencing with standard gcc -l syntax.

The error is:

+ /usr/bin/i686-w64-mingw32-g++ -shared -mthreads -Wl,-export-all -Wl,--dll -oshared/COSDynamic423_rt.dll -Wl,--out-implib,shared/libCOSDynamic423_rt.a -Wl,--output-def,shared/COSDynamic4.def -Wl,--enable-runtime-pseudo-reloc -L../../../../lib/x86_win32 shared/TimeBaseDynSK.o shared/CosTimeDynSK.o shared/CosEventCommDynSK.o shared/CosEventChannelAdminDynSK.o shared/CosNotificationDynSK.o shared/CosNotifyCommDynSK.o shared/CosNotifyFilterDynSK.o shared/CosNotifyChannelAdminDynSK.o shared/CosLifeCycleDynSK.o COS423_rt.lib -lomniORB423_rt -lomniDynamic423_rt -lomnithread41_rt -lws2_32 -lmswsock -ladvapi32
i686-w64-mingw32-g++: error: COS423_rt.lib: No such file or directory
make[3]: *** [dir.mk:89: shared/libCOSDynamic423_rt.a] Error 1

COS423_rt is built here:

+ rm -f shareddebug/libCOS423_rtd.a
+ /usr/bin/i686-w64-mingw32-g++ -shared -mthreads -Wl,-export-all -Wl,--dll -oshareddebug/COS423_rtd.dll -Wl,--out-implib,shareddebug/libCOS423_rtd.a -Wl,--output-def,shareddebug/COS4d.def -Wl,--enable-runtime-pseudo-reloc -L../../../../lib/x86_win32 shareddebug/TimeBaseSK.o shareddebug/CosTimeSK.o shareddebug/CosEventCommSK.o shareddebug/CosEventChannelAdminSK.o shareddebug/CosNotificationSK.o shareddebug/CosNotifyCommSK.o shareddebug/CosNotifyFilterSK.o shareddebug/CosNotifyChannelAdminSK.o shareddebug/CosLifeCycleSK.o -lomniORB423_rtd -lomniDynamic423_rtd -lomnithread41_rtd -lws2_32 -lmswsock -ladvapi32
+ install -c debug/libCOS4d.a ../../../../lib/x86_win32
+ install -c shareddebug/libCOS423_rtd.a ../../../../lib/x86_win32
+ install -c shareddebug/COS423_rtd.dll ../../../../bin/x86_win32
make[3]: Leaving directory '/misc/download/omniORB-4.2.3/src/services/mklib/stublib'

Resolved by changing src/services/mklib/dynstublib/dir.mk:

dynimps := $(patsubst $(DLLDebugSearchPattern),$(DLLNoDebugSearchPattern), $(OMNIORB_LIB) \
           -lCOS$(OMNIORB_MAJOR_VERSION)$(OMNIORB_MINOR_VERSION)$(OMNIORB_MICRO_VERSION)_rt)


dbugimps  :=  $(patsubst $(DLLNoDebugSearchPattern),$(DLLDebugSearchPattern), $(OMNIORB_LIB) \
             -lCOS$(OMNIORB_MAJOR_VERSION)$(OMNIORB_MINOR_VERSION)$(OMNIORB_MICRO_VERSION)_rtd)

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.omniorb-support.com/pipermail/omniorb-list/attachments/20190315/539fa225/attachment-0001.html>


More information about the omniORB-list mailing list