Earnie Boyd | 21 May 2013 23:40
Picon

_USE_32BIT_TIME_T and legacy MSVCRT.DLL

I've an issue[1] I'm trying to resolve which is quite complicated due
to the fact that MinGW supports legacy MSVCRT.DLL while trying to be
useful to the newest versions.  These functions needed for when the
macro _USE_32BIT_TIME_T is defined are only available in MSVCRT.DLL
beginning with Vista.  They exist in MSVCR80.DLL but we all know the
issues of mixing runtime DLL.  I've added the issues to the ticket
below which are quite involved.  My question here is should the
libmsvcrt.a import library contain the newest members of the Windows
OS family functions which would cause an incompatibility issue at
runtime if someone uses a function not available on previous OS
versions?  Or should we leave the newer functions out of libmsvcrt.a
import library and leave it up to the user to resolve the import?  One
way the user can resolve the import is to directly reference the
MSVCRT.DLL during the link phase rather than using the import library.
 Another would be for the user to add his functions to the
msvcrt.def.in file and build the runtime libraries from source.  What
do the MinGW users desire, runtime incompatibility or a plan to work
through the linker issues?  Does anyone have any bright ideas on the
issue?

[1] https://sourceforge.net/tracker/index.php?func=detail&aid=3571241&group_id=10894&atid=110894#

--

-- 
Earnie
-- https://sites.google.com/site/earnieboyd

------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
(Continue reading)

Oscar Benjamin | 20 May 2013 00:37
Picon

Fixing mingw support in Python's distutils

Hi all,

I haven't posted to this list before and I'm not sure if it's the
right place to ask this question. If not then please let me know. I'm
looking for some help in order to resolve a long-standing issue in
using mingw with Python.

Building extension modules for Python with recent versions of mingw
has been broken for some time now. I first encountered the problem
about two years ago and found this SO question
http://stackoverflow.com/questions/6034390/compiling-with-cython-and-mingw-produces-gcc-error-unrecognized-command-line-o
Shortly after that an issue was opened on the Python tracker:
http://bugs.python.org/issue12641
The issue has languished on the tracker for two years since then. As
someone who builds Python extension modules with mingw I have been
manually patching distutils in my own Python installations for some
time now. While this is acceptable for me I'd really like to get this
fixed so that mingw and Python can work together out of the box.

The issue is (as I understand it) caused by the fact that at some
point a mingw release removed the deprecated '-mno-cygwin' command
line option. I believe the option was a relic from when mingw forked
from cygwin's gcc and that it had at some point been turned into a
deprecated no-op before at some other point being removed entirely.
With mingw releases since then it has been necessary to patch
distutils removing the option in order to build Python extension
modules with mingw. That much has been understood since two years ago.
However the patch to simply remove the option has not been accepted. I
think this is because the core Python devs are unsure who is using
mingw with Python, what versions of mingw they are using and what
(Continue reading)

Stephen Kelly | 19 May 2013 22:36
Picon

All symbols exported from shared library?

Hi there,

After reading

  http://www.mingw.org/wiki/sampleDLL

I tried to create a dll and use it, cross compiling on ubuntu. I simplified
the example code somewhat.

$ cat lib.h

#ifdef BUILDING_EXAMPLE_DLL
#define EXAMPLE_DLL __declspec(dllexport)
#else
#define EXAMPLE_DLL __declspec(dllimport)
#endif

int myveryeasymethod(void);

$ cat lib.c

#include "lib.h"

int myveryeasymethod(void)
{ return 42; }

$ cat main.c

#include <stdio.h>

(Continue reading)

Earnie Boyd | 17 May 2013 23:25
Picon

What version of MSVCRT.DLL do you have?

I'm doing some research into determining at configure time what
version of MSVCRT.DLL is actually available on a system.  I've created
a small shell script for you to run that is attached.  What I need is
some input from you as to whether or not this method could be used to
create a m4 script for configure to use to set a MSVCRT_VERSION
variable in config.h.

The issue I'm trying to overcome is the system on XP doesn't have some
functions and data structures in MSVCRT that Vista/Win7/Win8 etc have
such as the stat structure being defined in stat.h.  It is quite
maddening.  So if we can set MSVCRT_VERSION reliably based on data
from MSVCRT.DLL itself we can overcome some of the harrowing issues.

The value I get on my XP SP3 is 710.  The value I get on my Win7 laptop is 900.

The values are (MajorLinkerVersion * 100) + MinorLinkerVersion where
LinkerVersion refers to the version of MSVC that was used to create
MSVCRT.DLL that exists on your system.

--

-- 
Earnie
-- https://sites.google.com/site/earnieboyd
Attachment (msvcrt_version): application/octet-stream, 264 bytes
------------------------------------------------------------------------------
AlienVault Unified Security Management (USM) platform delivers complete
security visibility with the essential security capabilities. Easily and
efficiently configure, manage, and operate all of your security controls
from a single console and one unified framework. Download a free trial.
(Continue reading)

Sergey Martynenko | 16 May 2013 18:47
Picon

