From: FredCL on
Julian Smart a ?crit :
> 8th November 2006: wxWidgets 2.7.2 (a development release) is now
> available for download via http://www.wxwidgets.org/downloads. The main
> changes since 2.7.1 are listed below; also, Core Graphics support for
> wxMac has been radically improved.

f:\msys\1.0\mingw\bin\..\lib\gcc\mingw32\3.4.2\..\..\..\..\mingw32\bin\ld.exe:
cannot open linker script file
/home/Fred/wxMSW-2.7.2/build/version-script: No such file or directory
collect2: ld returned 1 exit status
make: *** [/home/Fred/wxMSW-2.7.2/build/lib/wxbase272u_gcc_custom.dll]
Error 1

From: FredCL on
Vadim Zeitlin a ?crit :
> On Wed, 08 Nov 2006 19:01:48 +0100 FredCL <cfred_antispam_(a)free.fr> wrote:
>
> F> f:\msys\1.0\mingw\bin\..\lib\gcc\mingw32\3.4.2\..\..\..\..\mingw32\bin\ld.exe:
> F> cannot open linker script file
> F> /home/Fred/wxMSW-2.7.2/build/version-script: No such file or directory
>
> It looks like version-script was not created by configure for some reason
> (you build using configure, don't you?). Could you please look at configure
> output and check what did it say about version-script, near the end of the
> configuration process?
>
> Thanks,
> VZ
>
configure said this :
....
checking if the linker accepts --version-script... yes
....
config.status: creating version-script
....

The file version-script is created and exists in
F:\msys\1.0\home\Fred\wxMSW-2.7.2\build

but when make :
f:\msys\1.0\mingw\bin\..\lib\gcc\mingw32\3.4.2\..\..\..\..\mingw32\bin\ld.exe:
cannot open linker script file
/home/Fred/wxMSW-2.7.2/build/version-script: No such file or directory
collect2: ld returned 1 exit status
make: *** [/home/Fred/wxMSW-2.7.2/build/lib/wxbase272u_gcc_custom.dll]
Error 1

I understand nothing!
From: chris elliott on
I have seen this too; does passing a relative path to configure fix it ?
chris

FredCL wrote:
>
> Julian Smart a ?crit :
>> 8th November 2006: wxWidgets 2.7.2 (a development release) is now
>> available for download via http://www.wxwidgets.org/downloads. The
>> main changes since 2.7.1 are listed below; also, Core Graphics support
>> for wxMac has been radically improved.
>
> f:\msys\1.0\mingw\bin\..\lib\gcc\mingw32\3.4.2\..\..\..\..\mingw32\bin\ld.exe:
> cannot open linker script file
> /home/Fred/wxMSW-2.7.2/build/version-script: No such file or directory
> collect2: ld returned 1 exit status
> make: *** [/home/Fred/wxMSW-2.7.2/build/lib/wxbase272u_gcc_custom.dll]
> Error 1
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: wx-users-unsubscribe(a)lists.wxwidgets.org
> For additional commands, e-mail: wx-users-help(a)lists.wxwidgets.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: wx-users-unsubscribe(a)lists.wxwidgets.org
For additional commands, e-mail: wx-users-help(a)lists.wxwidgets.org

From: FredCL on
Vadim Zeitlin a ?crit :
>
> I don't really understand what's going on neither and I don't see it here
> using the same mingw32 3.4.2 and msys. Where is /home mounted in your case
> (just type mount under msys)?
>
> Regards,
> VZ
I have never had this sort of problem. I compile as it since the version
2.5.3, and it is the first time when an error comes.

Cordially

Fred Cailleau-Lepetit
From: chris elliott on
several points on this:

1) configure puts version-script in the directory that make will be run
in, so one working solution is to change

EXTRALIBS = -mthreads
-Wl,--version-script,$(wx_top_builddir)/version-script -lrpcrt4 ...

to
EXTRALIBS = -mthreads -Wl,--version-script,./version-script -lrpcrt4 ...

2) we also need to fix utils/wxrc/Makefile


3) I read
http://sourceware.org/binutils/docs-2.17/ld/Options.html#index-g_t_002d_002dversion_002dscript_003d_0040var_007bversion_002dscriptfile_007d-219
that version-script was only useful on ELF platforms

4) I think the introduction of ${wx_top_builddir} has later problems:
Can't open .lib file: /c/wx/wxWidgets.cje2/mymsys/lib/libwx_based-2.7.dll.a
collect2: ld returned 1 exit status
make: *** [/c/wx/wxWidgets.cje2/mymsys/lib/wxbase272d_gcc_custom.dll]
Error 1

Is using a relative path of wx_top_builddir
wx_top_builddir = ./
in Makefile possible; it seems to fix builds done in wxWidgets/mymsys

chris

Vadim Zeitlin wrote:
> On Thu, 9 Nov 2006 10:22:33 +0100 hphest(a)vip.cybercity.dk wrote:
>
>> I'm seeing the exact same problem with wx 2.7.2 (the wxAll tar.gz).
>
> In fact I do see the same problem myself too... I'll fix it for 2.8.0 by
> simply disabling the version script usage under mingw32, it's useless there
> anyhow. And the handling of version script seems buggy, it works if you
> replace the Unix-like path /c/foo/version-script with the DOS-like
> c:/foo/version-script which can't be intentional.
>
> Thanks,
> VZ
>

---------------------------------------------------------------------
To unsubscribe, e-mail: wx-users-unsubscribe(a)lists.wxwidgets.org
For additional commands, e-mail: wx-users-help(a)lists.wxwidgets.org