Re: Problem compiling sablevm-1.1.9 on Debian

Sebastien <[email protected]>
Newsgroups gmane.comp.java.vm.sablevm.general
Message-ID <[email protected]>
Etienne Gagnon wrote:

> Sebastien wrote:
>
>> And then tried: ./configure which stopped on the same error:
>>
>> $ ./configure
>> [...]
>> checking for ffi_prep_cif in -lffi... no
>> ***ERROR: libffi is missing
>
>
> Hi Sebastien,
>
> You should try compiling the following program:
>
> #include <ffi.h>
> int main()
> {
>   ffi_cif cif;
>   ffi_type *args[1];
>   ffi_prep_cif(&cif, FFI_DEFAULT_ABI, 1, &ffi_type_uint, args);
>   return 0;
> }
>
> as follows:
>
> $ gcc -o test -lffi test.c
>
> Do you get any error?  If yes, can you tell us about it?

It compiled with no errors. So this confirms that the library is installed.

>
> Also, if the problem persists, could you tell us about the output of 
> the following commands:
>
> $ export -p
> $ gcc -version
> $ cat /etc/apt/sources.list
> $ uname -a
>
The problem persists, here is the asked output:

$ export -p
declare -x COLORTERM="gnome-terminal"
declare -x DESKTOP_SESSION="default"
declare -x DESKTOP_STARTUP_ID=""
declare -x DISPLAY=":0.0"
declare -x GDMSESSION="default"
declare -x GDM_XSERVER_LOCATION="local"
declare -x GNOME_DESKTOP_SESSION_ID="Default"
declare -x GNOME_KEYRING_SOCKET="/tmp/keyring-LBtgSd/socket"
declare -x GTK_RC_FILES="/etc/gtk/gtkrc:/home/seb/.gtkrc-1.2-gnome2"
declare -x HOME="/home/seb"
declare -x LANG="en_CA"
declare -x LOGNAME="seb"
declare -x 
LS_COLORS="no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.bz2=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.avi=01;35:*.fli=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.ogg=01;35:*.mp3=01;35:*.wav=01;35:"
declare -x LS_OPTIONS="--color=auto -h"
declare -x OLDPWD="/home/seb"
declare -x PATH="/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games"
declare -x PS1="\\h% "
declare -x PWD="/home/univers/UQAM/sablevm"
declare -x SESSION_MANAGER="local/Passion:/tmp/.ICE-unix/721"
declare -x SHELL="/bin/bash"
declare -x SHLVL="1"
declare -x SSH_AGENT_PID="764"
declare -x SSH_AUTH_SOCK="/tmp/ssh-MhNastY721/agent.721"
declare -x TERM="xterm"
declare -x USER="seb"
declare -x USERNAME="seb"
declare -x WINDOWID="33554497"
declare -x XAUTHORITY="/home/seb/.Xauthority"

$ gcc --version
gcc (GCC) 3.3.5 (Debian 1:3.3.5-6)
Copyright (C) 2003 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

$ cat /etc/apt/sources.list
deb http://ftp.debian.org/debian/ unstable main
deb-src http://ftp.debian.org/debian/ unstable main
deb http://non-us.debian.org/debian-non-US unstable/non-US main
deb-src http://non-us.debian.org/debian-non-US unstable/non-US main

deb http://ftp.us.debian.org/debian/ unstable main
deb-src http://ftp.us.debian.org/debian/ unstable main

deb http://mirrors.kernel.org/debian/ unstable main
deb-src http://mirrors.kernel.org/debian/ unstable main

deb http://ftp.debian.org/debian/ unstable contrib
deb http://non-us.debian.org/debian-non-US unstable/non-US contrib

deb http://ftp.debian.org/debian/ unstable non-free
deb http://non-us.debian.org/debian-non-US unstable/non-US non-free

deb http://security.debian.org/ stable/updates main

$ uname -a
Linux Passion 2.6.10-20050119 #1 Wed Jan 19 22:45:01 EST 2005 i686 GNU/Linux
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.