On 2011-01-18, at 2:43 PM, David Dreisigmeyer wrote:
Hi Marc,
It's still not working. With the attached, doing:
$ make tester && ./gambit_tester > hold && nano hold
gives (in hold):
Beginning Gambit-C setup. Gambit-C setup done. |Gambit-C> (+ 1 2) 3 Releasing temp string. Beginning Gambit-C cleanup.
It should be:
Beginning Gambit-C setup. Gambit-C setup done. |Gambit-C> (+ 1 2) 3 Releasing temp string. Beginning Gambit-C cleanup. Gambit-C cleanup done.
When I try it on my Mac, with a Gambit-C updated to the latest commit, I get the correct output.
I have a hunch that you are linking with the *old* Gambit runtime library. I have attached the makefile that I use. Please try that.
The makefile has this comment at the top:
# Note: it is assumed that Gambit has been compiled in # ../gambc-v4_6_0-devel and that it has been updated to the latest # changes with a "git pull" and "make". # # This has been tested using: # # Gambit-C v4.6.0 updated to commit b67f817399fd6415874dc397432e1364be03b8c1 # Mac OS X 10.6.6 # # Here is the output: # # % make tester # % ./gambit_tester # Beginning Gambit-C setup. # Gambit-C setup done. # |Gambit-C> (+ 1 2) # 3 # Releasing temp string. # Beginning Gambit-C cleanup. # Gambit-C cleanup done. # # If a sleep is added to ___cleanup in lib/setup.c, then the program # sleeps as expected after the message "Beginning Gambit-C cleanup." # is printed.
Marc