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.
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Logged In: YES
user_id=242951
Originator: NO
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
Logged In: YES
user_id=2197767
Originator: YES
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.
Logged In: YES
user_id=242951
Originator: NO
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.
Logged In: YES
user_id=443499
Originator: NO
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.
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.
used this as a basis to support the older and newer versions. For swig-1.3.39.