From: <no...@so...> - 2001-07-16 06:53:04
|
Bugs item #441611, was opened at 2001-07-15 23:53 You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=102435&aid=441611&group_id=2435 Category: binutils Group: None Status: Open Resolution: None Priority: 5 Submitted By: Pabs (pabs3) Assigned to: Nobody/Anonymous (nobody) Summary: Win32 programs cannot use _pgmptr Initial Comment: Win32 programs compiled with Cygwin/GCC/MingW cannot use _pgmptr linked without -lcrtdll: __imp___pgmptr_dll is undefined linked with -lcrtdll: link works but _pgmptr somehow resolves to null in object code, resulting in "SIGSEGV, Segmentation fault" Does _pgmptr exist in UNIX land? ---------------------------------------------------------------------- You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=102435&aid=441611&group_id=2435 |
From: <no...@so...> - 2001-07-16 23:07:14
|
Bugs item #441611, was opened at 2001-07-15 23:53 You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=102435&aid=441611&group_id=2435 Category: binutils Group: None Status: Open Resolution: None Priority: 5 Submitted By: Pabs (pabs3) Assigned to: Nobody/Anonymous (nobody) Summary: Win32 programs cannot use _pgmptr Initial Comment: Win32 programs compiled with Cygwin/GCC/MingW cannot use _pgmptr linked without -lcrtdll: __imp___pgmptr_dll is undefined linked with -lcrtdll: link works but _pgmptr somehow resolves to null in object code, resulting in "SIGSEGV, Segmentation fault" Does _pgmptr exist in UNIX land? ---------------------------------------------------------------------- >Comment By: Danny Smith (dannysmith) Date: 2001-07-16 16:07 Message: Logged In: YES user_id=11494 This program works for me, using current mingw runtime, with msvcrt.dll. Also works with cygwin -mno-cygwin. However, there is problem with gcc -U__MSVCRT__ pgmptr.c - lcrtdll, with compiled programme returning: "The full path of the executing program is : (null)" I will check crtdll problem. pgmptr.c ================================================ #include <stdio.h> #include <stdlib.h> int main( void ) { printf("The full path of the executing program is : % Fs\n", _pgmptr); return 1; } ======================================================= ---------------------------------------------------------------------- You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=102435&aid=441611&group_id=2435 |
From: <no...@so...> - 2001-07-17 00:31:34
|
Bugs item #441611, was opened at 2001-07-15 23:53 You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=102435&aid=441611&group_id=2435 Category: binutils Group: None Status: Open Resolution: None Priority: 5 Submitted By: Pabs (pabs3) Assigned to: Nobody/Anonymous (nobody) Summary: Win32 programs cannot use _pgmptr Initial Comment: Win32 programs compiled with Cygwin/GCC/MingW cannot use _pgmptr linked without -lcrtdll: __imp___pgmptr_dll is undefined linked with -lcrtdll: link works but _pgmptr somehow resolves to null in object code, resulting in "SIGSEGV, Segmentation fault" Does _pgmptr exist in UNIX land? ---------------------------------------------------------------------- >Comment By: Danny Smith (dannysmith) Date: 2001-07-16 17:31 Message: Logged In: YES user_id=11494 Silly me. No CRTDLL problem either, as long as use correct specs. If linking -lcrtdll must also use crt1.o rather than crt2.o as startup. With appropriate specs and current stdlib.h, the test in my prior message works fine with CRTDLL as well as MSVCRT. There is, however, different bug in stdlib.h: CRTDLL does *not* have wide version _wpgmptr_dll ---------------------------------------------------------------------- Comment By: Danny Smith (dannysmith) Date: 2001-07-16 16:07 Message: Logged In: YES user_id=11494 This program works for me, using current mingw runtime, with msvcrt.dll. Also works with cygwin -mno-cygwin. However, there is problem with gcc -U__MSVCRT__ pgmptr.c - lcrtdll, with compiled programme returning: "The full path of the executing program is : (null)" I will check crtdll problem. pgmptr.c ================================================ #include <stdio.h> #include <stdlib.h> int main( void ) { printf("The full path of the executing program is : % Fs\n", _pgmptr); return 1; } ======================================================= ---------------------------------------------------------------------- You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=102435&aid=441611&group_id=2435 |
From: <no...@so...> - 2001-07-30 22:58:35
|
Bugs item #441611, was opened at 2001-07-15 23:53 You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=102435&aid=441611&group_id=2435 >Category: mingw runtime Group: None >Status: Closed >Resolution: Rejected Priority: 5 Submitted By: Pabs (pabs3) Assigned to: Nobody/Anonymous (nobody) Summary: Win32 programs cannot use _pgmptr Initial Comment: Win32 programs compiled with Cygwin/GCC/MingW cannot use _pgmptr linked without -lcrtdll: __imp___pgmptr_dll is undefined linked with -lcrtdll: link works but _pgmptr somehow resolves to null in object code, resulting in "SIGSEGV, Segmentation fault" Does _pgmptr exist in UNIX land? ---------------------------------------------------------------------- Comment By: Danny Smith (dannysmith) Date: 2001-07-30 15:58 Message: Logged In: YES user_id=11494 Not a MinGW bug. Although your problem may be interesting and causing you problems you wish answers to, it is not a problem with the MinGW project. Your BUG report has therefore been deleted. ---------------------------------------------------------------------- Comment By: Danny Smith (dannysmith) Date: 2001-07-16 17:31 Message: Logged In: YES user_id=11494 Silly me. No CRTDLL problem either, as long as use correct specs. If linking -lcrtdll must also use crt1.o rather than crt2.o as startup. With appropriate specs and current stdlib.h, the test in my prior message works fine with CRTDLL as well as MSVCRT. There is, however, different bug in stdlib.h: CRTDLL does *not* have wide version _wpgmptr_dll ---------------------------------------------------------------------- Comment By: Danny Smith (dannysmith) Date: 2001-07-16 16:07 Message: Logged In: YES user_id=11494 This program works for me, using current mingw runtime, with msvcrt.dll. Also works with cygwin -mno-cygwin. However, there is problem with gcc -U__MSVCRT__ pgmptr.c - lcrtdll, with compiled programme returning: "The full path of the executing program is : (null)" I will check crtdll problem. pgmptr.c ================================================ #include <stdio.h> #include <stdlib.h> int main( void ) { printf("The full path of the executing program is : % Fs\n", _pgmptr); return 1; } ======================================================= ---------------------------------------------------------------------- You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=102435&aid=441611&group_id=2435 |