This is the mail archive of the libffi-discuss@sourceware.org mailing list for the libffi project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: libffi onOpenBSD 3.9


I think the fix in CVS for openbsd is wrong.

Here is a patch that works for me (except for the errors below):

Index: configure
===================================================================
RCS file: /cvs/libffi/libffi/configure,v
retrieving revision 1.29
diff -u -r1.29 configure
--- configure   22 Feb 2008 21:49:46 -0000      1.29
+++ configure   23 Feb 2008 17:16:33 -0000
@@ -20394,7 +20394,7 @@
        TARGET=PA_HPUX; TARGETDIR=pa
        ;;

-  i386-*-freebsd* | i386-*-openbsd)
+  i386-*-freebsd* | i386-*-openbsd*)
        TARGET=X86_FREEBSD; TARGETDIR=x86
        ;;
   i?86-win32* | i?86-*-cygwin* | i?86-*-mingw*)
Index: configure.ac
===================================================================
RCS file: /cvs/libffi/libffi/configure.ac,v
retrieving revision 1.19
diff -u -r1.19 configure.ac
--- configure.ac        22 Feb 2008 21:49:46 -0000      1.19
+++ configure.ac        23 Feb 2008 17:16:34 -0000
@@ -71,7 +71,7 @@
        TARGET=PA_HPUX; TARGETDIR=pa
        ;;

-  i386-*-freebsd* | i386-*-openbsd)
+  i386-*-freebsd* | i386-*-openbsd*)
        TARGET=X86_FREEBSD; TARGETDIR=x86
        ;;
   i?86-win32* | i?86-*-cygwin* | i?86-*-mingw*)


Remaining errors with this patch:

$ make check
Making check in include
Making check in testsuite
make  check-DEJAGNU
srcdir=`CDPATH="${ZSH_VERSION+.}:" && cd . && pwd`; export srcdir;  EXPECT=`if [ -f ../../expect/expect ] ; then  echo ../../expect/expect ;  else echo expect ; fi`; export EXPECT;  runtest=`if [ -f ../../dejagnu/runtest ] ; then  echo ../../dejagnu/runtest ;  else echo runtest; fi`;  if /bin/sh -c "$runtest --version" > /dev/null 2>&1; then  exit_status=0; l='libffi'; for tool in $l; do  if $runtest  --tool $tool --srcdir $srcdir ;  then :; else exit_status=1; fi;  done;  else echo "WARNING: could not find \`runtest'" 1>&2; :; fi;  exit $exit_status
WARNING: Couldn't find the global config file.
WARNING: Couldn't find tool init file
Test Run By theller on Sat Feb 23 16:56:03 2008
Native configuration is i386-unknown-openbsd3.9

                === libffi tests ===

Schedule of variations:
    unix

Running target unix
Using /usr/local/share/dejagnu/baseboards/unix.exp as board description file for target.
Using /usr/local/share/dejagnu/config/unix.exp as generic interface file for target.
Using /home/theller/libffi/testsuite/config/default.exp as tool-and-target-specific interface file.
Running /home/theller/libffi/testsuite/libffi.call/call.exp ...
FAIL: libffi.call/float2.c (test for excess errors)
FAIL: libffi.call/return_uc.c (test for excess errors)
Running /home/theller/libffi/testsuite/libffi.special/special.exp ...
FAIL: libffi.special/unwindtest.cc (test for excess errors)
WARNING: libffi.special/unwindtest.cc compilation failed to produce executable
FAIL: libffi.special/unwindtest_ffi_call.cc (test for excess errors)
WARNING: libffi.special/unwindtest_ffi_call.cc compilation failed to produce executable
FAIL: libffi.special/unwindtest.cc (test for excess errors)
WARNING: libffi.special/unwindtest.cc compilation failed to produce executable
FAIL: libffi.special/unwindtest_ffi_call.cc (test for excess errors)
WARNING: libffi.special/unwindtest_ffi_call.cc compilation failed to produce executable
FAIL: libffi.special/unwindtest.cc (test for excess errors)
WARNING: libffi.special/unwindtest.cc compilation failed to produce executable
FAIL: libffi.special/unwindtest_ffi_call.cc (test for excess errors)
WARNING: libffi.special/unwindtest_ffi_call.cc compilation failed to produce executable
FAIL: libffi.special/unwindtest.cc (test for excess errors)
WARNING: libffi.special/unwindtest.cc compilation failed to produce executable
FAIL: libffi.special/unwindtest_ffi_call.cc (test for excess errors)
WARNING: libffi.special/unwindtest_ffi_call.cc compilation failed to produce executable

                === libffi Summary ===

# of expected passes            1363
# of unexpected failures        10
# of unsupported tests          15
*** Error code 1

Stop in /home/theller/libffi/testsuite (line 294 of Makefile).
*** Error code 1

Stop in /home/theller/libffi/testsuite (line 348 of Makefile).
*** Error code 1

Stop in /home/theller/libffi (line 1160 of Makefile).
$


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]