| Is this a linker problem?
----- Original Message -----
From: "Michael Gogins"
To: "Csound" ; "Csound Developers"
Sent: Friday, October 17, 2008 1:07 AM
Subject: [Csnd] Windows problems
>I have made some progress in understanding and fixing problems with running
>Csound on Windows, e.g. as reported by Art Hunkins.
>
> First, I have backed out the use of Visual C++ to build all third-party
> libraries, even though I had to jump through some hoops to configure and
> build them, and even make some SConstruct build files for some of the
> libraries that wouldn't ./configure; make or didn't have their own
> SConstruct. There is therefore no more dependency on the Microsoft runtime
> library.
>
> Second, the MinGW compiler I am using, gcc version 4.2.1-dw2 (mingw32-2),
> seems to have a problem with relocating shared libraries. This is what
> causes Csound to fail to load some plugins and opcodes. This is from the
> Nabble MinGW forum:
>
> The problem is that DLLs generated by MingW GCC (with -shared) are not
> correctly relocatable, even though they contain relocation information.
> LoadLibrary() returns ERROR_NOACCESS if it is forced to relocate the DLL
> and a backtrace shows a blind jump into bad memory from
> __gcc_register_frame.
>
> I found that the problem was not as serious with command-line Csound as it
> is with csound5gui or CsoundVSTShell, and I was able to fix up the
> fluidOpcodes.dll library by linking it with a static FluidSynth library,
> thus avoiding one potential relocation. However, this kind of problem can
> manifest itself differently on different versions of Windows and on
> different computers with different amounts of memory, etc. For me, there
> is still a problem with stdutil.dll and HrtfX.dll.
>
> The relocation can be resolved by reverting to gcc version 3.4.5, but
> unfortunately gcc version 4.2.1-dw2 is quite a bit faster running Csound!
>
> I am going to see if I can build and run Csound with the setjump-longjump
> version of MinGW (gcc version 4.2.1-sjlj), and look for workarounds. If
> that doesn't work, I'm not really sure what to do -- probably revert to an
> earlier version of gcc.
>
> Regards,
> Mike
>
>
>
>
>
> Send bugs reports to this list.
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
> csound"
|