Hi Evan,
These functions are part of the “dbghelp” library that looks to be missing from your link line. I suspect that this library is needed in this case because it is a static build, for
a shared (DLL) build it would have been linked into COM I expect. If you edit
modules/libcom/test/Makefile
and change the PROD_SYS_LIBS_WIN32 line to be
PROD_SYS_LIBS_WIN32 += ws2_32 advapi32 user32 dbghelp
Does that help?
Freddie
From: Tech-talk <tech-talk-bounces at aps.anl.gov>
On Behalf Of Daykin, Evan via Tech-talk
Sent: 24 March 2022 18:55
To: EPICS tech-talk <tech-talk at aps.anl.gov>
Subject: cross-compiling Base 7.0.6 for win32
Hi Tech Talk,
I am attempting to build Base version 7.0.6, with “CROSS_COMPILER_TARGET_ARCHS=linux-x86_64-debug win32-x86-mingw” on Debian 11, kernel version 5.10.0-8-amd64. I am getting the following error:
/usr/bin/i686-w64-mingw32-g++ -o epicsTypesTest.exe -static -L/user/daykin/git/epics-base/lib/win32-x86-mingw -m32 -static-libgcc -static-libstdc++ epicsTypesTest.o -lCom -lws2_32 -ladvapi32 -luser32
-lws2_32
/usr/bin/i686-w64-mingw32-ld: /user/daykin/git/epics-base/lib/win32-x86-mingw/Com.lib(osdFindAddr.o):osdFindAddr.c:(.text+0x7b): undefined reference to `_imp__SymFromAddr@20'
/usr/bin/i686-w64-mingw32-ld: /user/daykin/git/epics-base/lib/win32-x86-mingw/Com.lib(osdFindAddr.o):osdFindAddr.c:(.text+0xf1): undefined reference to `_imp__SymSetOptions@4'
/usr/bin/i686-w64-mingw32-ld: /user/daykin/git/epics-base/lib/win32-x86-mingw/Com.lib(osdFindAddr.o):osdFindAddr.c:(.text+0x118): undefined reference to `_imp__SymInitialize@12'
/usr/bin/i686-w64-mingw32-ld: /user/daykin/git/epics-base/lib/win32-x86-mingw/Com.lib(osdFindAddr.o):osdFindAddr.c:(.text+0x1bd): undefined reference to `_imp__SymGetLineFromAddr64@20'
collect2: error: ld returned 1 exit status
I suppose this has something to do with the win32 API, but I’m not sure what I’m doing wrong; I have every gcc-mingw* package installed. Has anyone experienced this before?
Evan Daykin
Controls Engineer
Facility for Rare Isotope Beams
Michigan State University
640 South Shaw Lane
East Lansing, MI 48824, USA
Tel. 517-908-7678
Email: daykin at frib.msu.edu
|
|