Summary

bind egg: unable to parse command-line parameters

Metadata

Attachments

Description

After installing chicken-bind, and supplying certain command-line options, {chicken-bind fails during command-line parsing:

 $ chicken-bind -export-constants
 
 Error: bad argument count - received 2 but expected 1: #<procedure>

This small patch should fix the problem:

 diff --git a/bind-translator.scm b/bind-translator.scm
 index 31cf9d2..6796063 100644
 --- a/bind-translator.scm
 +++ b/bind-translator.scm
 @@ -1382,7 +1382,7 @@ EOF
              (loop (cdr pstack) ppstack) ] 
             [else (loop pstack ppstack)] ) ) ) ) ) )
  
 -(define (set-bind-options opts)
 +(define (set-bind-options . opts)
    (let loop ((opts opts))
      (match opts
        (() #f)

Changes and comments

[2012-02-20 09:20:35 UTC] felix changed status from new to closed

[2012-02-20 09:20:35 UTC] felix set resolution to fixed

[2012-02-20 09:20:35 UTC] felix wrote:

Thanks for reporting this - the patch has been applied and a new version (0.99) been tagged.

[2012-02-24 14:05:58 UTC] ckeen changed status from closed to reopened

[2012-02-24 14:05:58 UTC] ckeen removed resolution fixed

[2012-02-24 14:05:58 UTC] ckeen wrote:

This is only part of the fix, as the bind tests fail when you use the set-bind-options in the macro bind-options, see http://tests.call-cc.org/master/linux/x86/2012/02/21/salmonella-report/test/bind.html.

Attached is a patch that fixes *that* issue as well.

[2012-02-24 14:06:29 UTC] ckeen attached bind-fix-for-fix.diff (description=diff against trunk to really fix the issue (hopefully))

[2012-02-24 14:08:00 UTC] ckeen changed status from reopened to assigned

[2012-02-24 14:08:00 UTC] ckeen set owner to felix

[2012-02-27 22:21:37 UTC] felix changed status from assigned to closed

[2012-02-27 22:21:37 UTC] felix set resolution to fixed

[2012-02-27 22:21:37 UTC] felix wrote:

Thanks, sett bind 0.991

[2012-09-24 21:47:48 UTC] felix changed milestone from 4.8.0 to 4.9.0

[2012-09-24 21:47:48 UTC] felix wrote:

Milestone 4.8.0 deleted