On 21/11/11 11:33, David Matthews wrote:
On 18/11/2011 13:49, Phil Clayton wrote:
With Fedora, there is a minor configuration issue: like many packages,
libffi headers are not installed on a standard path, so relies on
pkg-config to supply cflags/libs arguments. I was able to build by
simply adding symbolic links in /usr/include. After some investigation,
it seems a more general solution can be achieved with the
PKG_CHECK_MODULES macro in configure but I don't know whether Fedora is
just an unusual case regarding libffi setup.

I've updated configure to use PKG_CHECK_MODULES and it works for me on
Debian as before. I've also managed to get it work with mingw once I
sorted out pkg-config. Can you check that it now works for you without
the symbolic links?

This now works on Fedora 15 x86_64 without the symbolic links. I also tested Fedora 12 x86_64 with and without the libffi-devel package and both scenarios worked 'out of the box' i.e. no sym links required.

I also ran tests on a Fedora 14 i386 machine. These were not to successful. Without libffi, build failed during 'make' - see attached file log-nolibffi-f14-i386.txt. With libffi, a callback caused a seg fault. I can supply an example but wondered if you were still tweaking the i386 stuff?

One minor comment: for x86_64, the Foreign exn message for structs and doubles could, perhaps, usefully indicate libffi is required like it now does for callbacks.

