[kaffe] m68k cross-compiling error in ltdl.c

Dave_W d.waelchli at gmx.net
Fri Jun 9 02:39:03 PDT 2006


Hi all,

While trying to compile kaffe 1.1.7 for coldfire make fails with the 
error listed below. Seems like the m68k compiler cannot cope with some 
c-code. What can I do to avoid these errors?

Thanks for any tips!
dave


CONFIGURE (which runs)

CC=m68k-elf-gcc \
NM=m68k-elf-nm \
AR=m68k-elf-ar \
CFLAGS="-Wall -g -m5307 -Wl,-elf2flt -Os -lc" \
LDFLAGS="-g -m5307 -Wl,-elf2flt" \
KAFFEH=/home/dave/software/kaffe-native/kaffe/kaffeh/kaffeh \
../kaffe-1.1.7/configure \
--host=m68k-linux \
--build=i686-linux \
--with-engine=intrp \
--enable-pure-java-math \
--with-threads=unix-jthreads \
--disable-direct-threading \
--prefix=/kaffe/m68k/ \
--disable-sound \
--disable-alsa \
--without-alsa \
--without-esd \
--disable-gtk-peer \
--disable-alsatest \
--disable-esdtest \
--without-x \
--disable-xmltest \
--disable-xslttest \
--disable-debug \
--disable-native-awt \
--disable-feedback \
--without-profiling \
--without-stats \
--disable-gcj \
--disable-xawt-xi18n \
--disable-fastjar \
--disable-shared \
--with-staticlib \
--with-staticbin \
--with-staticvm \
--without-gmp \
--disable-rpath \
--disable-libtool-lock


MAKE ERROR:

 m68k-elf-gcc -DHAVE_CONFIG_H -I. -I../../kaffe-1.1.7/libltdl -I. -Wall 