[?bug] gl_argv.gl_magic is not initialized when accessed

after install mingwrt-4.0-1-mingw32-rc-2-src.tar.lzma,
build and run any program

when CRT startup have reach function glob_signed(),
in the parameter "check", we have arbitrary value.

it's because field "gl_magic" in the struct "gl_argv" is not initialized
{"gl_argv" is automatic storage duration object from
function __mingw_setargv() ../src/libcrt/crt/init.c:126}
 

more precisely, when reach ../src/libcrt/misc/glob.c:940
-------------------------------------------------------------
933
934   GLOB_INLINE int glob_signed( const char *check, const char *magic )
935   {
936     /* Inline helper function, used exclusively by the glob_registry()
937      * function, to confirm that the gl_magic field within a glob_t data
938      * structure has been set, to indicate a properly initialised state.
939      */
940 =>  return (check == magic) ? 0 : (check != NULL) ? strcmp( check, magic ) : 1;
941   }
942
-------------------------------------------------------------

Program received signal SIGSEGV, Segmentation fault.
0x77c47740 in strcmp () from D:\WINDOWS\system32\msvcrt.dll

when try to execute strcmp()

(Continue reading)

Hardik Gohil | 16 May 2013 15:52
Picon

getpagesize' was not declared in this scope

Hello,

        I am building  Harfbuzz using MingW on windows 

        while compiling errors are


CXXLD  libhb-old.la
make[4]: Leaving directory `/home/system/clutter/dependency/harfbuzz-0.9.16/src/hb-old'
Making all in hb-icu-le
make[4]: Entering directory `/home/system/clutter/dependency/harfbuzz-0.9.16/src/hb-icu-le'
  CXX    libhb_icu_le_la-FontTableCache.lo
  CXX    libhb_icu_le_la-PortableFontInstance.lo
  CXX    libhb_icu_le_la-cmaps.lo
  CXXLD  libhb-icu-le.la
make[4]: Leaving directory `/home/system/clutter/dependency/harfbuzz-0.9.16/src/hb-icu-le'
Making all in hb-ucdn
make[4]: Entering directory `/home/system/clutter/dependency/harfbuzz-0.9.16/src/hb-ucdn'
  CC     ucdn.lo
  CCLD   libhb-ucdn.la
make[4]: Leaving directory `/home/system/clutter/dependency/harfbuzz-0.9.16/src/hb-ucdn'
make[4]: Entering directory `/home/system/clutter/dependency/harfbuzz-0.9.16/src'
  CXX    libharfbuzz_la-hb-blob.lo
