public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* I found a bug with isblank()
@ 2002-09-04  6:30 Stefan Frings
  2002-09-06  5:50 ` Nicholas Wourms
  0 siblings, 1 reply; 3+ messages in thread
From: Stefan Frings @ 2002-09-04  6:30 UTC (permalink / raw)
  To: cygwin

Hello,
older versions of cygwin C-Lib did not have the function isblank() so I wrote 
my own version. Now I found out that the latest version has this function in 
/usr/include/ctype.h so I cannot use my own version any longer. Error message 
from gcc:

extras.c:32: conflicting types for 'isblank'
/usr/include/ctype.h:23: previous declaration of 'isblank'

So I commented my function isblank() out but now I got another error message:

extras.o(.text+0x211):extras.c: undefined reference to 'isblank'.

It seems that isblank() is now defined in ctype.h but is missing in the 
libraries.


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: I found a bug with isblank()
  2002-09-04  6:30 I found a bug with isblank() Stefan Frings
@ 2002-09-06  5:50 ` Nicholas Wourms
  2002-09-06  6:01   ` Nicholas Wourms
  0 siblings, 1 reply; 3+ messages in thread
From: Nicholas Wourms @ 2002-09-06  5:50 UTC (permalink / raw)
  To: stefan.frings, cygwin

--- Stefan Frings <stefan.frings@vodafone.com> wrote:
> Hello,
> older versions of cygwin C-Lib did not have the function isblank()
> so I wrote 
> my own version. Now I found out that the latest version has this
> function in 
> /usr/include/ctype.h so I cannot use my own version any longer.
> Error message 
> from gcc:
> 
> extras.c:32: conflicting types for 'isblank'
> /usr/include/ctype.h:23: previous declaration of 'isblank'
> 
> So I commented my function isblank() out but now I got another
> error message:
> 
> extras.o(.text+0x211):extras.c: undefined reference to 'isblank'.
> 
> It seems that isblank() is now defined in ctype.h but is missing in
> the 
> libraries.

Actually, it is probably the case that it isn't being exported by the
cygwin1.dll, which means the function isn't in the c import library. 
The function may have been recently added to newlib, so that is why
you are picking it up.  What is necessary is to actually tell the
cygwin1.dll to exort the new symbols.  I'll take a look at it today
and see what is necessary to export it.  You could probably help the
situation by referencing what *standards* isblank() is part of and
why it should be included in the cygwin1.dll.

Cheers,
Nicholas

__________________________________________________
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes
http://finance.yahoo.com

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: I found a bug with isblank()
  2002-09-06  5:50 ` Nicholas Wourms
@ 2002-09-06  6:01   ` Nicholas Wourms
  0 siblings, 0 replies; 3+ messages in thread
From: Nicholas Wourms @ 2002-09-06  6:01 UTC (permalink / raw)
  To: stefan.frings, cygwin


--- Nicholas Wourms <nwourms@yahoo.com> wrote:
> --- Stefan Frings <stefan.frings@vodafone.com> wrote:
> > Hello,
> > older versions of cygwin C-Lib did not have the function
> isblank()
> > so I wrote 
> > my own version. Now I found out that the latest version has this
> > function in 
> > /usr/include/ctype.h so I cannot use my own version any longer.
> > Error message 
> > from gcc:
> > 
> > extras.c:32: conflicting types for 'isblank'
> > /usr/include/ctype.h:23: previous declaration of 'isblank'
> > 
> > So I commented my function isblank() out but now I got another
> > error message:
> > 
> > extras.o(.text+0x211):extras.c: undefined reference to 'isblank'.
> > 
> > It seems that isblank() is now defined in ctype.h but is missing
> in
> > the 
> > libraries.
> 
> Actually, it is probably the case that it isn't being exported by
> the
> cygwin1.dll, which means the function isn't in the c import
> library. 
> The function may have been recently added to newlib, so that is why
> you are picking it up.  What is necessary is to actually tell the
> cygwin1.dll to exort the new symbols.  I'll take a look at it today
> and see what is necessary to export it.  You could probably help
> the
> situation by referencing what *standards* isblank() is part of and
> why it should be included in the cygwin1.dll.

Nevermind about the information, I forgot that it is part of C99
locale.  I'll submit a patch to the sources today.  If they add it,
it should be in the next snapshot.

Cheers,
Nicholas

__________________________________________________
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes
http://finance.yahoo.com

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-09-06 12:50 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-09-04  6:30 I found a bug with isblank() Stefan Frings
2002-09-06  5:50 ` Nicholas Wourms
2002-09-06  6:01   ` Nicholas Wourms

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).