[fpc-devel] Building trunk of today fails on Windows: Error: Invalid DLL C:\WINDOWS\system32\common.dll, invalid header size

Bart bartjunk64 at gmail.com
Sun Aug 22 23:46:25 CEST 2021


On Sun, Aug 22, 2021 at 5:40 AM J. Gareth Moreton via fpc-devel
<fpc-devel at lists.freepascal.org> wrote:

> This is a problem I run into all the time  Basically, the DLL is 64-bit
> and hence is invalid in a 32-bit binary.  This can be bypassd by
> commenting out the "{$linklib common}" line in .\oracle\src\oraoci.pp

I have now finally resorted to that.
Wrote a simple program to do that for me (no sed on windows).
Then adjusted my build script to run that program, build fpc, then do
a "git restore".

This, of course is an insane and stupid solution.

It would be very much appreciated if anybody can explain why this
(building trunk) worked before, but does not anymore.
Also can anybody explain why all the other {$linklib xxx} lines do NOT
cause compilation and linking to fail??

-- 
Bart


More information about the fpc-devel mailing list