[kaffe] Compilation errors in PlainDatagramSocketImpl.c

Alan Eliasen eliasen at mindspring.com
Wed Apr 20 15:42:44 PDT 2005


   I'm getting the following errors when compiling Kaffe (trunk, just
checked out)

   Fedora Core 3, gcc 3.4.3:

Reading specs from /usr/lib/gcc/i386-redhat-linux/3.4.3/specs
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
--infodir=/usr/share/info --enable-shared --enable-threads=posix
--disable-checking --with-system-zlib --enable-__cxa_atexit
--disable-libunwind-exceptions --enable-java-awt=gtk --host=i386-redhat-linux
Thread model: posix
gcc version 3.4.3 20050227 (Red Hat 3.4.3-22.fc3)

   Anyone have any suggestions?  I know that people have been working hard
on these parts of the libraries.  I had to upgrade to Jikes 1.2.2 or it gave
cryptic errors.


---------------------------------------------------------------------------


 gcc -DHAVE_CONFIG_H -I. -I. -I../../../config -I../../../include/kaffe
-I../../../kaffe -I../../../include -I../../../kaffe/kaffevm/jni
-I/home/eliasen/prog/kaffe/./kaffe/kaffevm
-I/home/eliasen/prog/kaffe/./kaffe/kaffevm/jit3
-I/home/eliasen/prog/kaffe/./kaffe/kaffevm/systems/unix-pthreads
-I../../../replace -I../../../binreloc -I../../../config -I../../../include
-I/usr/local/include -DKAFFE_VMDEBUG -D_REENTRANT -g -O2 -Wall -pthread
-DENABLE_BINRELOC -MT libnet_la-PlainDatagramSocketImpl.lo -MD -MP -MF
.deps/libnet_la-PlainDatagramSocketImpl.Tpo -c PlainDatagramSocketImpl.c
-fPIC -DPIC -o .libs/libnet_la-PlainDatagramSocketImpl.o
PlainDatagramSocketImpl.c:23:39: java_net_NetworkInterface.h: No such file
or directory
In file included from PlainDatagramSocketImpl.c:25:
../../../include/gnu_java_net_PlainDatagramSocketImpl.h:37: warning: "struct
Hjava_net_NetworkInterface" declared inside parameter list
../../../include/gnu_java_net_PlainDatagramSocketImpl.h:37: warning: its
scope is only this definition or declaration, which is probably not what you
want
../../../include/gnu_java_net_PlainDatagramSocketImpl.h:38: warning: "struct
Hjava_net_NetworkInterface" declared inside parameter list
PlainDatagramSocketImpl.c:27:34: java_net_InetAddress.h: No such file or
directory
PlainDatagramSocketImpl.c: In function
`gnu_java_net_PlainDatagramSocketImpl_bind':
PlainDatagramSocketImpl.c:135: error: dereferencing pointer to incomplete type
PlainDatagramSocketImpl.c:144: error: dereferencing pointer to incomplete type
PlainDatagramSocketImpl.c:153: error: dereferencing pointer to incomplete type
PlainDatagramSocketImpl.c:162: error: dereferencing pointer to incomplete type
PlainDatagramSocketImpl.c: In function
`gnu_java_net_PlainDatagramSocketImpl_send0':
PlainDatagramSocketImpl.c:220: error: dereferencing pointer to incomplete type
PlainDatagramSocketImpl.c:229: error: dereferencing pointer to incomplete type
PlainDatagramSocketImpl.c:238: error: dereferencing pointer to incomplete type
PlainDatagramSocketImpl.c:247: error: dereferencing pointer to incomplete type
PlainDatagramSocketImpl.c: In function
`gnu_java_net_PlainDatagramSocketImpl_peek':
PlainDatagramSocketImpl.c:290: error: dereferencing pointer to incomplete type
PlainDatagramSocketImpl.c:294: error: dereferencing pointer to incomplete type
PlainDatagramSocketImpl.c: In function
`gnu_java_net_PlainDatagramSocketImpl_receive0':
PlainDatagramSocketImpl.c:389: error: dereferencing pointer to incomplete type
PlainDatagramSocketImpl.c: In function
`gnu_java_net_PlainDatagramSocketImpl_socketSetOption':
PlainDatagramSocketImpl.c:449: error: dereferencing pointer to incomplete type
PlainDatagramSocketImpl.c: In function
`gnu_java_net_PlainDatagramSocketImpl_join':
PlainDatagramSocketImpl.c:547: error: dereferencing pointer to incomplete type
PlainDatagramSocketImpl.c: In function
`gnu_java_net_PlainDatagramSocketImpl_leave':
PlainDatagramSocketImpl.c:585: error: dereferencing pointer to incomplete type
PlainDatagramSocketImpl.c: At top level:
PlainDatagramSocketImpl.c:614: warning: "struct Hjava_net_NetworkInterface"
declared inside parameter list
PlainDatagramSocketImpl.c:615: error: conflicting types for
'gnu_java_net_PlainDatagramSocketImpl_joinGroup'
../../../include/gnu_java_net_PlainDatagramSocketImpl.h:37: error: previous
declaration of 'gnu_java_net_PlainDatagramSocketImpl_joinGroup' was here
PlainDatagramSocketImpl.c:615: error: conflicting types for
'gnu_java_net_PlainDatagramSocketImpl_joinGroup'
../../../include/gnu_java_net_PlainDatagramSocketImpl.h:37: error: previous
declaration of 'gnu_java_net_PlainDatagramSocketImpl_joinGroup' was here
PlainDatagramSocketImpl.c: In function
`gnu_java_net_PlainDatagramSocketImpl_joinGroup':
PlainDatagramSocketImpl.c:626: error: dereferencing pointer to incomplete type
PlainDatagramSocketImpl.c:634: error: dereferencing pointer to incomplete type
PlainDatagramSocketImpl.c:637: error: dereferencing pointer to incomplete type
PlainDatagramSocketImpl.c:639: error: dereferencing pointer to incomplete type
PlainDatagramSocketImpl.c: At top level:
PlainDatagramSocketImpl.c:668: warning: "struct Hjava_net_NetworkInterface"
declared inside parameter list
PlainDatagramSocketImpl.c:669: error: conflicting types for
'gnu_java_net_PlainDatagramSocketImpl_leaveGroup'
../../../include/gnu_java_net_PlainDatagramSocketImpl.h:38: error: previous
declaration of 'gnu_java_net_PlainDatagramSocketImpl_leaveGroup' was here
PlainDatagramSocketImpl.c:669: error: conflicting types for
'gnu_java_net_PlainDatagramSocketImpl_leaveGroup'
../../../include/gnu_java_net_PlainDatagramSocketImpl.h:38: error: previous
declaration of 'gnu_java_net_PlainDatagramSocketImpl_leaveGroup' was here
PlainDatagramSocketImpl.c: In function
`gnu_java_net_PlainDatagramSocketImpl_leaveGroup':
PlainDatagramSocketImpl.c:680: error: dereferencing pointer to incomplete type
PlainDatagramSocketImpl.c:682: error: dereferencing pointer to incomplete type
PlainDatagramSocketImpl.c:685: error: dereferencing pointer to incomplete type
PlainDatagramSocketImpl.c:688: error: dereferencing pointer to incomplete type
gmake[2]: *** [libnet_la-PlainDatagramSocketImpl.lo] Error 1

-- 

  Alan Eliasen                 | "Whenever you find you are on the side of
  eliasen at mindspring.com       |  the majority, it is time to pause and
  http://futureboy.homeip.net/ |  reflect."  --Mark Twain




More information about the kaffe mailing list