[Cygwin] some random build breaks

Aaron W. LaFramboise aaronavay62@aaronwl.com
Mon Sep 15 19:13:00 GMT 2008

Jay wrote:

> Creating library file: ./shlib/libgcc_s.a.tmp
> /usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../i686-pc-cygwin/bin/ld: warning: ca
> nnot find entry symbol __cygwin_dll_entry@12; defaulting to 10001000
> _absvsi2_s.o: In function `__absvsi2':
> /src/gccsvn/libgcc/../gcc/libgcc2.c:237: undefined reference to `_abort'
> collect2: ld returned 1 exit status
> make[1]: *** [libgcc_s.dll] Error 1

Can you please try the attached patch to see if it fixes things, and let 
me know the result?  Thanks in advance.

> java/net/natVMInetAddress.cc:42: error: declaration of C function 'int gethostna
> me(char*, int)' conflicts with
> /src/gcc/newlib/libc/include/sys/unistd.h:227: error: previous declaration 'int
> gethostname(char*, size_t)' here
> Probably the right fix here is some configury to look for the declaration of gethostname
> and if it is found, be sure to #include where it is found, and not declare it one's self?

Yes.  This is a problem with libjava's autoconfigury. 
HAVE_GETHOSTNAME_DECL should be defined, but for some reason isn't.  If 
you examine the configury files in libjava/ such as config.log, 
configure, and configure.ac, you probably will find some clues regarding 
whats happening here.

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: gcc-4.4.0-20080914-cygwin.patch
URL: <https://gcc.gnu.org/pipermail/gcc/attachments/20080915/fb054783/attachment.ksh>

More information about the Gcc mailing list