public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* failed to build binutils cvs trunk 20050325 on cygwin: src/include/getopt.h:116: warning: function declaration isn't a prototype
@ 2005-03-25 17:22 Christian Joensson
  2005-03-29 17:24 ` Nick Clifton
  0 siblings, 1 reply; 2+ messages in thread
From: Christian Joensson @ 2005-03-25 17:22 UTC (permalink / raw)
  To: binutils

Windows XP Pro/SP2 cygwin P4 mobile system with these packages:

binutils             20041229-1	    2.15.94 20041229
bison                20030307-1	    1.875b
cygwin               1.5.12-1	    
dejagnu              20021217-2	    1.4.2.x
expect               20030128-1	    5.26
gcc                  3.4.1-1
tcltk                20030901-1	    8.4

LAST_UPDATED: Fri Mar 25 08:50:06 UTC 2005

gcc -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -g -O2
-o ar.exe arparse.o arlex.o ar.o not-ranlib.o arsup.o rename.o
binemul.o emul_vanilla.o bucomm.o version.o filemode.o 
../bfd/.libs/libbfd.a
-L/usr/local/src/trunk/objdir-binutils/bfd/../libiberty -liberty
-L/usr/local/src/trunk/objdir-binutils/bfd/../intl
.libs/libimp-cygintl-3.a -L/usr/lib .libs/libimp-cygiconv-2.a -lcygwin
-lkernel32 ../libiberty/libiberty.a -lfl ./../intl/libintl.a
gcc -DHAVE_CONFIG_H -I. -I/usr/local/src/trunk/src/binutils -I.
-D_GNU_SOURCE -I. -I/usr/local/src/trunk/src/binutils -I../bfd
-I/usr/local/src/trunk/src/binutils/../bfd
-I/usr/local/src/trunk/src/binutils/../include
-I/usr/local/src/trunk/src/binutils/../intl -I../intl
-DLOCALEDIR="\"/usr/local/share/locale\""
-Dbin_dummy_emulation=bin_vanilla_emulation   -W -Wall
-Wstrict-prototypes -Wmissing-prototypes -Werror -g -O2 -c
/usr/local/src/trunk/src/binutils/strings.c
In file included from /usr/local/src/trunk/src/binutils/strings.c:65:
/usr/local/src/trunk/src/include/getopt.h:116: warning: function
declaration isn't a prototype
make[3]: *** [strings.o] Error 1
make[3]: Leaving directory `/usr/local/src/trunk/objdir-binutils/binutils'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/local/src/trunk/objdir-binutils/binutils'
make[1]: *** [all-recursive-am] Error 2
make[1]: Leaving directory `/usr/local/src/trunk/objdir-binutils/binutils'
make: *** [all-binutils] Error 2

-- 
Cheers,

/ChJ

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

* Re: failed to build binutils cvs trunk 20050325 on cygwin: src/include/getopt.h:116: warning: function declaration isn't a prototype
  2005-03-25 17:22 failed to build binutils cvs trunk 20050325 on cygwin: src/include/getopt.h:116: warning: function declaration isn't a prototype Christian Joensson
@ 2005-03-29 17:24 ` Nick Clifton
  0 siblings, 0 replies; 2+ messages in thread
From: Nick Clifton @ 2005-03-29 17:24 UTC (permalink / raw)
  To: Christian Joensson; +Cc: binutils

[-- Attachment #1: Type: text/plain, Size: 879 bytes --]

Hi Christian,

> Windows XP Pro/SP2 cygwin P4 mobile system with these packages:

> In file included from /usr/local/src/trunk/src/binutils/strings.c:65:
> /usr/local/src/trunk/src/include/getopt.h:116: warning: function
> declaration isn't a prototype

If your build-time environment does provide a prototype for getopt() 
which is compatible with the one in include/getopt.h then you may find 
that the attached patch helps.  It fixes the configure system in the 
binutils/ subdirectory so that it checks for a compatible getopt() 
prototype.  (You will need to regenerate the configure files after 
applying the patch).

Note - this issue is being discussed on a thread on the 
bug-binutils@gnu.org mailing list started by Vladimir Merzliakov. 
Unfortunately it appears that this list is not being archived at the 
moment so I cannot give you a URL to follow.

Cheers
   Nick

[-- Attachment #2: binutils.config.patch.supplimental.bz2 --]
[-- Type: application/x-bzip2, Size: 2396 bytes --]

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

end of thread, other threads:[~2005-03-29 15:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-03-25 17:22 failed to build binutils cvs trunk 20050325 on cygwin: src/include/getopt.h:116: warning: function declaration isn't a prototype Christian Joensson
2005-03-29 17:24 ` Nick Clifton

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