-g -m5307 -Wl,-elf2flt -Os -lc -W -O1 -fno-omit-frame-pointer -c 
../../kaffe-1.1.7/libltdl/ltdl.c -o ltdl.o
../../kaffe-1.1.7/libltdl/ltdl.c: In function `presym_init':
../../kaffe-1.1.7/libltdl/ltdl.c:1965: warning: unused parameter 
`loader_data'
../../kaffe-1.1.7/libltdl/ltdl.c: In function `presym_exit':
../../kaffe-1.1.7/libltdl/ltdl.c:2006: warning: unused parameter 
`loader_data'
../../kaffe-1.1.7/libltdl/ltdl.c: In function `presym_open':
../../kaffe-1.1.7/libltdl/ltdl.c:2052: warning: unused parameter 
`loader_data'
../../kaffe-1.1.7/libltdl/ltdl.c: In function `presym_close':
../../kaffe-1.1.7/libltdl/ltdl.c:2102: warning: unused parameter 
`loader_data'
../../kaffe-1.1.7/libltdl/ltdl.c: In function `presym_sym':
../../kaffe-1.1.7/libltdl/ltdl.c:2112: warning: unused parameter 
`loader_data'
../../kaffe-1.1.7/libltdl/ltdl.c: At top level:
../../kaffe-1.1.7/libltdl/ltdl.c:2200: warning: `struct direct' declared 
inside parameter list
../../kaffe-1.1.7/libltdl/ltdl.c:2200: warning: its scope is only this 
definition or declaration, which is probably not what you want.
../../kaffe-1.1.7/libltdl/ltdl.c: In function `foreach_dirinpath':
../../kaffe-1.1.7/libltdl/ltdl.c:2701: warning: comparison between 
signed and unsigned
../../kaffe-1.1.7/libltdl/ltdl.c:2710: warning: comparison between 
signed and unsigned
../../kaffe-1.1.7/libltdl/ltdl.c: In function `find_file_callback':
../../kaffe-1.1.7/libltdl/ltdl.c:2756: warning: initialization discards 
qualifiers from pointer target type
../../kaffe-1.1.7/libltdl/ltdl.c: In function `find_handle_callback':
../../kaffe-1.1.7/libltdl/ltdl.c:2786: warning: unused parameter `ignored'
../../kaffe-1.1.7/libltdl/ltdl.c: In function `load_deplibs':
../../kaffe-1.1.7/libltdl/ltdl.c:2824: warning: unused parameter `deplibs'
../../kaffe-1.1.7/libltdl/ltdl.c: In function `try_dlopen':
../../kaffe-1.1.7/libltdl/ltdl.c:3107: warning: assignment discards 
qualifiers from pointer target type
../../kaffe-1.1.7/libltdl/ltdl.c:3158: warning: comparison between 
signed and unsigned
../../kaffe-1.1.7/libltdl/ltdl.c:3302: warning: assignment discards 
qualifiers from pointer target type
../../kaffe-1.1.7/libltdl/ltdl.c: In function `lt_dlopenext':
../../kaffe-1.1.7/libltdl/ltdl.c:3480: warning: assignment discards 
qualifiers from pointer target type
../../kaffe-1.1.7/libltdl/ltdl.c: In function `lt_argz_insertdir':
../../kaffe-1.1.7/libltdl/ltdl.c:3612: argument `dp' doesn't match prototype
../../kaffe-1.1.7/libltdl/ltdl.c:2200: prototype declaration
../../kaffe-1.1.7/libltdl/ltdl.c:3625: dereferencing pointer to 
incomplete type
../../kaffe-1.1.7/libltdl/ltdl.c:3625: dereferencing pointer to 
incomplete type
../../kaffe-1.1.7/libltdl/ltdl.c:3630: dereferencing pointer to 
incomplete type
../../kaffe-1.1.7/libltdl/ltdl.c:3641: dereferencing pointer to 
incomplete type
../../kaffe-1.1.7/libltdl/ltdl.c:3650: dereferencing pointer to 
incomplete type
../../kaffe-1.1.7/libltdl/ltdl.c:3660: dereferencing pointer to 
incomplete type
../../kaffe-1.1.7/libltdl/ltdl.c: In function `list_files_by_dir':
../../kaffe-1.1.7/libltdl/ltdl.c:3678: `DIR' undeclared (first use in 
this function)
../../kaffe-1.1.7/libltdl/ltdl.c:3678: (Each undeclared identifier is 
reported only once
../../kaffe-1.1.7/libltdl/ltdl.c:3678: for each function it appears in.)
../../kaffe-1.1.7/libltdl/ltdl.c:3678: `dirp' undeclared (first use in 
this function)
../../kaffe-1.1.7/libltdl/ltdl.c:3679: parse error before `int'
../../kaffe-1.1.7/libltdl/ltdl.c:3686: warning: implicit declaration of 
function `opendir'
../../kaffe-1.1.7/libltdl/ltdl.c:3691: warning: implicit declaration of 
function `readdir'
../../kaffe-1.1.7/libltdl/ltdl.c:3691: warning: assignment makes pointer 
from integer without a cast
../../kaffe-1.1.7/libltdl/ltdl.c:3692: dereferencing pointer to 
incomplete type
../../kaffe-1.1.7/libltdl/ltdl.c:3693: warning: passing arg 4 of 
`lt_argz_insertdir' from incompatible pointer type
../../kaffe-1.1.7/libltdl/ltdl.c:3695: `errors' undeclared (first use in 
this function)
../../kaffe-1.1.7/libltdl/ltdl.c:3699: warning: implicit declaration of 
function `closedir'
../../kaffe-1.1.7/libltdl/ltdl.c:3705: warning: control reaches end of 
non-void function
../../kaffe-1.1.7/libltdl/ltdl.c: In function `lt_dlpath_insertdir':
../../kaffe-1.1.7/libltdl/ltdl.c:4017: warning: comparison between 
signed and unsigned
make[2]: *** [ltdl.lo] Error 1
make[2]: Leaving directory `/kaffe/m68k/libltdl'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/kaffe/m68k/libltdl'
make: *** [all-recursive] Error 1





More information about the kaffe mailing list