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 [EMAIL PROTECTED]; 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.

2008-09-14  Aaron W. LaFramboise  <[EMAIL PROTECTED]>

        * config/i386/t-cygming (SHLIB_C): Remove.
        * config/i386/t-cygwin (SHLIB_C): Add all system libraries.

Index: gcc/config/i386/t-cygming
===================================================================
--- gcc/config/i386/t-cygming   (revision 140362)
+++ gcc/config/i386/t-cygming   (working copy)
@@ -54,7 +54,6 @@ SHLIB_MAP = @shlib_map_file@
 SHLIB_OBJS = @shlib_objs@
 SHLIB_DIR = @multilib_dir@/shlib
 SHLIB_SLIBDIR_QUAL = @shlib_slibdir_qual@
-SHLIB_LC = -luser32 -lkernel32 -ladvapi32 -lshell32
 
 SHLIB_LINK = $(LN_S) $(SHLIB_MAP) $(SHLIB_MAP).def && \
        if [ ! -d $(SHLIB_DIR) ]; then \
Index: gcc/config/i386/t-cygwin
===================================================================
--- gcc/config/i386/t-cygwin    (revision 140362)
+++ gcc/config/i386/t-cygwin    (working copy)
@@ -15,4 +15,4 @@ cygwin2.o: $(srcdir)/config/i386/cygwin2
        $(srcdir)/config/i386/cygwin2.c
 
 # Cygwin-specific parts of LIB_SPEC
-SHLIB_LC += -lcygwin
+SHLIB_LC = -lcygwin -luser32 -lkernel32 -ladvapi32 -lshell32

Reply via email to