hb-blob.cc: In function 'hb_bool_t _try_make_writable_inplace_unix(hb_blob_t*)':
hb-blob.cc:246:39: error: 'getpagesize' was not declared in this scope
hb-blob.cc:261:68: error: 'mprotect' was not declared in this scope
make[4]: *** [libharfbuzz_la-hb-blob.lo] Error 1
make[4]: Leaving directory `/home/system/clutter/dependency/harfbuzz-0.9.16/src'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/system/clutter/dependency/harfbuzz-0.9.16/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/system/clutter/dependency/harfbuzz-0.9.16/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/system/clutter/dependency/harfbuzz-0.9.16'
make: *** [all] Error 2



Help me 
------------------------------------------------------------------------------
AlienVault Unified Security Management (USM) platform delivers complete
security visibility with the essential security capabilities. Easily and
efficiently configure, manage, and operate all of your security controls
from a single console and one unified framework. Download a free trial.
http://p.sf.net/sfu/alienvault_d2d
_______________________________________________
MinGW-users mailing list
MinGW-users@...

This list observes the Etiquette found at 
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.  Disregard for the list etiquette may cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Also: mailto:mingw-users-request@...?subject=unsubscribe
Earnie Boyd | 15 May 2013 15:53
Picon

Windows symbolic links

MinGW-users,

I'm developing a sh.exe script I'm naming wlns for "Windows ln -s"
which can be used in place of the current ``ln -s'' provided by MSYS.
I have the file repository located at
https://sourceforge.net/u/earnie/wlns/ and would like for those
interested to give it a try and help enhance it.  Communication of the
script should happen at https://sourceforge.net/u/earnie/wlns-bugs/
for support, enhancements, etc.  I'm hoping that the need for this
script will disappear with developments within MSYS but is handy now
for those use to giving SOURCE->DESTINATION commands instead of
DESTINATION<-SOURCE commands.  The script also uses the forward slash
/ for input and converts it to Windows back slash path delimiters
since mklink requires them.

You can download a tarball snapshot at
https://sourceforge.net/u/earnie/wlns/ci/2443149cef0b093e82976d19f45efc007a2b6938/tarball
or clone the repository with
git clone git://git.code.sf.net/u/earnie/wlns wlns

Once you have the script copy wlns to your MSYS /bin directory.

-- 
Earnie
-- https://sites.google.com/site/earnieboyd

------------------------------------------------------------------------------
AlienVault Unified Security Management (USM) platform delivers complete
security visibility with the essential security capabilities. Easily and
efficiently configure, manage, and operate all of your security controls
from a single console and one unified framework. Download a free trial.
http://p.sf.net/sfu/alienvault_d2d
_______________________________________________
MinGW-users mailing list
MinGW-users@...

This list observes the Etiquette found at 
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.  Disregard for the list etiquette may cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Also: mailto:mingw-users-request@...?subject=unsubscribe

Thad Guidry | 14 May 2013 21:52
Picon
Gravatar

Easiest way for users to install Curl for MinGW ?

What are the steps to easily install Curl for MinGW ?

I saw in previous archives that Curl has yet to get an official place as a package, you cannot simply do "mingw-get install msys-curl", etc.., perhaps because of lack of volunteers as Keith was asking for someone before ?

I unfortunately cannot volunteer, but still need an easy way to install the Curl binaries for MinGW.

Just listing a step by step would be fantastic and helpful in a reply.  Thanks !

--
-Thad
http://www.freebase.com/view/en/thad_guidry
------------------------------------------------------------------------------
AlienVault Unified Security Management (USM) platform delivers complete
security visibility with the essential security capabilities. Easily and
efficiently configure, manage, and operate all of your security controls
from a single console and one unified framework. Download a free trial.
http://p.sf.net/sfu/alienvault_d2d
_______________________________________________
MinGW-users mailing list
MinGW-users@...

This list observes the Etiquette found at 
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.  Disregard for the list etiquette may cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Also: mailto:mingw-users-request@...?subject=unsubscribe
Hardik Gohil | 14 May 2013 15:29
Picon

undefined reference to kill

Hello

        I am installing libsecret-0.11 using MingW on windows

         while compiling errors are


 CC       test-prompt.o
 CCLD     test-prompt.exe
./.libs/libmock_service.a(libmock_service_la-mock-service.o): In function `mock_service_stop':
C:\MinGW\msys\1.0\home\system\webkit\sources\libsecret-0.11\libsecret\tests/mock-service.c:90:                  undefined reference to `kill'
collect2.exe: error: ld returned 1 exit status
make[4]: *** [test-prompt.exe] Error 1
make[4]: Leaving directory `/home/system/webkit/sources/libsecret-0.11/libsecret/tests'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/system/webkit/sources/libsecret-0.11/libsecret'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/system/webkit/sources/libsecret-0.11/libsecret'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/system/webkit/sources/libsecret-0.11'
make: *** [all] Error 2
------------------------------------------------------------------------------
AlienVault Unified Security Management (USM) platform delivers complete
security visibility with the essential security capabilities. Easily and
efficiently configure, manage, and operate all of your security controls
from a single console and one unified framework. Download a free trial.
http://p.sf.net/sfu/alienvault_d2d
_______________________________________________
MinGW-users mailing list
MinGW-users@...

This list observes the Etiquette found at 
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.  Disregard for the list etiquette may cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Also: mailto:mingw-users-request@...?subject=unsubscribe
Marco Manino | 14 May 2013 11:11
Picon

getwd missing

Hi all I'm new here!

I can't understand why the linker keeps telling me that getwd function is missing.
I should explain a little better: I'm trying to compile ncurses 5.9 libs, so as usual i run
./configure && make
Everything works, so I'm happy :P
than I found the istructions in the directory telling me that I sould run
make dlls
too to make dlls avaiable.
This is the output:
cd include && make DESTDIR="" libs
make[1]: Entering directory `/home/Marco/ncurses-5.9/include'
make[1]: Nothing to be done for `libs'.
make[1]: Leaving directory `/home/Marco/ncurses-5.9/include'
cd ncurses && make DESTDIR="" libs
make[1]: Entering directory `/home/Marco/ncurses-5.9/ncurses'
make[1]: Nothing to be done for `libs'.
make[1]: Leaving directory `/home/Marco/ncurses-5.9/ncurses'
cd progs && make DESTDIR="" libs
make[1]: Entering directory `/home/Marco/ncurses-5.9/progs'
make[1]: Nothing to be done for `libs'.
make[1]: Leaving directory `/home/Marco/ncurses-5.9/progs'
cd panel && make DESTDIR="" libs
make[1]: Entering directory `/home/Marco/ncurses-5.9/panel'
make[1]: Nothing to be done for `libs'.
make[1]: Leaving directory `/home/Marco/ncurses-5.9/panel'
cd menu && make DESTDIR="" libs
make[1]: Entering directory `/home/Marco/ncurses-5.9/menu'
make[1]: Nothing to be done for `libs'.
make[1]: Leaving directory `/home/Marco/ncurses-5.9/menu'
cd form && make DESTDIR="" libs
make[1]: Entering directory `/home/Marco/ncurses-5.9/form'
make[1]: Nothing to be done for `libs'.
make[1]: Leaving directory `/home/Marco/ncurses-5.9/form'
cd test && make DESTDIR="" libs
make[1]: Entering directory `/home/Marco/ncurses-5.9/test'
make[1]: Nothing to be done for `libs'.
make[1]: Leaving directory `/home/Marco/ncurses-5.9/test'
cd c++ && make DESTDIR="" libs
make[1]: Entering directory `/home/Marco/ncurses-5.9/c++'
make[1]: Nothing to be done for `libs'.
make[1]: Leaving directory `/home/Marco/ncurses-5.9/c++'
/bin/sh ./mk-dlls.sh
Target: mingw32
/tmp/tmp-dll ~/ncurses-5.9
~/ncurses-5.9
Building DLLs and Import Libraries for Win32

