help-libidn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Hard-coded path in executable


From: Горшков Александр Серге евич
Subject: Hard-coded path in executable
Date: Fri, 01 Nov 2013 01:55:09 +0400
User-agent: Mozilla/5.0 (Windows NT 5.1; rv:24.0) Gecko/20100101 Firefox/24.0 SeaMonkey/2.21

I have tried to build a gtk+2.0 gladeui app on WindowsXP mingw32 with gcc 4.8.1 installed (latest).
Source with build script attached. The following output shows the problem:

-----------------------------------------------------------------------------------------------------------------------
main.c: In function `main':
main.c:26: warning: assignment from incompatible pointer type
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../mingw32/lib/crt2.o: In function `_mingw_setargv':
e:\p\giaw\src\pkg\mingwrt-4.0.3-1-mingw32-src\bld/../mingwrt-4.0.3-1-mingw32-src/src/libcrt/crt/init
.c:111: undefined reference to `__chkstk_ms'
f:/mingw/lib/libmingwex.a(glob.o): In function `glob_match':
e:\p\giaw\src\pkg\mingwrt-4.0.3-1-mingw32-src\bld/../mingwrt-4.0.3-1-mingw32-src/src/libcrt/misc/glo
b.c:733: undefined reference to `__chkstk_ms'
f:/mingw/lib/libmingwex.a(glob.o): In function `glob_strdup':
e:\p\giaw\src\pkg\mingwrt-4.0.3-1-mingw32-src\bld/../mingwrt-4.0.3-1-mingw32-src/src/libcrt/misc/glo
b.c:85: undefined reference to `__chkstk_ms'
f:/mingw/lib/libmingwex.a(glob.o): In function `glob_match':
e:\p\giaw\src\pkg\mingwrt-4.0.3-1-mingw32-src\bld/../mingwrt-4.0.3-1-mingw32-src/src/libcrt/misc/glo
b.c:841: undefined reference to `__chkstk_ms'
f:/mingw/lib/libmingwex.a(glob.o): In function `glob_strdup':
e:\p\giaw\src\pkg\mingwrt-4.0.3-1-mingw32-src\bld/../mingwrt-4.0.3-1-mingw32-src/src/libcrt/misc/glo
b.c:85: undefined reference to `__chkstk_ms'
f:/mingw/lib/libmingwex.a(glob.o):e:\p\giaw\src\pkg\mingwrt-4.0.3-1-mingw32-src\bld/../mingwrt-4.0.3
-1-mingw32-src/src/libcrt/misc/glob.c:85: more undefined references to `__chkstk_ms' follow
collect2: ld returned 1 exit status
-------------------------------------------------------------------------------------------------------------------------


I have found that in my instalation path f:\mingw\lib\gcc\mingw32\    two directories named: 3.4.5 and 4.8.1.

I have found that string /lib/gcc/mingw32/3.4.5 placed in f:\mingw\bin\libidn-11.dll and
f:\mingw\lib\libidn.a files.

Conclusion (IMHO): Looks like mingw and libidn related problem in return parts of wrapers, because they just return
hard-coded string while linking executable.

However, I copied files from the folder 4.8.1 to 3.4.5 having owerwrite an older.
The problem with undefined reference to `__chkstk_ms' has gone. :)

Related problem occurrence:
http://stackoverflow.com/questions/18649173/how-to-solve-undefined-reference-to-chkstk-ms-on-mingw/19716737#19716737
With regards, Главные Редакторы.


Attachment: build.sh
Description: Text document

Attachment: main.c
Description: Text Data

Attachment: main-window.glade
Description: Text Data

Attachment: main-window
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]