marcIhm / yabasic

Yabasic - A simple Basic interpreter for Unix and Windows
http://www.yabasic.de
MIT License
90 stars 17 forks source link

Cannot build yabasic 2.84.1 with Archlinux related to a missing libffi. #30

Closed FredBezies closed 5 years ago

FredBezies commented 5 years ago

Hello.

I'm AUR maintainer for Yabasic.

I wanted to upgrade to Yabasic 2.84.1, but I had to disable ffi support.

Here is the error log I got:

checking for library containing ffi_call... -lffi
checking ffi.h usability... no
checking ffi.h presence... no
checking for ffi.h... no
configure: error: Did not find libffi library and/or header (supply '--disable-use-ffi' to built anyway and without ffi)
==> ERROR: A failure occurred in build().

Of course, i have libffi installed.

fred@fredo-arch-mate ~ % pacman -Ql libffi | grep ffi.h
libffi /usr/lib/libffi-3.2.1/include/ffi.h

Any idea to fix this bug?

marcIhm commented 5 years ago

libffi_devel is also required.

FredBezies commented 5 years ago

Well, libffi detection code is kinda broken.

$ pacman -Ss libffi | grep install core/libffi 3.2.1-3 [installed] multilib/lib32-libffi 3.2.1-2 [installed]

With configure:

checking for library containing ffi_call... -lffi
checking ffi.h usability... no
checking ffi.h presence... no
checking for ffi.h... no
configure: error: Did not find libffi library and/or header (supply '--disable-use-ffi' to built anyway and without ffi)

When I looked at libffi content:

$ pacman -Ql libffi | grep ffi.h    
libffi /usr/lib/libffi-3.2.1/include/ffi.h

I don't know why ffi.h is not detected :(