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


Björn König schrieb:
>> Here are testresults for libffi 3.0.2 (from cvs) on an OpenBSD 3.9 system.
>> I realize that this is old, but it is the only openbsd vmware image I have
>> currently
>> laying around.
>>
>> [... many failures ...]
> 
> I suggest to let OpenBSD use the FreeBSD bits. Replace 'i386-*-freebsd*'
> with 'i386-*-openbsd*' in configure.ac, run autoconf and try again. I
> suppose that the patch I submitted recently can be applied to all BSD
> variants. If this works then all occurrences of X86_FREEBSD should be
> replaced with X86_BSD, freebsd.S renamed to bsd.S and so on, to be more
> liberally. ;-)

With this patch to configure.ac (and a regenerated configure script)...

thomas@tubu:~/devel/libffi$ cvs diff -u configure.ac
Index: configure.ac
===================================================================
RCS file: /cvs/libffi/libffi/configure.ac,v
retrieving revision 1.16
diff -u -r1.16 configure.ac
--- configure.ac        21 Feb 2008 13:36:18 -0000      1.16
+++ configure.ac        22 Feb 2008 20:18:37 -0000
@@ -67,7 +67,7 @@
        TARGET=PA_HPUX; TARGETDIR=pa
        ;;

-  i386-*-freebsd*)
+  i386-*-freebsd* | i386-*-openbsd*)
        TARGET=X86_FREEBSD; TARGETDIR=x86
        ;;
   i?86-win32* | i?86-*-cygwin* | i?86-*-mingw*)
thomas@tubu:~/devel/libffi$

...I'm down from 65 unexpected failures to 10.

> 
> Björn
> 
> 

Thomas


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