|
From: | Yasuro |
Subject: | [Chicken-users] Sendfile Does Not Compile on Windows (Cygwin) with Chicken 4.0 |
Date: | Sat, 24 Oct 2009 20:46:21 -0700 |
User-agent: | Thunderbird 2.0.0.23 (Windows/20090812) |
Hello. I am quite new at this; I have just started tinkering with Chicken 4.0. I apologize in advance if I said something trivially obvious to knowledgeable people. I am trying to make the Spiffy egg work on Windows (Cygwin). Spiffy uses Sendfile, but I have trouble installing the Sendfile egg (The complete log at the end of this email). Here's the error message from chicken-install: sendfile.o:sendfile.c:(.text+0x55d7): undefined reference to `_madvise'Last time I tried with Chicken 3.4, I had the same problem. I could not fix this problem and had to give it up. Would you help me fix this issue, please? On a related note, I had a little trouble installing the Openssl egg. I compiled and installed the Openssl library from the source, but I am not sure if it was necessary. Then I set the CSC_OPTIONS env variable the following way, because csc did not see seem to be able to find the header files and the library file. That fixed the problem. CSC_OPTIONS "-I/usr/local/ssl/include -L/usr/local/ssl/lib"Thanks! Yasuro ----------------------------------------------------------------------------------- <~> chicken-install sendfile retrieving ... connecting to host "chicken.kitten-technologies.co.uk", port 80 ... requesting "/henrietta.cgi?name=sendfile" ... reading response ... HTTP/1.1 200 OK Date: Sun, 25 Oct 2009 03:22:27 GMT Server: Apache Connection: close Transfer-Encoding: chunked Content-Type: text/plain reading chunks ... reading files ... ./sendfile.setup ./sendfile.scm ./sendfile.html ./os-dep.h ./sendfile-implementation.c ./sendfile.doc.scm ./sendfile.meta sendfile located at /cygdrive/h/yasuro/HOME-W~1/LOCALS~1/Temp/chicken-install-29.tmp/sendfile checking dependencies for `sendfile' ... install order: ("sendfile") installing sendfile: ... changing current directory to /cygdrive/h/yasuro/HOME-W~1/LOCALS~1/Temp/chicken-install-29.tmp/sendfile /usr/local/bin/csi -bnq -setup-mode -e "(require-library setup-api)" -e "(import setup-api)" -e "(extension-name-and-version '(\"sendfile\" \"\"))" /cygdrive/h/yasuro/HOME-W\~1/LOCALS\~1/Temp/chicken-install-29.tmp/sendfile/sendfile.setup /usr/local/bin/csc -feature compiling-extension -setup-mode -s -d0 -O2 -j sendfile sendfile.scm sendfile-implementation.c Warning: local assignment to unused variable `sendfile#*last-selected-implementation*' may be unintended sendfile.c:1: warning: -fPIC ignored for target (all code is position independent) sendfile-implementation.c:1: warning: -fPIC ignored for target (all code is position independent) sendfile.o:sendfile.c:(.text+0x55d7): undefined reference to `_madvise' collect2: ld returned 1 exit status Error: shell command terminated with non-zero exit status 256: gcc sendfile.o sendfile-implementation.o -o sendfile.so -shared -L/usr/local/ssl/lib -L/usr/local/bin -Wl,-R/usr/local/bin -lchicken -lm /usr/local/bin/csc -feature compiling-extension -setup-mode -s -d0 -O2 sendfile.import.scm sendfile.import.c:1: warning: -fPIC ignored for target (all code is position independent) /usr/local/bin/csc -feature compiling-extension -setup-mode -c -d0 -O2 sendfile.scm sendfile-implementation.c -unit sendfile -o sendfile-static.o Warning: local assignment to unused variable `sendfile#*last-selected-implementation*' may be unintended Error: file does not exist: "sendfile.so" Error: shell command terminated with nonzero exit code 17920 "/usr/local/bin/csi -bnq -setup-mode -e \"(require-library setup-api)\" -e \"(im... |
[Prev in Thread] | Current Thread | [Next in Thread] |