There's a header patch that's waiting for Han-Wen to look at it. I
don't
know if it fixes this, but you could try it.
--- lilypond-org/lily/lily-parser.cc 2005-08-06 22:30:23.000000000
+0900
+++ lilypond/lily/lily-parser.cc 2005-08-06 21:48:29.000000000
+0900
@@ -220,7 +220,13 @@
{
SCM id = parser->lexer_->lookup_identifier("$defaultheader");
if (!ly_is_module (id))
- id = ly_make_anonymous_module (be_safe_global);
-
- return id;
+ {
+ return ly_make_anonymous_module (be_safe_global);
+ }
+ else
+ {
+ SCM nid = ly_make_anonymous_module (false);