/tmp/tmp-ncurses ~/ncurses-5.9/lib ~/ncurses-5.9

gcc -shared -o wncurses.dll -Wl,--out-implib,libwncurses.dll.a -Wl,--output-def,wncurses.def -Wl,--enable-auto-import hardscroll.o hashmap.o lib_addch.o lib_addstr.o lib_beep.o lib_bkgd.o lib_box.o lib_chgat.o lib_clear.o lib_clearok.o lib_clrbot.o lib_clreol.o lib_color.o lib_colorset.o lib_delch.o lib_delwin.o lib_echo.o lib_endwin.o lib_erase.o lib_flash.o lib_gen.o lib_getch.o lib_getstr.o lib_hline.o lib_immedok.o lib_inchstr.o lib_initscr.o lib_insch.o lib_insdel.o lib_insnstr.o lib_instr.o lib_isendwin.o lib_leaveok.o lib_mouse.o lib_move.o lib_mvcur.o lib_mvwin.o lib_newterm.o lib_newwin.o lib_nl.o lib_overlay.o lib_pad.o lib_printw.o lib_redrawln.o lib_refresh.o lib_restart.o lib_scanw.o lib_screen.o lib_scroll.o lib_scrollok.o lib_scrreg.o lib_set_term.o lib_slk.o lib_slkatr_set.o lib_slkatrof.o lib_slkatron.o lib_slkatrset.o lib_slkattr.o lib_slkclear.o lib_slkcolor.o lib_slkinit.o lib_slklab.o lib_slkrefr.o lib_slkset.o lib_slktouch.o lib_touch.o lib_tstp.o lib_ungetch.o lib_vidattr.o lib_vline.o lib_wattroff.o lib_wattron.o lib_winch.o lib_window.o nc_panel.o safe_sprintf.o tty_update.o varargs.o memmove.o vsscanf.o lib_freeall.o expanded.o legacy_coding.o lib_dft_fgbg.o lib_print.o resizeterm.o use_screen.o use_window.o wresize.o access.o add_tries.o alloc_ttype.o codes.o comp_captab.o comp_error.o comp_hash.o db_iterator.o doalloc.o entries.o fallback.o free_ttype.o getenv_num.o home_terminfo.o init_keytry.o lib_acs.o lib_baudrate.o lib_cur_term.o lib_data.o lib_has_cap.o lib_kernel.o lib_keyname.o lib_longname.o lib_napms.o lib_options.o lib_raw.o lib_setup.o lib_termcap.o lib_termname.o lib_tgoto.o lib_ti.o lib_tparm.o lib_tputs.o lib_trace.o lib_ttyflags.o lib_twait.o name_match.o names.o read_entry.o read_termcap.o setbuf.o strings.o tries.o trim_sgr0.o unctrl.o visbuf.o alloc_entry.o captoinfo.o comp_expand.o comp_parse.o comp_scan.o parse_entry.o write_entry.o define_key.o hashed_db.o key_defined.o keybound.o keyok.o version.o lib_driver.o gettimeofday.o wcwidth.o win_driver.o tinfo_driver.o
lib
   Creazione della libreria wncurses.lib e dell'oggetto wncurses.exp in corso...
~/ncurses-5.9/lib ~/ncurses-5.9

panel
/tmp/tmp-panel ~/ncurses-5.9/lib ~/ncurses-5.9
   Creazione della libreria wpanel.lib e dell'oggetto wpanel.exp in corso...
~/ncurses-5.9/lib ~/ncurses-5.9
menu
/tmp/tmp-menu ~/ncurses-5.9/lib ~/ncurses-5.9
   Creazione della libreria wmenu.lib e dell'oggetto wmenu.exp in corso...
~/ncurses-5.9/lib ~/ncurses-5.9
form
/tmp/tmp-form ~/ncurses-5.9/lib ~/ncurses-5.9
   Creazione della libreria wform.lib e dell'oggetto wform.exp in corso...
~/ncurses-5.9/lib ~/ncurses-5.9
/tmp/tmp-ncurses_g ~/ncurses-5.9/lib ~/ncurses-5.9

