public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Compiling from cvs and duplicate definition error on strsignal
@ 2008-06-18 23:54 Brian Keener
  2008-06-19  0:01 ` Eric Blake
  0 siblings, 1 reply; 2+ messages in thread
From: Brian Keener @ 2008-06-18 23:54 UTC (permalink / raw)
  To: cygwin

I was compiling a debug version of Cygwin after updating from current 
cvs (starting from scratch) and got a conflicting types error on 
definition of strsignal building libiberty/strsignal.c :
at line 409 of strsignal.c in  
/usr/develop/src/src/src/libiberty/strsignal.c 
vs
line 79 of string.h in 
/usr/develop/src/src/src/newlib/libc/include/string.h.

I temporarily commented the one in string.h since it referenced it was 
a kludge for getting around an error compiling in gdb

Just thought someone should know.

bk

/usr/bin/gcc -L/usr/develop/obj/cygwin/i686-pc-cygwin/winsup 
-L/usr/develop/obj/
cygwin/i686-pc-cygwin/winsup/cygwin 
-L/usr/develop/obj/cygwin/i686-pc-cygwin/win
sup/w32api/lib -isystem /usr/develop/src/src/src/winsup/include 
-isystem /usr/de
velop/src/src/src/winsup/cygwin/include -isystem 
/usr/develop/src/src/src/winsup
/w32api/include -B/usr/develop/obj/cygwin/i686-pc-cygwin/newlib/ 
-isystem /usr/d
evelop/obj/cygwin/i686-pc-cygwin/newlib/targ-include -isystem 
/usr/develop/src/s
rc/src/newlib/libc/include -c -DHAVE_CONFIG_H -g -O2   -I. 
-I/usr/develop/src/sr
c/src/libiberty/../include  -W -Wall -Wwrite-strings 
-Wstrict-prototypes -pedant
ic  /usr/develop/src/src/src/libiberty/strsignal.c -o strsignal.o
/usr/develop/src/src/src/libiberty/strsignal.c:409: error: conflicting 
types for
 'strsignal'
/usr/develop/src/src/src/newlib/libc/include/string.h:79: error: 
previous declar
ation of 'strsignal' was here
/usr/develop/src/src/src/libiberty/strsignal.c:409: error: conflicting 
types for
 'strsignal'
/usr/develop/src/src/src/newlib/libc/include/string.h:79: error: 
previous declar
ation of 'strsignal' was here
make[2]: *** [strsignal.o] Error 1
make[2]: Leaving directory 
`/usr/develop/obj/cygwin/i686-pc-cygwin/libiberty'
make[1]: *** [all-target-libiberty] Error 2
make[1]: Leaving directory `/usr/develop/obj/cygwin'
make: *** [all] Error 2

BrianK@atl-lt-5783 ~
$





--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

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

* Re: Compiling from cvs and duplicate definition error on strsignal
  2008-06-18 23:54 Compiling from cvs and duplicate definition error on strsignal Brian Keener
@ 2008-06-19  0:01 ` Eric Blake
  0 siblings, 0 replies; 2+ messages in thread
From: Eric Blake @ 2008-06-19  0:01 UTC (permalink / raw)
  To: cygwin

Brian Keener <bkeenerReMoVeAnTiSpAm <at> thesoftwaresource.com> writes:

> 
> I was compiling a debug version of Cygwin after updating from current 
> cvs (starting from scratch) and got a conflicting types error on 
> definition of strsignal building libiberty/strsignal.c :
> at line 409 of strsignal.c in  
> /usr/develop/src/src/src/libiberty/strsignal.c 
> vs
> line 79 of string.h in 
> /usr/develop/src/src/src/newlib/libc/include/string.h.

That merely means that both libiberty's strsignal.c and cygwin's strsig.cc 
conflict with the upcoming POSIX 200x definition of strsignal to return char* 
rather than const char *, and that they haven't caught up with my newlib patch 
from this morning where I fixed the same bug in newlib.  For that matter, why 
does building cygwin trigger a build of libiberty, since we obviously don't use 
libiberty's strsignal.c?  The libiberty bug should probably be reported to the 
gcc and/or gdb list; and I've been meaning to post a patch for cygwin's side of 
the bug.

-- 
Eric Blake



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

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

end of thread, other threads:[~2008-06-18 22:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-06-18 23:54 Compiling from cvs and duplicate definition error on strsignal Brian Keener
2008-06-19  0:01 ` Eric Blake

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).