bug-classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug-classpath] [Bug classpath/22926] New: build fails on sparc-sun-sola


From: pinskia at gcc dot gnu dot org
Subject: [bug-classpath] [Bug classpath/22926] New: build fails on sparc-sun-solaris2.9 - FIONREAD not available
Date: 7 Aug 2005 20:59:33 -0000

Building classpath on sparc-sun-solaris2.9 configured with --disable-gtk-peer 
fails with this error:



gcc -DHAVE_CONFIG_H -I. -I../../../../classpath-0.14+cvs/native/jni/java-net 
-I../../../include -I../../../../classpath-0.14+cvs/include 
-I../../../../classpath-0.14+cvs/native/jni/classpath 
-I../../../../classpath-0.14+cvs/native/target/Linux 
-I../../../../classpath-0.14+cvs/native/target/generic -pedantic -W -Wall 
-Wmissing-declarations -Wwrite-strings -Wmissing-prototypes -Wno-long-long 
-Wstrict-prototypes -g -O2 -MT gnu_java_net_PlainSocketImpl.lo -MD -MP -MF 
.deps/gnu_java_net_PlainSocketImpl.Tpo -c 
../../../../classpath-0.14+cvs/native/jni/java-net/gnu_java_net_PlainSocketImpl.c
  -fPIC -DPIC -o .libs/gnu_java_net_PlainSocketImpl.o

 
../../../../classpath-0.14+cvs/native/jni/java-net/gnu_java_net_PlainSocketImpl.c:
 In function `Java_gnu_java_net_PlainSocketImpl_available':



../../../../classpath-0.14+cvs/native/jni/java-net/gnu_java_net_PlainSocketImpl.c:208:
 error: `FIONREAD' undeclared (first use in this function)



../../../../classpath-0.14+cvs/native/jni/java-net/gnu_java_net_PlainSocketImpl.c:208:
 error: (Each undeclared identifier is reported only once



../../../../classpath-0.14+cvs/native/jni/java-net/gnu_java_net_PlainSocketImpl.c:208:
 error: for each function it appears in.)



gmake[3]: *** [gnu_java_net_PlainSocketImpl.lo] Error 1

gmake[3]: Leaving directory `/home/bude2/rschuste/cp-obj/native/jni/java-net'



The problem leads to the TARGET_NATIVE_NETWORK_SOCKET_RECEIVE_AVAILABLE macro 
defined in native/target/generic/target_generic_network.h .



It is supposed that a working implementation can be found in libgcj's does in 
natPlainSocketImpl.cc (or some similar file).
------- Additional Comments From pinskia at gcc dot gnu dot org  2005-08-07 
20:59 -------
This was fixed by:
2004-04-23  Mark Wielaard  <address@hidden>

        * configure.ac (AC_CHECK_HEADERS): Check for sys/filio.h.
        * native/target/generic/target_generic_file.h
        (TARGET_NATIVE_FILE_AVAILABLE): First include headers if they exist,
        then check for FIONREAD.

-- 
           Summary: build fails on sparc-sun-solaris2.9 - FIONREAD not
                    available
           Product: classpath
           Version: unspecified
            Status: RESOLVED
          Severity: normal
          Priority: P3
         Component: classpath
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: from-classpath at savannah dot gnu dot org
                CC: bug-classpath at gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22926




reply via email to

[Prev in Thread] Current Thread [Next in Thread]