Summary
sendfile on Windows mingw-msys
Metadata
- Id: 33fb79fb75d9e78d293bae11f252c5bf1dac88b5
- Trac id: 528
- Type: defect
- Reporter: mario
- Owner: certainty
- Cc:
- Status: closed
- Component: extensions
- Estimated difficulty:
- Resolution: fixed
- Priority: major
- Milestone:
- Version: 4.6.x
- Changetime: 2011-07-12 19:46:42 UTC
- Created: 2011-03-14 15:04:44 UTC
- Keywords: sendfile
Description
Installing sendfile on Windows mingw-msys fails:
C:\Documents and Settings\a\Desktop\chicken-4.6.3>\chicken\bin\chicken-install.exe sendfile
retrieving ...
resolving alias `kitten-technologies' to: http://chicken.kitten-technologies.co.uk/henrietta.cgi
connecting to host "chicken.kitten-technologies.co.uk", port 80 ...
requesting "/henrietta.cgi?name=sendfile&mode=default" ...
reading response ...
HTTP/1.1 200 OK
Date: Mon, 14 Mar 2011 14:00:48 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 C:\DOCUME~1\a\CONFIG~1\Temp/tempf6e4/sendfile
checking platform for `sendfile' ...
checking dependencies for `sendfile' ...
install order:
("sendfile")
installing sendfile: ...
changing current directory to C:\DOCUME~1\a\CONFIG~1\Temp/tempf6e4/sendfile
"c:\chicken\bin\csi" -bnq -setup-mode -e "(require-library setup-api)" -e "(import setup-api)" -e "(setup-error-handling)" -e "(extension-name-and-version '(\"sendfile\" \"\"))" "C:\DOCUME~1\a\CONFIG~1\Temp\tempf6e4\sendfile\sendfile.setup" ""c:\chicken\bin\csc"" -feature compiling-extension -setup-mode -s -d0 -O2 -j sendfile sendfile.scm sendfile-implementation.c sendfile.c: In function 'f_598':
sendfile.c:2196:4: error: 'MADV_WILLNEED' undeclared (first use in this function)
sendfile.c:2196:4: note: each undeclared identifier is reported only once for each function it appears in
Error: shell command terminated with non-zero exit status 1: ""gcc" "sendfile.c" -o "sendfile.o" -c -fno-strict-aliasing -fwrapv -DHAVE_CHICKEN_CONFIG_H -DC_ENABLE_PTABLES -Os -DPIC -DC_SHARED -I"c:/chicken/include""
Error: shell command failed with nonzero exit status 1:
""c:\chicken\bin\csc"" -feature compiling-extension -setup-mode -s -d0 -O2 -j sendfile sendfile.scm sendfile-implementation.c
Error: shell command terminated with nonzero exit code
70
"\"c:\\chicken\\bin\\csi\" -bnq -setup-mode -e \"(require-library setup-api)\" -
...
Changes and comments
[2011-03-14 15:18:16 UTC] mario wrote:
The error showed in the previous comment was from the version available via chicken-install. I've tried the trunk code and got the following error:
C:\Documents and Settings\a\Desktop\trunk>chicken-install
retrieving ...
checking platform for `sendfile' ...
checking dependencies for `sendfile' ...
install order:
("sendfile")
installing sendfile: ...
changing current directory to .
"c:\chicken\bin\csi" -bnq -setup-mode -e "(require-library setup-api)" -e "(im
port setup-api)" -e "(setup-error-handling)" -e "(extension-name-and-version '(\
"sendfile\" \"\"))" "sendfile.setup"
Arquivo excluído - C:\DOCUME~1\a\CONFIG~1\Temp\temp42.c
Arquivo excluído - C:\DOCUME~1\a\CONFIG~1\Temp\tempb602.c
Arquivo excluído - C:\DOCUME~1\a\CONFIG~1\Temp\tempb378.c
""c:\chicken\bin\csc"" -feature compiling-extension -setup-mode -s -O2 -d0 sendfile.scm -j sendfile
Warning: reference to possibly unbound identifier `write-timeout' in:
Warning: impl:read-write-loop/fd
Error: module unresolved: sendfile
Error: shell command terminated with non-zero exit status 1: ""c:\chicken\bin\chicken.exe" "sendfile.scm" -output-file "sendfile.c" -dynamic -feature chicken-compile-shared -feature compiling-extension -setup-mode -optimize-level 2 -debug-level 0 -emit-import-library sendfile"
Error: shell command failed with nonzero exit status 1:
""c:\chicken\bin\csc"" -feature compiling-extension -setup-mode -s -O2 -d0 sendfile.scm -j sendfile
Error: shell command terminated with nonzero exit code
70
"\"c:\\chicken\\bin\\csi\" -bnq -setup-mode -e \"(require-library setup-api)\" -
...
[2011-03-28 09:43:22 UTC] felix removed milestone 4.7.0
[2011-05-02 14:44:29 UTC] felix wrote:
I committed a change to trunk (the parameter-name was incorrect). Please try again, if possible.
[2011-05-06 14:23:38 UTC] mario wrote:
Replying to felix: > I committed a change to trunk (the parameter-name was incorrect). Please try again, if possible.
Hi Felix.
I can't find the changes on svn. Are you sure the changes have actually been checked in? It is quite possible I'm missing something, though.
[2011-05-14 20:07:40 UTC] certainty wrote:
Replying to mario: > Replying to felix: > > I committed a change to trunk (the parameter-name was incorrect). Please try again, if possible. > > Hi Felix. > > I can't find the changes on svn. Are you sure the changes have actually been checked in? It is quite possible I'm missing something, though.
Hi Mario, i have updated tip on bitbucket (https://bitbucket.org/certainty/sendfile) please clone it and try again.
[2011-07-12 19:46:42 UTC] certainty changed status from new to closed
[2011-07-12 19:46:42 UTC] certainty set resolution to fixed
[2011-07-12 19:46:42 UTC] certainty wrote:
This should be fixed by now.