The testbot seems to have an out-of-date version of mingw32, or at least, its linker, ld.exe.
I'm trying to run tests for GetConsoleScreenBufferInfoEx, a function available on Vista and higher. But the build VM's linker is failing with an undefined reference:
reg.o: In function `test_GetConsoleScreenBufferInfoEx': /home/winetest/tools/testbot/var/build-mingw32/programs/reg/tests/../../../../wine/programs/reg/tests/reg.c:489: undefined reference to `__imp__GetConsoleScreenBufferInfoEx@8' collect2: ld returned 1 exit status winegcc: i686-w64-mingw32-gcc failed
My machine is able to compile the tests. It also has no trouble building a separate .exe using i686-w64-mingw32-gcc.
My machine has: - mingw32 gcc version 4.8.2 (GCC) - mingw32 ld version: GNU ld (GNU Binutils) 2.23.52.20130620
-- Hugh McMaster
Hugh McMaster hugh.mcmaster@outlook.com wrote:
The testbot seems to have an out-of-date version of mingw32, or at least, its linker, ld.exe.
I'm trying to run tests for GetConsoleScreenBufferInfoEx, a function available on Vista and higher.
Then using GetProcAddress() is the only solution.
On Monday, 28 Dec 2015 15:20:23 +0800, Dmitry Timoshkov wrote:
Hugh McMaster wrote:
The testbot seems to have an out-of-date version of mingw32, or at least, its linker, ld.exe.
I'm trying to run tests for GetConsoleScreenBufferInfoEx, a function available on Vista and higher.
Then using GetProcAddress() is the only solution.
Yes. Until the build software can be updated.
On 28.12.2015 13:04, Hugh McMaster wrote:
On Monday, 28 Dec 2015 15:20:23 +0800, Dmitry Timoshkov wrote:
Hugh McMaster wrote:
The testbot seems to have an out-of-date version of mingw32, or at least, its linker, ld.exe.
I'm trying to run tests for GetConsoleScreenBufferInfoEx, a function available on Vista and higher.
Then using GetProcAddress() is the only solution.
Yes. Until the build software can be updated.
If it's Vista+ you need GetProcAddress() regardless.
Hugh McMaster hugh.mcmaster@outlook.com wrote:
The testbot seems to have an out-of-date version of mingw32, or at least, its linker, ld.exe.
I'm trying to run tests for GetConsoleScreenBufferInfoEx, a function available on Vista and higher.
Then using GetProcAddress() is the only solution.
Yes. Until the build software can be updated.
Since the tests must be executed under versions of Windows earlier than Vista it's still needed to fallback to GetProcAddress().
On Monday, 28 Dec 2015 18:09:03 +0800, Dmitry Timoshkov wrote:
Hugh McMaster wrote:
The testbot seems to have an out-of-date version of mingw32, or at least, its linker, ld.exe.
I'm trying to run tests for GetConsoleScreenBufferInfoEx, a function available on Vista and higher.
Then using GetProcAddress() is the only solution.
Yes. Until the build software can be updated.
Since the tests must be executed under versions of Windows earlier than Vista it's still needed to fallback to GetProcAddress().
For the submitted tests, yes, I am doing that.
But for quick testing, it would be nice if GetModuleHandle() and GetProcAddress() weren't required. Calling documented Vista functions like GetConsoleScreenBufferInfoEx really shouldn't require special handling.