Phil
[veonix@fozzie polyml]$ ./configure --prefix /opt/polyml/polyml-r1370
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking how to print strings... printf
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert i686-pc-linux-gnu file names to i686-pc-linux-gnu 
format... func_convert_file_noop
checking how to convert i686-pc-linux-gnu file names to toolchain format... 
func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for mt... no
checking if : is a manifest tool... no
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... no
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking how to run the C++ preprocessor... g++ -E
checking for ld used by g++... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC -DPIC
checking if g++ PIC flag -fPIC -DPIC works... yes
checking if g++ static flag -static works... no
checking if g++ supports -c -o file.o... yes
checking if g++ supports -c -o file.o... (cached) yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... (cached) GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking dependency style of gcc... (cached) gcc3
checking whether make sets $(MAKE)... (cached) yes
checking how to run the C preprocessor... gcc -E
checking dependency style of gcc... gcc3
checking for main in -lgcc... yes
checking for main in -lgcc_s... yes
checking for main in -lstdc++... yes
checking for dlopen in -ldl... yes
checking for floor in -lm... yes
checking for main in -lwsock32... no
checking for main in -lgdi32... no
checking for intptr_t... yes
checking for uintptr_t... yes
checking for gethostbyname... yes
checking for getsockopt... yes
checking for sem_wait... no
checking for sem_wait in -lrt... no
checking for X... libraries , headers 
checking for size_t... yes
checking for working alloca.h... yes
checking for alloca... yes
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking for ANSI C header files... (cached) yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking stdio.h usability... yes
checking stdio.h presence... yes
checking for stdio.h... yes
checking time.h usability... yes
checking time.h presence... yes
checking for time.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking float.h usability... yes
checking float.h presence... yes
checking for float.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking malloc.h usability... yes
checking malloc.h presence... yes
checking for malloc.h... yes
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking stddef.h usability... yes
checking stddef.h presence... yes
checking for stddef.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking sys/file.h usability... yes
checking sys/file.h presence... yes
checking for sys/file.h... yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking sys/systeminfo.h usability... no
checking sys/systeminfo.h presence... no
checking for sys/systeminfo.h... no
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for unistd.h... (cached) yes
checking values.h usability... yes
checking values.h presence... yes
checking for values.h... yes
checking for dlfcn.h... (cached) yes
checking signal.h usability... yes
checking signal.h presence... yes
checking for signal.h... yes
checking ucontext.h usability... yes
checking ucontext.h presence... yes
checking for ucontext.h... yes
checking assert.h usability... yes
checking assert.h presence... yes
checking for assert.h... yes
checking ctype.h usability... yes
checking ctype.h presence... yes
checking for ctype.h... yes
checking direct.h usability... no
checking direct.h presence... no
checking for direct.h... no
checking errno.h usability... yes
checking errno.h presence... yes
checking for errno.h... yes
checking excpt.h usability... no
checking excpt.h presence... no
checking for excpt.h... no
checking fenv.h usability... yes
checking fenv.h presence... yes
checking for fenv.h... yes
checking fpu_control.h usability... yes
checking fpu_control.h presence... yes
checking for fpu_control.h... yes
checking grp.h usability... yes
checking grp.h presence... yes
checking for grp.h... yes
checking ieeefp.h usability... no
checking ieeefp.h presence... no
checking for ieeefp.h... no
checking io.h usability... no
checking io.h presence... no
checking for io.h... no
checking math.h usability... yes
checking math.h presence... yes
checking for math.h... yes
checking for memory.h... (cached) yes
checking netinet/tcp.h usability... yes
checking netinet/tcp.h presence... yes
checking for netinet/tcp.h... yes
checking poll.h usability... yes
checking poll.h presence... yes
checking for poll.h... yes
checking pwd.h usability... yes
checking pwd.h presence... yes
checking for pwd.h... yes
checking siginfo.h usability... no
checking siginfo.h presence... no
checking for siginfo.h... no
checking stdarg.h usability... yes
checking stdarg.h presence... yes
checking for stdarg.h... yes
checking sys/errno.h usability... yes
checking sys/errno.h presence... yes
checking for sys/errno.h... yes
checking sys/filio.h usability... no
checking sys/filio.h presence... no
checking for sys/filio.h... no
checking sys/mman.h usability... yes
checking sys/mman.h presence... yes
checking for sys/mman.h... yes
checking sys/resource.h usability... yes
checking sys/resource.h presence... yes
checking for sys/resource.h... yes
checking sys/signal.h usability... yes
checking sys/signal.h presence... yes
checking for sys/signal.h... yes
checking sys/sockio.h usability... no
checking sys/sockio.h presence... no
checking for sys/sockio.h... no
checking for sys/stat.h... (cached) yes
checking termios.h usability... yes
checking termios.h presence... yes
checking for termios.h... yes
checking sys/termios.h usability... yes
checking sys/termios.h presence... yes
checking for sys/termios.h... yes
checking sys/times.h usability... yes
checking sys/times.h presence... yes
checking for sys/times.h... yes
checking for sys/types.h... (cached) yes
checking sys/uio.h usability... yes
checking sys/uio.h presence... yes
checking for sys/uio.h... yes
checking sys/un.h usability... yes
checking sys/un.h presence... yes
checking for sys/un.h... yes
checking sys/utsname.h usability... yes
checking sys/utsname.h presence... yes
checking for sys/utsname.h... yes
checking sys/select.h usability... yes
checking sys/select.h presence... yes
checking for sys/select.h... yes
checking sys/sysctl.h usability... yes
checking sys/sysctl.h presence... yes
checking for sys/sysctl.h... yes
checking sys/elf_SPARC.h usability... no
checking sys/elf_SPARC.h presence... no
checking for sys/elf_SPARC.h... no
checking sys/elf_386.h usability... no
checking sys/elf_386.h presence... no
checking for sys/elf_386.h... no
checking windows.h usability... no
checking windows.h presence... no
checking for windows.h... no
checking tchar.h usability... no
checking tchar.h presence... no
checking for tchar.h... no
checking semaphore.h usability... yes
checking semaphore.h presence... yes
checking for semaphore.h... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for __gmpn_tdiv_qr in -lgmp... yes
checking gmp.h usability... yes
checking gmp.h presence... yes
checking for gmp.h... yes
checking for FFI... no
checking for pthread_create in -lpthread... yes
checking pthread.h usability... yes
checking pthread.h presence... yes
checking for pthread.h... yes
checking for IMAGE_FILE_HEADER... no
checking elf.h usability... yes
checking elf.h presence... yes
checking for elf.h... yes
checking for stdbool.h that conforms to C99... yes
checking for _Bool... yes
checking for an ANSI C-conforming const... yes
checking for uid_t in sys/types.h... yes
checking for mode_t... yes
checking for off_t... yes
checking for pid_t... yes
checking for size_t... (cached) yes
checking whether time.h and sys/time.h may both be included... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for ucontext_t... yes
checking for struct sigcontext... yes
checking for stack_t... yes
checking for sighandler_t... no
checking for sig_t... yes
checking for socklen_t... yes
checking for long long... yes
checking size of void*... 4
checking size of long... 4
checking for unistd.h... (cached) yes
checking for working chown... yes
checking whether closedir returns void... no
checking for error_at_line... yes
checking vfork.h usability... no
checking vfork.h presence... no
checking for vfork.h... no
checking for fork... yes
checking for vfork... yes
checking for working fork... yes
checking for working vfork... (cached) yes
checking type of array argument to getgroups... gid_t
checking for getgroups... yes
checking for working getgroups... yes
checking whether getpgrp requires zero arguments... yes
checking whether gcc needs -traditional... no
checking whether lstat correctly handles trailing slash... yes
checking whether lstat accepts an empty string... no
checking whether lstat correctly handles trailing slash... (cached) yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible realloc... yes
checking for sys/select.h... (cached) yes
checking for sys/socket.h... (cached) yes
checking types of arguments for select... int,fd_set *,struct timeval *
checking whether stat accepts an empty string... no
checking for strftime... yes
checking for working strtod... yes
checking for vprintf... yes
checking for _doprnt... no
checking for bzero... yes
checking for dup2... yes
checking for floor... yes
checking for ftruncate... yes
checking for getcwd... yes
checking for gethostbyaddr... yes
checking for gethostname... yes
checking for gettimeofday... yes
checking for memmove... yes
checking for memset... yes
checking for mkdir... yes
checking for mkfifo... yes
checking for munmap... yes
checking for pathconf... yes
checking for pow... yes
checking for realpath... yes
checking for rmdir... yes
checking for select... yes
checking for setlocale... yes
checking for socket... yes
checking for sqrt... yes
checking for strdup... yes
checking for strerror... yes
checking for uname... yes
checking for dlopen... yes
checking for getrusage... yes
checking for strtod... (cached) yes
checking for dtoa... no
checking for sigaction... yes
checking for mkstemp... yes
checking for getpagesize... yes
checking for sigaltstack... yes
checking for mmap... yes
checking for mprotect... yes
checking whether fpsetmask is declared... no
checking for sysctl... yes
checking for localtime_r... yes
checking for gmtime_r... yes
checking for mcontext_t.gregs... yes
checking for mcontext_t.regs... no
checking for mcontext_t.mc_esp... no
checking for struct mcontext.ss... no
checking for struct __darwin_mcontext.ss... no
checking for struct __darwin_mcontext.__ss... no
checking for struct __darwin_mcontext32.ss... no
checking for struct __darwin_mcontext32.__ss... no
checking for struct __darwin_mcontext64.ss... no
checking for struct __darwin_mcontext64.__ss... no
checking for struct sockaddr_un.sun_len... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating libpolyml/Makefile
config.status: creating libpolymain/Makefile
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands
config.status: executing basis commands
config.status: executing mlsource commands
[veonix@fozzie polyml]$ make
make  all-recursive
make[1]: Entering directory `/tmp/polyml'
Making all in libpolyml
make[2]: Entering directory `/tmp/polyml/libpolyml'
/bin/sh ../libtool --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I..    
-Wall   -O3 -MT mpoly.lo -MD -MP -MF .deps/mpoly.Tpo -c -o mpoly.lo mpoly.cpp
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I.. -Wall -O3 -MT mpoly.lo -MD -MP 
-MF .deps/mpoly.Tpo -c mpoly.cpp  -fPIC -DPIC -o .libs/mpoly.o
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I.. -Wall -O3 -MT mpoly.lo -MD -MP 
-MF .deps/mpoly.Tpo -c mpoly.cpp -o mpoly.o >/dev/null 2>&1
mv -f .deps/mpoly.Tpo .deps/mpoly.Plo
/bin/sh ../libtool --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I..    
-Wall   -O3 -MT gc.lo -MD -MP -MF .deps/gc.Tpo -c -o gc.lo gc.cpp
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I.. -Wall -O3 -MT gc.lo -MD -MP -MF 
.deps/gc.Tpo -c gc.cpp  -fPIC -DPIC -o .libs/gc.o
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I.. -Wall -O3 -MT gc.lo -MD -MP -MF 
.deps/gc.Tpo -c gc.cpp -o gc.o >/dev/null 2>&1
mv -f .deps/gc.Tpo .deps/gc.Plo
/bin/sh ../libtool --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I..    
-Wall   -O3 -MT diagnostics.lo -MD -MP -MF .deps/diagnostics.Tpo -c -o 
diagnostics.lo diagnostics.cpp
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I.. -Wall -O3 -MT diagnostics.lo 
-MD -MP -MF .deps/diagnostics.Tpo -c diagnostics.cpp  -fPIC -DPIC -o 
.libs/diagnostics.o
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I.. -Wall -O3 -MT diagnostics.lo 
-MD -MP -MF .deps/diagnostics.Tpo -c diagnostics.cpp -o diagnostics.o 
>/dev/null 2>&1
mv -f .deps/diagnostics.Tpo .deps/diagnostics.Plo
/bin/sh ../libtool --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I..    
-Wall   -O3 -MT arb.lo -MD -MP -MF .deps/arb.Tpo -c -o arb.lo arb.cpp
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I.. -Wall -O3 -MT arb.lo -MD -MP 
-MF .deps/arb.Tpo -c arb.cpp  -fPIC -DPIC -o .libs/arb.o
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I.. -Wall -O3 -MT arb.lo -MD -MP 
-MF .deps/arb.Tpo -c arb.cpp -o arb.o >/dev/null 2>&1
mv -f .deps/arb.Tpo .deps/arb.Plo
/bin/sh ../libtool --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I..    
-Wall   -O3 -MT reals.lo -MD -MP -MF .deps/reals.Tpo -c -o reals.lo reals.cpp
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I.. -Wall -O3 -MT reals.lo -MD -MP 
-MF .deps/reals.Tpo -c reals.cpp  -fPIC -DPIC -o .libs/reals.o
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I.. -Wall -O3 -MT reals.lo -MD -MP 
-MF .deps/reals.Tpo -c reals.cpp -o reals.o >/dev/null 2>&1
mv -f .deps/reals.Tpo .deps/reals.Plo
/bin/sh ../libtool --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I..    
-Wall   -O3 -MT timing.lo -MD -MP -MF .deps/timing.Tpo -c -o timing.lo 
timing.cpp
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I.. -Wall -O3 -MT timing.lo -MD -MP 
-MF .deps/timing.Tpo -c timing.cpp  -fPIC -DPIC -o .libs/timing.o
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I.. -Wall -O3 -MT timing.lo -MD -MP 
-MF .deps/timing.Tpo -c timing.cpp -o timing.o >/dev/null 2>&1
mv -f .deps/timing.Tpo .deps/timing.Plo
/bin/sh ../libtool --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I..    
-Wall   -O3 -MT processes.lo -MD -MP -MF .deps/processes.Tpo -c -o processes.lo 
processes.cpp
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I.. -Wall -O3 -MT processes.lo -MD 
-MP -MF .deps/processes.Tpo -c processes.cpp  -fPIC -DPIC -o .libs/processes.o
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I.. -Wall -O3 -MT processes.lo -MD 
-MP -MF .deps/processes.Tpo -c processes.cpp -o processes.o >/dev/null 2>&1
mv -f .deps/processes.Tpo .deps/processes.Plo
/bin/sh ../libtool --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I..    
-Wall   -O3 -MT profiling.lo -MD -MP -MF .deps/profiling.Tpo -c -o profiling.lo 
profiling.cpp
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I.. -Wall -O3 -MT profiling.lo -MD 
-MP -MF .deps/profiling.Tpo -c profiling.cpp  -fPIC -DPIC -o .libs/profiling.o
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I.. -Wall -O3 -MT profiling.lo -MD 
-MP -MF .deps/profiling.Tpo -c profiling.cpp -o profiling.o >/dev/null 2>&1
mv -f .deps/profiling.Tpo .deps/profiling.Plo
/bin/sh ../libtool --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I..    
-Wall   -O3 -MT realconv.lo -MD -MP -MF .deps/realconv.Tpo -c -o realconv.lo 
realconv.cpp
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I.. -Wall -O3 -MT realconv.lo -MD 
-MP -MF .deps/realconv.Tpo -c realconv.cpp  -fPIC -DPIC -o .libs/realconv.o
realconv.cpp: In function 'char* rv_alloc(int)':
realconv.cpp:3489:55: warning: comparison between signed and unsigned integer 
expressions
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I.. -Wall -O3 -MT realconv.lo -MD 
-MP -MF .deps/realconv.Tpo -c realconv.cpp -o realconv.o >/dev/null 2>&1
mv -f .deps/realconv.Tpo .deps/realconv.Plo
/bin/sh ../libtool --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I..    
-Wall   -O3 -MT objsize.lo -MD -MP -MF .deps/objsize.Tpo -c -o objsize.lo 
objsize.cpp
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I.. -Wall -O3 -MT objsize.lo -MD 
-MP -MF .deps/objsize.Tpo -c objsize.cpp  -fPIC -DPIC -o .libs/objsize.o
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I.. -Wall -O3 -MT objsize.lo -MD 
-MP -MF .deps/objsize.Tpo -c objsize.cpp -o objsize.o >/dev/null 2>&1
mv -f .deps/objsize.Tpo .deps/objsize.Plo
/bin/sh ../libtool --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I..    
-Wall   -O3 -MT foreign.lo -MD -MP -MF .deps/foreign.Tpo -c -o foreign.lo 
foreign.cpp
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I.. -Wall -O3 -MT foreign.lo -MD 
-MP -MF .deps/foreign.Tpo -c foreign.cpp  -fPIC -DPIC -o .libs/foreign.o
foreign.cpp: In function 'unsigned char* BuildCallback(TaskData*, int, 
SaveVecEntry*, int)':
foreign.cpp:1928:26: error: 'CCallbackFunction' was not declared in this scope
foreign.cpp: In function 'SaveVecEntry* createCallbackFunction(TaskData*, 
SaveVecEntry*, bool)':
foreign.cpp:2051:27: error: 'class MachineDependent' has no member named 
'BuildCallback'
foreign.cpp: In function 'SaveVecEntry* buildArgList(TaskData*, SaveVecEntry*, 
void**)':
foreign.cpp:2093:35: error: 'class MachineDependent' has no member named 
'GetCallbackArg'
foreign.cpp: At global scope:
foreign.cpp:1921:23: warning: 'unsigned char* BuildCallback(TaskData*, int, 
SaveVecEntry*, int)' defined but not used
foreign.cpp:2020:13: warning: 'void GetCallbackArg(void**, void*, int)' defined 
but not used
foreign.cpp:2100:14: warning: 'void* CCallbackFunction(unsigned int, void**)' 
defined but not used
make[2]: *** [foreign.lo] Error 1
make[2]: Leaving directory `/tmp/polyml/libpolyml'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/polyml'
make: *** [all] Error 2
_______________________________________________
polyml mailing list
polyml@inf.ed.ac.uk
http://lists.inf.ed.ac.uk/mailman/listinfo/polyml

Reply via email to