gcc -shared -o wncurses_g.dll -Wl,--out-implib,libwncurses_g.dll.a -Wl,--output-def,wncurses_g.def -Wl,--enable-auto-import hardscroll.o hashmap.o lib_addch.o lib_addstr.o lib_beep.o lib_bkgd.o lib_box.o lib_chgat.o lib_clear.o lib_clearok.o lib_clrbot.o lib_clreol.o lib_color.o lib_colorset.o lib_delch.o lib_delwin.o lib_echo.o lib_endwin.o lib_erase.o lib_flash.o lib_gen.o lib_getch.o lib_getstr.o lib_hline.o lib_immedok.o lib_inchstr.o lib_initscr.o lib_insch.o lib_insdel.o lib_insnstr.o lib_instr.o lib_isendwin.o lib_leaveok.o lib_mouse.o lib_move.o lib_mvcur.o lib_mvwin.o lib_newterm.o lib_newwin.o lib_nl.o lib_overlay.o lib_pad.o lib_printw.o lib_redrawln.o lib_refresh.o lib_restart.o lib_scanw.o lib_screen.o lib_scroll.o lib_scrollok.o lib_scrreg.o lib_set_term.o lib_slk.o lib_slkatr_set.o lib_slkatrof.o lib_slkatron.o lib_slkatrset.o lib_slkattr.o lib_slkclear.o lib_slkcolor.o lib_slkinit.o lib_slklab.o lib_slkrefr.o lib_slkset.o lib_slktouch.o lib_touch.o lib_tracedmp.o lib_tracemse.o lib_tstp.o lib_ungetch.o lib_vidattr.o lib_vline.o lib_wattroff.o lib_wattron.o lib_winch.o lib_window.o nc_panel.o safe_sprintf.o tty_update.o varargs.o memmove.o vsscanf.o lib_freeall.o expanded.o legacy_coding.o lib_dft_fgbg.o lib_print.o resizeterm.o trace_xnames.o use_screen.o use_window.o wresize.o access.o add_tries.o alloc_ttype.o codes.o comp_captab.o comp_error.o comp_hash.o db_iterator.o doalloc.o entries.o fallback.o free_ttype.o getenv_num.o home_terminfo.o init_keytry.o lib_acs.o lib_baudrate.o lib_cur_term.o lib_data.o lib_has_cap.o lib_kernel.o lib_keyname.o lib_longname.o lib_napms.o lib_options.o lib_raw.o lib_setup.o lib_termcap.o lib_termname.o lib_tgoto.o lib_ti.o lib_tparm.o lib_tputs.o lib_trace.o lib_traceatr.o lib_tracebits.o lib_tracechr.o lib_ttyflags.o lib_twait.o name_match.o names.o read_entry.o read_termcap.o setbuf.o strings.o trace_buf.o trace_tries.o tries.o trim_sgr0.o unctrl.o visbuf.o alloc_entry.o captoinfo.o comp_expand.o comp_parse.o comp_scan.o parse_entry.o write_entry.o define_key.o hashed_db.o key_defined.o keybound.o keyok.o version.o lib_driver.o gettimeofday.o wcwidth.o win_driver.o tinfo_driver.o
lib
   Creazione della libreria wncurses_g.lib e dell'oggetto wncurses_g.exp in corso...
~/ncurses-5.9/lib ~/ncurses-5.9

panel_g
/tmp/tmp-panel_g ~/ncurses-5.9/lib ~/ncurses-5.9
   Creazione della libreria wpanel_g.lib e dell'oggetto wpanel_g.exp in corso...
~/ncurses-5.9/lib ~/ncurses-5.9
menu_g
/tmp/tmp-menu_g ~/ncurses-5.9/lib ~/ncurses-5.9
   Creazione della libreria wmenu_g.lib e dell'oggetto wmenu_g.exp in corso...
~/ncurses-5.9/lib ~/ncurses-5.9
form_g
/tmp/tmp-form_g ~/ncurses-5.9/lib ~/ncurses-5.9
   Creazione della libreria wform_g.lib e dell'oggetto wform_g.exp in corso...
~/ncurses-5.9/lib ~/ncurses-5.9

/tmp/tmp-ncursest ~/ncurses-5.9/lib ~/ncurses-5.9

