--disable-libffi not disabling the FFI support
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ikarus Scheme |
Fix Committed
|
Medium
|
Abdulaziz Ghuloum |
Bug Description
When I do --disable-libffi, it still builds with the FFI support, and I'm able to successfully run lab/test-ffi.ss. However, there is a build warning.
[d@eep:
[...]
[d@eep:
[...]
checking ffi.h usability... yes
checking ffi.h presence... yes
checking for ffi.h... yes
checking for ffi_call in -lffi... yes
[...]
[d@eep:
[...]
gcc -DHAVE_CONFIG_H -I. -I.. -g -O2 -DNDEBUG -O3 -Wall -MT ikarus-ffi.o -MD -MP -MF .deps/ikarus-
ikarus-ffi.c: In function ‘ikrt_call_back’:
ikarus-ffi.c:204: warning: unused variable ‘rv’
ikarus-ffi.c: In function ‘generic_callback’:
ikarus-ffi.c:309: warning: unused variable ‘rv’
ikarus-ffi.c:293: warning: unused variable ‘rtype_conv’
ikarus-ffi.c:292: warning: unused variable ‘argtypes_conv’
[...]
gcc -g -O2 -DNDEBUG -O3 -Wall -rdynamic -o ikarus ikarus-collect.o ikarus-exec.o ikarus-fasl.o ikarus-flonums.o ikarus-main.o ikarus-numerics.o ikarus-print.o ikarus-runtime.o ikarus-
[...]
[d@eep:
=======
TESTING (= (ho (dlsym self "cadd1") 17) (+ 18 18))
OK
=======
TESTING (= (ho foradd1^ 17) (+ 18 18))
OK
=======
TESTING (= (ho foradd1 17) (+ 18 18))
|(add1 17)
|18
|(add1 17)
|18
OK
=======
Happy Happy Joy Joy
[d@eep:
Related branches
Changed in ikarus: | |
milestone: | none → 0.0.4 |
The build warning is also there when using --enable-libffi, so it's not relevant to --disable-libffi not disabling.