Share

SWIG

Tracker: Patches

5 [mzscheme] Make SWIG build with recent PLT versions - ID: 2081967
Last Update: Settings changed ( wsfulton )

Current SWIG version (1.3.36 and SVN) fails to build with any recent PLT
version. I've attached a patch to fix it. Probably more patching needed for
MzScheme module as it seems to be unmaintained.


Dmitry Dzhus ( ddzhus ) - 2008-08-29 07:49

5

Closed

Fixed

William Fulton

None

None

Public


Comments ( 6 )

Date: 2009-02-07 02:00
Sender: wsfultonProject AdminAccepting Donations

used this as a basis to support the older and newer versions. For
swig-1.3.39.


Date: 2008-12-29 12:39
Sender: wsfultonProject AdminAccepting Donations

In order for this patch to be considered, please modify it with some
backwards compatibility in it. This is the approach we use for all the SWIG
modules. We might drop older versions of a target language when they are
really old and the maintenance is too much of a burden. 352 is shipped with
an 18 month old version of Linux, so it'll still be in wide use.


Date: 2008-09-03 10:45
Sender: hakbeest


Your "fairly modern development environment" uses a PLT version that is
two years old. I have tested that Dmitry's patch works for version 372 and
up. To build PLT-352 I would probably have to downgrade my entire
toolchain.

I wonder how you would feel about someone using a two years old version of
swig.


Date: 2008-09-02 21:51
Sender: wsfultonProject AdminAccepting Donations


Adding support for modern versions is great, but the version that comes
with my fairly modern development environment will be broken by the patch.
A patch that works with both is what is really required.


Date: 2008-09-02 04:56
Sender: ddzhus


Indeed, the `dynext/link` module naming scheme was introduced in
_recent_ versions of PLT, which this patch aims to support. 352 is an
outdated one. I believe that compatibility with _modern_ MzScheme
versions is a SWIG goal.


Date: 2008-09-01 21:37
Sender: wsfultonProject AdminAccepting Donations


Unfortunately this patch breaks thinkgs. With the patch I get:

checking for mzscheme... /usr/bin/mzscheme
checking for mzc... /usr/bin/mzc
checking for MzScheme dynext object... require: unknown module:
dynext/link
Welcome to MzScheme version 352, Copyright (c) 2004-2006 PLT Scheme Inc.
>
checking for ruby... ruby

When I normally get:

checking for mzscheme... /usr/bin/mzscheme
checking for mzc... /usr/bin/mzc
checking for MzScheme dynext object... /usr/lib/plt/mzdyn.o
checking for ruby... ruby




Attached File ( 1 )

Filename Description Download
swig-fix-mzscheme-build.patch Download

Changes ( 7 )

Field Old Value Date By
resolution_id None 2009-02-07 02:00 wsfulton
allow_comments 1 2009-02-07 02:00 wsfulton
close_date - 2009-02-07 02:00 wsfulton
status_id Open 2009-02-07 02:00 wsfulton
assigned_to nobody 2009-02-07 02:00 wsfulton
summary [mzscheme] 2008-08-29 07:50 ddzhus
File Added 291247: swig-fix-mzscheme-build.patch 2008-08-29 07:49 ddzhus