gcc -shared -o wncursest.dll -Wl,--out-implib,libwncursest.dll.a -Wl,--output-def,wncursest.def -Wl,--enable-auto-import hardscroll.o hashmap.o lib_addch.o lib_addstr.o lib_beep.o lib_bkgd.o lib_box.o lib_chgat.o lib_clear.o lib_clearok.o lib_clrbot.o lib_clreol.o lib_color.o lib_colorset.o lib_delch.o lib_delwin.o lib_echo.o lib_endwin.o lib_erase.o lib_flash.o lib_gen.o lib_getch.o lib_getstr.o lib_hline.o lib_immedok.o lib_inchstr.o lib_initscr.o lib_insch.o lib_insdel.o lib_insnstr.o lib_instr.o lib_isendwin.o lib_leaveok.o lib_mouse.o lib_move.o lib_mvcur.o lib_mvwin.o lib_newterm.o lib_newwin.o lib_nl.o lib_overlay.o lib_pad.o lib_printw.o lib_redrawln.o lib_refresh.o lib_restart.o lib_scanw.o lib_screen.o lib_scroll.o lib_scrollok.o lib_scrreg.o lib_set_term.o lib_slk.o lib_slkatr_set.o lib_slkatrof.o lib_slkatron.o lib_slkatrset.o lib_slkattr.o lib_slkclear.o lib_slkcolor.o lib_slkinit.o lib_slklab.o lib_slkrefr.o lib_slkset.o lib_slktouch.o lib_touch.o lib_tstp.o lib_ungetch.o lib_vidattr.o lib_vline.o lib_wattroff.o lib_wattron.o lib_winch.o lib_window.o nc_panel.o safe_sprintf.o tty_update.o varargs.o memmove.o vsscanf.o lib_freeall.o expanded.o legacy_coding.o lib_dft_fgbg.o lib_print.o resizeterm.o use_screen.o use_window.o wresize.o access.o add_tries.o alloc_ttype.o codes.o comp_captab.o comp_error.o comp_hash.o db_iterator.o doalloc.o entries.o fallback.o free_ttype.o getenv_num.o home_terminfo.o init_keytry.o lib_acs.o lib_baudrate.o lib_cur_term.o lib_data.o lib_has_cap.o lib_kernel.o lib_keyname.o lib_longname.o lib_napms.o lib_options.o lib_raw.o lib_setup.o lib_termcap.o lib_termname.o lib_tgoto.o lib_ti.o lib_tparm.o lib_tputs.o lib_trace.o lib_ttyflags.o lib_twait.o name_match.o names.o read_entry.o read_termcap.o setbuf.o strings.o tries.o trim_sgr0.o unctrl.o visbuf.o alloc_entry.o captoinfo.o comp_expand.o comp_parse.o comp_scan.o parse_entry.o write_entry.o define_key.o hashed_db.o key_defined.o keybound.o keyok.o version.o lib_driver.o gettimeofday.o wcwidth.o win_driver.o tinfo_driver.o
write_entry.o:write_entry.c:(.text+0xb9e): undefined reference to `getwd'
collect2.exe: error: ld returned 1 exit status
lib
   Creazione della libreria wncursest.lib e dell'oggetto wncursest.exp in corso...
mv: cannot stat `wncursest.dll': No such file or directory
~/ncurses-5.9/lib ~/ncurses-5.9

panelt
/tmp/tmp-panelt ~/ncurses-5.9/lib ~/ncurses-5.9
C:/MinGW/msys/1.0/home/Marco/ncurses-5.9/lib/libpanelt.a: No such file or directory
C:\MinGW\bin\ar.exe: C:/MinGW/msys/1.0/home/Marco/ncurses-5.9/lib/libpanelt.a: No such file or directory
C:\MinGW\bin\ar.exe: C:/MinGW/msys/1.0/home/Marco/ncurses-5.9/lib/libpanelt.a: No such file or directory
C:\MinGW\bin\ar.exe:    Creazione della libreria wpanelt.lib e dell'oggetto wpanelt.exp in corso...
C:/MinGW/msys/1.0/home/Marco/ncurses-5.9/lib/libpanelt.a: No such file or directory
C:\MinGW\bin\ar.exe: ~/ncurses-5.9/lib ~/ncurses-5.9
menut
/tmp/tmp-menut ~/ncurses-5.9/lib ~/ncurses-5.9
C:/MinGW/msys/1.0/home/Marco/ncurses-5.9/lib/libmenut.a: No such file or directory
C:\MinGW\bin\ar.exe: C:/MinGW/msys/1.0/home/Marco/ncurses-5.9/lib/libmenut.a: No such file or directory
C:\MinGW\bin\ar.exe: C:/MinGW/msys/1.0/home/Marco/ncurses-5.9/lib/libmenut.a: No such file or directory
C:\MinGW\bin\ar.exe:    Creazione della libreria wmenut.lib e dell'oggetto wmenut.exp in corso...
C:/MinGW/msys/1.0/home/Marco/ncurses-5.9/lib/libmenut.a: No such file or directory
C:\MinGW\bin\ar.exe: ~/ncurses-5.9/lib ~/ncurses-5.9
formt
/tmp/tmp-formt ~/ncurses-5.9/lib ~/ncurses-5.9
C:/MinGW/msys/1.0/home/Marco/ncurses-5.9/lib/libformt.a: No such file or directory
C:\MinGW\bin\ar.exe: C:/MinGW/msys/1.0/home/Marco/ncurses-5.9/lib/libformt.a: No such file or directory
C:\MinGW\bin\ar.exe: C:/MinGW/msys/1.0/home/Marco/ncurses-5.9/lib/libformt.a: No such file or directory
C:\MinGW\bin\ar.exe:    Creazione della libreria wformt.lib e dell'oggetto wformt.exp in corso...
C:/MinGW/msys/1.0/home/Marco/ncurses-5.9/lib/libformt.a: No such file or directory
C:\MinGW\bin\ar.exe: ~/ncurses-5.9/lib ~/ncurses-5.9
/tmp/tmp-ncursest_g ~/ncurses-5.9/lib ~/ncurses-5.9

