On Wed, Jan 06, 2016 at 09:08:27PM +0100, Bram Moolenaar wrote:
> 
> Yukihiro Nakadaira wrote:
> 
> > if_mzscheme does not work.  I wrote patch for it.  Please check the attached
> > patch.
> > 
> > Linux & Windows:
> >   Fix startup_mzscheme() to initialize collects and config path properly.
> > 
> > Linux:
> >   Fix configure script for build error.
> > 
> > Windows:
> >   Fix make_mvc.mak for build error.
> >   Use scheme_register_tls_space() for 64bit Windows (racket provides it for
> > 64bit from version 6.3).
> >   Enable DYNAMIC_MZSCHEME with precise GC version of racket which is the
> > binary
> > distributed by racket-lang.org.
> > 
> > I tested racket-6.3 64bit, racket-6.3 32bit, racket-5.1.2 64bit and racket
> > 5.0 32bit in Windows10 64bit. And racket-6.3, racket-5.3.6 in Ubuntu 15.04
> > 64bit.
> 
> Unfortunately it still doesn't work for me, Ubuntu 15.10 with racket
> 6.2-2.  It didn't work before, thus this change doesn't break it, but it
> also doesn't make it work.
> 
> Configure output:
> 
> || checking --enable-mzschemeinterp argument... yes
> || checking --with-plthome argument... "no"
> || checking PLTHOME environment var... not set
> || checking for mzscheme... /usr/bin/mzscheme
> || checking MzScheme install prefix... /usr
> || checking for racket include directory... /usr/include/racket
> || checking for racket lib directory... /usr/lib/racket
> || checking if racket requires -pthread... yes
> || checking for racket config directory... /etc/racket
> || checking for racket collects directory... /usr/share/racket/
> || checking for mzscheme_base.c... needed
> || checking for ffi_type_void in -lffi... yes
> || checking if compile and link flags for MzScheme are sane... no: MZSCHEME 
> DISABLED
> 
> Log:
> 
> configure:5534: checking if compile and link flags for MzScheme are sane
> configure:5551: gcc -o conftest -g -Wall -Wextra -Wmissing-prototypes 
> -Wunreachable-code -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1  -pthread 
> -DMZSCHEME_CONFIGDIR='"/etc/racket"' -DINCLUDE_MZSCHEME_BASE 
> -I/usr/include/racket       
> -DMZSCHEME_COLLECTS='"/usr/share/racket/collects"'  -L. 
> -Wl,-Bsymbolic-functions -Wl,-z,relro 
> -L/build/ruby2.1-_3OTYb/ruby2.1-2.1.5/debian/lib -fstack-protector -rdynamic 
> -Wl,-export-dynamic -Wl,-E   -L/usr/local/lib -Wl,--as-needed conftest.c  
> -L/usr/lib/racket -lmzscheme -lmzgc -Wl,-rpath -Wl,/usr/lib/racket -pthread 
> -lffi >&5
> /usr/bin/ld: cannot find -lmzscheme
> /usr/bin/ld: cannot find -lmzgc
> collect2: error: ld returned 1 exit status

This should be looking for -lracket3m, not -lmzscheme & -lmzgc, as
described here: 
http://docs.racket-lang.org/inside/embedding.html#(part._3m_.Embedding)

That being said, the Debian (and therefore Ubuntu) packaging only
provides a static library.  That may be what's tripping up the
detection.

Cheers,
-- 
James
GPG Key: 4096R/331BA3DB 2011-12-05 James McCoy <james...@jamessan.com>

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui