gcl-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gcl-devel] running program compiled by GCL via Wine


From: Camm Maguire
Subject: Re: [Gcl-devel] running program compiled by GCL via Wine
Date: Fri, 18 Oct 2013 15:08:30 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux)

Greetings!

Your problem still lies in your system recognizing and launching the
executables, as you mentioned earlier:

configure:9549: /usr/bin/i586-mingw32msvc-gcc -std=gnu99 conftest.c -o conftest
conftest.c: In function 'main':
conftest.c:4: warning: implicit declaration of function 'exit'
conftest.c:4: warning: incompatible implicit declaration of built-in function 
'exit'
configure:9552: $? = 0
run-detectors: unable to find an interpreter for ./conftest
configure:9562: error: Cannot determine executable suffix

Mine reads

configure:9549: /usr/bin/i586-mingw32msvc-gcc -std=gnu99 conftest.c -o conftest
conftest.c: In function 'main':
conftest.c:4: warning: implicit declaration of function 'exit'
conftest.c:4: warning: incompatible implicit declaration of built-in function 
'exit'
configure:9552: $? = 0
configure:9566: result: 

This is straight gmp code which gcl does not maintain.  For some reason
they write the suffix determination test as

for i in .exe ,ff8 ""; do
  gmp_compile="$CC_FOR_BUILD conftest.c -o conftest$i"
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
  (eval $gmp_compile) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
    if (./conftest) 2>&5; then
      gmp_cv_prog_exeext_for_build=$i
      break
    fi
  fi
done
rm -f conftest*
if test "${gmp_cv_prog_exeext_for_build+set}" != set; then
  as_fn_error "Cannot determine executable suffix" "$LINENO" 5
fi


So if you do some special configuration to your system which only
launches wine if the executable ends in .exe, this will likely fail.
Rather the kernel should launch wine by reading the first few bytes of
the file, regardless of name.

Here's what I do, from README.wine:
=============================================================================
If necessary, as root

update-binfmts --enable wine
=============================================================================

I have to do this every time I reboot, but these days, that's hardly
ever.

Please let me know if problems persist.

Take care,
-- 
Camm Maguire                                        address@hidden
==========================================================================
"The earth is but one country, and mankind its citizens."  --  Baha'u'llah



reply via email to

[Prev in Thread] Current Thread [Next in Thread]