<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>235596</bug_id>
          
          <creation_ts>2008-08-24 08:32 0000</creation_ts>
          <short_desc>dev-lang/swig fails to build with recent PLT Scheme versions</short_desc>
          <delta_ts>2008-08-29 15:52:17 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Applications</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>dima@sphinx.net.ru</reporter>
          <assigned_to>bug-wranglers@gentoo.org</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who>dima@sphinx.net.ru</who>
            <bug_when>2008-08-24 08:32:49 0000</bug_when>
            <thetext>SWIG&apos;s `configure.in` uses `mzscheme(1)` to get a list of standard MzScheme link libraries, relying on `--mute-banner` command line option, which was removed in PLT 4. As the result, MZDYNOBJ is assigned to error message text.

Reproducible: Always

Steps to Reproduce:
1. Install dev-scheme/drscheme
2. Try to emerge dev-lang/swig with USE=&quot;mzscheme&quot;




EMERGE FAILURE MESSAGE:

config.status: creating Lib/ocaml/swigp4.ml
config.status: creating preinst-swig
config.status: creating Source/Include/swigconfig.h
config.status: executing depfiles commands
make[1]: Entering directory `/var/tmp/portage/dev-lang/swig-1.3.36/work/swig-1.3.36/Source&apos;
Makefile:190: *** missing separator.  Stop.
make[1]: Leaving directory `/var/tmp/portage/dev-lang/swig-1.3.36/work/swig-1.3.36/Source&apos;
make: *** [source] Error 2
 * 
 * ERROR: dev-lang/swig-1.3.36 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 2331:  Called die
 * The specific snippet of code:
 *       emake || die
 *  The die message:
 *   (no error message

-----------8&lt;--------------8&lt;-----------------
Source/Makefile:190 :

MZDYNOBJ = /usr/bin/mzscheme: bad switch: --mute-banner
Use the --help or -h flag for help.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>dima@sphinx.net.ru</who>
            <bug_when>2008-08-24 08:50:07 0000</bug_when>
            <thetext>Created an attachment (id=163693)
A patch to configure.in to make SWIG compile with MzScheme

Removed `--mute-banner` call, using new require syntax, removed unknown `current-make-standard-libraries` function.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>dima@sphinx.net.ru</who>
            <bug_when>2008-08-24 08:52:27 0000</bug_when>
            <thetext>Looks like not just the build fails, but the whole MzScheme support in SWIG is broken — `make check` fails with the following error in MzScheme examples:

~/swig-1.3.36-nu/Examples/mzscheme/multimap $ LC_ALL=&quot;C&quot; make
/usr/bin/make -f ../../Makefile SRCS=&apos;example.c&apos; SWIG=&apos;../../../preinst-swig&apos; \
	SWIGOPT=&apos;&apos; TARGET=&apos;example&apos; INTERFACE=&apos;example.i&apos; mzscheme
make[1]: Entering directory `/home/sphinx/swig-1.3.36-nu/Examples/mzscheme/multimap&apos;
../../../preinst-swig -mzscheme  example.i
test -n &quot;/usr/bin/mzc&quot; &amp;&amp; /usr/bin/mzc `echo  | sed &apos;s/-I/++ccf -I/g&apos;` --cc example_wrap.c example.c
mzc v4.1 [3m], Copyright (c) 2004-2008 PLT Scheme Inc.
&quot;example_wrap.c&quot;:
compile-extension: 
example_wrap.c:1388:45: error: macro &quot;scheme_make_sized_string&quot; passed 3 arguments, but takes just 2
example_wrap.c: In function &apos;_wrap_capitalize&apos;:
example_wrap.c:1388: error: &apos;scheme_make_sized_string&apos; undeclared (first use in this function)
example_wrap.c:1388: error: (Each undeclared identifier is reported only once
example_wrap.c:1388: error: for each function it appears in.)
make[1]: *** [mzscheme] Error 1
make[1]: Leaving directory `/home/sphinx/swig-1.3.36-nu/Examples/mzscheme/multimap&apos;
make: *** [all] Error 2</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>hkbst@gentoo.org</who>
            <bug_when>2008-08-24 14:51:52 0000</bug_when>
            <thetext>Thanks Dmitry for the patch. Should be fixed now for 1.3.36.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>dima@sphinx.net.ru</who>
            <bug_when>2008-08-29 15:52:17 0000</bug_when>
            <thetext>Reported upstream: http://sourceforge.net/tracker/index.php?func=detail&amp;aid=2081967&amp;group_id=1645&amp;atid=301645</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>163693</attachid>
            <date>2008-08-24 08:50 0000</date>
            <desc>A patch to configure.in to make SWIG compile with MzScheme</desc>
            <filename>swig-fix-mzscheme-build.patch</filename>
            <type>text/plain</type>
            <data encoding="base64">LS0tIC9ob21lL3NwaGlueC9zd2lnLTEuMy4zNi9jb25maWd1cmUuaW4JMjAwOC0wNi0yNCAwMDoy
NjowNy4wMDAwMDAwMDAgKzA0MDAKKysrIC9ob21lL3NwaGlueC9zd2lnLTEuMy4zNi1udS9jb25m
aWd1cmUuaW4JMjAwOC0wOC0yNCAxMjo0NTowNS4wMDAwMDAwMDAgKzA0MDAKQEAgLTEwODIsNyAr
MTA4Miw3IEBACiAKIGlmIHRlc3QgLW4gIiRNWlNDSEVNRSI7IHRoZW4KIEFDX01TR19DSEVDS0lO
Ryhmb3IgTXpTY2hlbWUgZHluZXh0IG9iamVjdCkgCi1NWkRZTk9CSj1gJE1aU0NIRU1FIC0tbXV0
ZS1iYW5uZXIgLS12ZXJzaW9uIC0tZXZhbCAnKGJlZ2luIChyZXF1aXJlIChsaWIgImxpbmsuc3Mi
ICJkeW5leHQiKSkgKHdpdGgtaGFuZGxlcnMgKCgobGFtYmRhIGFyZ3MgI3Qp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