gcc -shared -o wncursest_g.dll -Wl,--out-implib,libwncursest_g.dll.a -Wl,--output-def,wncursest_g.def -Wl,--enable-auto-import hardscroll.o hashmap.o lib_addch.o lib_addstr.o lib_beep.o lib_bkgd.o lib_box.o lib_chgat.o lib_clear.o lib_clearok.o lib_clrbot.o lib_clreol.o lib_color.o lib_colorset.o lib_delch.o lib_delwin.o lib_echo.o lib_endwin.o lib_erase.o lib_flash.o lib_gen.o lib_getch.o lib_getstr.o lib_hline.o lib_immedok.o lib_inchstr.o lib_initscr.o lib_insch.o lib_insdel.o lib_insnstr.o lib_instr.o lib_isendwin.o lib_leaveok.o lib_mouse.o lib_move.o lib_mvcur.o lib_mvwin.o lib_newterm.o lib_newwin.o lib_nl.o lib_overlay.o lib_pad.o lib_printw.o lib_redrawln.o lib_refresh.o lib_restart.o lib_scanw.o lib_screen.o lib_scroll.o lib_scrollok.o lib_scrreg.o lib_set_term.o lib_slk.o lib_slkatr_set.o lib_slkatrof.o lib_slkatron.o lib_slkatrset.o lib_slkattr.o lib_slkclear.o lib_slkcolor.o lib_slkinit.o lib_slklab.o lib_slkrefr.o lib_slkset.o lib_slktouch.o lib_touch.o lib_tracedmp.o lib_tracemse.o lib_tstp.o lib_ungetch.o lib_vidattr.o lib_vline.o lib_wattroff.o lib_wattron.o lib_winch.o lib_window.o nc_panel.o safe_sprintf.o tty_update.o varargs.o memmove.o vsscanf.o lib_freeall.o expanded.o legacy_coding.o lib_dft_fgbg.o lib_print.o resizeterm.o trace_xnames.o use_screen.o use_window.o wresize.o access.o add_tries.o alloc_ttype.o codes.o comp_captab.o comp_error.o comp_hash.o db_iterator.o doalloc.o entries.o fallback.o free_ttype.o getenv_num.o home_terminfo.o init_keytry.o lib_acs.o lib_baudrate.o lib_cur_term.o lib_data.o lib_has_cap.o lib_kernel.o lib_keyname.o lib_longname.o lib_napms.o lib_options.o lib_raw.o lib_setup.o lib_termcap.o lib_termname.o lib_tgoto.o lib_ti.o lib_tparm.o lib_tputs.o lib_trace.o lib_traceatr.o lib_tracebits.o lib_tracechr.o lib_ttyflags.o lib_twait.o name_match.o names.o read_entry.o read_termcap.o setbuf.o strings.o trace_buf.o trace_tries.o tries.o trim_sgr0.o unctrl.o visbuf.o alloc_entry.o captoinfo.o comp_expand.o comp_parse.o comp_scan.o parse_entry.o write_entry.o define_key.o hashed_db.o key_defined.o keybound.o keyok.o version.o lib_driver.o gettimeofday.o wcwidth.o win_driver.o tinfo_driver.o
lib_trace.o: In function `trace':
C:\MinGW\msys\1.0\home\Marco\ncurses-5.9\ncurses/../ncurses/./trace/lib_trace.c:100: undefined reference to `getwd'
write_entry.o: In function `nc_set_writedir':
C:\MinGW\msys\1.0\home\Marco\ncurses-5.9\ncurses/../ncurses/./tinfo/write_entry.c:226: undefined reference to `getwd'
collect2.exe: error: ld returned 1 exit status
lib
   Creazione della libreria wncursest_g.lib e dell'oggetto wncursest_g.exp in corso...
