Summary

Readline egg will not build without libtermcap

Metadata

Attachments

Description

Running `chicken-install readline` fails with the following error message:

----------8<----------

installing readline: ... changing current directory to /tmp/chicken-install-216.tmp/readline

 /usr/local/stow/chicken-4.5.0/bin/csi -bnq -setup-mode -e "(require-library setup-api)" -e "(import setup-api)" -e "(extension-name-and-version '(\"readline\" \"\"))" /tmp/chicken-install-216.tmp/readline/readline.setup
 /usr/local/stow/chicken-4.5.0/bin/csc -feature compiling-extension -setup-mode    -s -o rlu-test rl-usable-test.scm -lreadline -lhistory -ltermcap

/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.4/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -ltermcap collect2: ld returned 1 exit status

Error: shell command terminated with non-zero exit status 256: gcc rlu-test.o -o rlu-test -shared -lreadline -lhistory -ltermcap -L"/usr/local/stow/chicken-4.5.0/lib" -Wl,-R"/usr/local/stow/chicken-4.5.0/lib" -lchicken -lm -ldl

shell command failed with nonzero exit status 256:

 /usr/local/stow/chicken-4.5.0/bin/csc -feature compiling-extension -setup-mode    -s -o rlu-test rl-usable-test.scm -lreadline -lhistory -ltermcap

--------->8----------

It appears that the problem is with the check-rllibs syntax in readline.setup. Instead of trying the next combination of -l flags, it completely bails out.

Changes and comments

[2010-05-25 08:08:43 UTC] felix changed status from new to assigned

[2010-05-25 08:08:43 UTC] felix set owner to felix

[2010-05-25 14:16:07 UTC] felix set keywords to readline

[2010-05-25 14:16:07 UTC] felix changed status from assigned to closed

[2010-05-25 14:16:07 UTC] felix set resolution to fixed

[2010-05-25 14:16:07 UTC] felix wrote:

Thanks for reporting this. The setup script was indeed incorrect and has been fixed (hopefully) in r18216. A new version has been tagged and should be available now. Should there still be problems, please reopen the ticket.

[2010-05-25 18:09:30 UTC] ewfalor attached readline.setup.patch (description=#f)

[2010-05-25 18:10:40 UTC] ewfalor wrote:

There is still a problem with the setup script. rl-extralib is now a string value, not a list. The rest of the setup script needs to be modified to treat it as a string. The attached patch does so.

[2010-05-25 18:10:40 UTC] ewfalor changed status from closed to reopened

[2010-05-25 18:10:40 UTC] ewfalor removed resolution fixed

[2010-05-26 14:08:26 UTC] felix changed status from reopened to closed

[2010-05-26 14:08:26 UTC] felix set resolution to fixed

[2010-05-26 14:08:26 UTC] felix wrote:

Argh.

See r18220. Sorry for the dumb mistake.

[2011-04-04 08:31:00 UTC] felix removed milestone 4.6.0

[2011-04-04 08:31:00 UTC] felix wrote:

Milestone 4.6.0 deleted