delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1997/01/29/04:44:51

From: cabr85 AT ccsun DOT strath DOT ac DOT uk ("p.a.c.tavares")
Subject: cygwin.dll bug
29 Jan 1997 04:44:51 -0800 :
Approved: cygnus DOT gnu-win32 AT cygnus DOT com
Distribution: cygnus
Message-ID: <199701291053.KAA07904.cygnus.gnu-win32@avon.cc.strath.ac.uk>
Original-To: gnu-win32 AT cygnus DOT com (Cygwin List)
X-Mailer: ELM [version 2.4 PL24]
Original-Sender: owner-gnu-win32 AT cygnus DOT com

I found two problems when using functions from string.h (the C one, not
String.h) in win95. I believe they are caused by bugs in the utilities and
not by my own mistakes. 

1. when using GNU make to create the code the compiler confuses string.h
and String.h. Because by default String.h comes first on the include path,
cpp will include the GNU-C++ String.h when it should include C string.h

2. Once this problem was solved by renaming String.h I found that it
compiled and linked with no problems. However I get a runtime error
concerning the function strncpy( ). Under gdb I get the following report: 

Program received signal SIGSEGV, Segmentation fault.
strncpy (dst=0x263eb30 "H_c\002\027¦@", src=0x0, n=20)
    at /pizza/mushroom/noer/beta17/src/newlib/libc/string/strncpy.c:58
/pizza/mushroom/noer/beta17/src/newlib/libc/string/strncpy.c:58: No such file or
 directory.
Current language:  auto; currently c


----------------------------------------------------------------------------
Pedro A.C. Tavares <p DOT tavares AT strath DOT ac DOT uk>

Superconducting Devices Group         Tel: +44-141-552 4400 (3151/3478)
Dept. of Physics & Applied Physics    Fax: +44-141-552 7143
University of Strathclyde             For PGP public key: "finger
Glasgow, UK                               pedro_t AT zebedee DOT phys DOT strath DOT ac DOT uk"
----------------------------------------------------------------------------
-
For help on using this list, send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019