mv: cannot stat `wncursest_g.dll': No such file or directory
~/ncurses-5.9/lib ~/ncurses-5.9

panelt_g
/tmp/tmp-panelt_g ~/ncurses-5.9/lib ~/ncurses-5.9
C:/MinGW/msys/1.0/home/Marco/ncurses-5.9/lib/libpanelt_g.a: No such file or directory
C:\MinGW\bin\ar.exe: C:/MinGW/msys/1.0/home/Marco/ncurses-5.9/lib/libpanelt_g.a: No such file or directory
C:\MinGW\bin\ar.exe: C:/MinGW/msys/1.0/home/Marco/ncurses-5.9/lib/libpanelt_g.a: No such file or directory
C:\MinGW\bin\ar.exe:    Creazione della libreria wpanelt_g.lib e dell'oggetto wpanelt_g.exp in corso...
C:/MinGW/msys/1.0/home/Marco/ncurses-5.9/lib/libpanelt_g.a: No such file or directory
C:\MinGW\bin\ar.exe: ~/ncurses-5.9/lib ~/ncurses-5.9
menut_g
/tmp/tmp-menut_g ~/ncurses-5.9/lib ~/ncurses-5.9
C:/MinGW/msys/1.0/home/Marco/ncurses-5.9/lib/libmenut_g.a: No such file or directory
C:\MinGW\bin\ar.exe: C:/MinGW/msys/1.0/home/Marco/ncurses-5.9/lib/libmenut_g.a: No such file or directory
C:\MinGW\bin\ar.exe: C:/MinGW/msys/1.0/home/Marco/ncurses-5.9/lib/libmenut_g.a: No such file or directory
C:\MinGW\bin\ar.exe:    Creazione della libreria wmenut_g.lib e dell'oggetto wmenut_g.exp in corso...
C:/MinGW/msys/1.0/home/Marco/ncurses-5.9/lib/libmenut_g.a: No such file or directory
C:\MinGW\bin\ar.exe: ~/ncurses-5.9/lib ~/ncurses-5.9
formt_g
/tmp/tmp-formt_g ~/ncurses-5.9/lib ~/ncurses-5.9
C:/MinGW/msys/1.0/home/Marco/ncurses-5.9/lib/libformt_g.a: No such file or directory
C:\MinGW\bin\ar.exe: C:/MinGW/msys/1.0/home/Marco/ncurses-5.9/lib/libformt_g.a: No such file or directory
C:\MinGW\bin\ar.exe: C:/MinGW/msys/1.0/home/Marco/ncurses-5.9/lib/libformt_g.a: No such file or directory
C:\MinGW\bin\ar.exe:    Creazione della libreria wformt_g.lib e dell'oggetto wformt_g.exp in corso...
C:/MinGW/msys/1.0/home/Marco/ncurses-5.9/lib/libformt_g.a: No such file or directory
C:\MinGW\bin\ar.exe: ~/ncurses-5.9/lib ~/ncurses-5.9
~/ncurses-5.9


I made the script print what gcc compile.
As you can see, it won't compile some of the libraries becouse of the getwd function....
So I made a test, wrote a dumb script:
#include <stdio.h>
#include <unistd.h>
int main(){
char ppp[600];
getcwd(ppp, 600);
printf("%s\n", ppp);
return 0;
}

compiled and everything works, the .exe has no dependency to anything but microsoft runtime and kernel32.

So, why in my code works and in ncurses doesn't?

And the other question is: since those dlls are shared, do I need this step to compile statically?

Thanks for the answers,
Marco
------------------------------------------------------------------------------
AlienVault Unified Security Management (USM) platform delivers complete
security visibility with the essential security capabilities. Easily and
efficiently configure, manage, and operate all of your security controls
from a single console and one unified framework. Download a free trial.
http://p.sf.net/sfu/alienvault_d2d
_______________________________________________
MinGW-users mailing list
MinGW-users@...

This list observes the Etiquette found at 
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.  Disregard for the list etiquette may cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Also: mailto:mingw-users-request@...?subject=unsubscribe
David T Pitchford | 13 May 2013 22:16
Picon
Favicon

Problems installing MSYS 1.0.11 on Windows 7 32-bit

I am trying to install MinGW and MSYS on Windows 7 64-bit to build PyGTK from the source. I successfully installed MINGW, then ran MSYS-1.0.11.exe. Rather than being prompted for the location of MinGW, a console pops up with the following message:

C:\msys\1.0\postinstall>PATH ..\bin;C:\Python33\;C:\Perl64\site\bin;C:\Perl64\bin;c:\Program Files (x86)\RSA SecurID Token Common;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Python27;C:\Python27\lib;C:\Python24;C:\Python27-64;C:\MinGW\bin;C:\Users\462974\Documents\Local Sandbox\fof\TRUNK\release\fsb;C:\Program Files\TortoiseSVN\bin;C:\Python27\Lib\site-packages\django\bin\;C:\Python27\Lib\site-packages\gtk+-bundle_2.24.10-20120208_win32\bin

C:\msys\1.0\postinstall>..\bin\sh.exe pi.sh
      0 [main] us 0 init_cheap: VirtualAlloc pointer is null, Win32 error 487 AllocationBase 0x0, BaseAddress 0x71110000, RegionSize 0x4C0000, State 0x10000
C:\msys\1.0\bin\sh.exe: *** Couldn't reserve space for cygwin's heap, Win32 error 0

C:\msys\1.0\postinstall>pause
Press any key to continue . . .

The middle part appears to be some kind of error involving Cygwin. Am I supposed to have Cygwin? Also, the link to MSYS Core 1.0.11 on the main MSYS page appears to be broken and simply takes me to MinGW's main page on Sourceforge. Where is this archive currently hosted?

--
David Pitchford
GID: 462974
------------------------------------------------------------------------------
AlienVault Unified Security Management (USM) platform delivers complete
security visibility with the essential security capabilities. Easily and
efficiently configure, manage, and operate all of your security controls
from a single console and one unified framework. Download a free trial.
http://p.sf.net/sfu/alienvault_d2d
_______________________________________________
MinGW-users mailing list
MinGW-users@...

This list observes the Etiquette found at 
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.  Disregard for the list etiquette may cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Also: mailto:mingw-users-request@...?subject=unsubscribe

Gmane