chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-users] Chicken Scheme 3 extension dependency problem


From: Peter Bex
Subject: Re: [Chicken-users] Chicken Scheme 3 extension dependency problem
Date: Wed, 23 Feb 2011 09:33:28 +0100
User-agent: Mutt/1.4.2.3i

On Tue, Feb 22, 2011 at 09:39:19PM -0600, Paul Nelson wrote:
> Finally, I run this last script by typing "sudo /etc/init.d/spiffy" and the
> web server starts up on port 8080 as expected, but I get a 500 error when
> attempting to access qwiki from a browser. Spiffy gives the following error:
> 
> [Fri Feb 18 21:29:57 2011] "GET
> http://ec2-50-17-56-189.compute-1.amazonaws.com:8080/ HTTP/1.1" Error:
> (symbolic-link?)
> cannot access file - No such file or directory
> /var/qwiki_data/svn_source/index

Lightbulb!

Here's what happens under Chicken 4.6.0:

#;1> (use posix)
; loading library posix ...
#;2> (symbolic-link? "/foo")
#f


Here's what happens under Chicken 4.4.0:

#;1> (use posix)
; loading library posix ...
#;2> (symbolic-link? "/foo")

Error: (symbolic-link?) cannot access file - No such file or directory: "/foo"

     Call history:

       <syntax>                (symbolic-link? "/foo")
       <eval>          (symbolic-link? "/foo") <--

The attached patch should fix qwiki's check so it also works for older
chickens.  Please give it a try and let me know how it works, so I can
commit it to trunk.

Cheers,
Peter
-- 
http://sjamaan.ath.cx
--
"The process of preparing programs for a digital computer
 is especially attractive, not only because it can be economically
 and scientifically rewarding, but also because it can be an aesthetic
 experience much like composing poetry or music."
                                                        -- Donald Knuth

Attachment: symlink-fix.patch
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]