Opened 11 years ago

Closed 10 years ago

#528 closed defect (fixed)

sendfile on Windows mingw-msys

Reported by: Mario Domenech Goulart Owned by: certainty
Priority: major Milestone:
Component: extensions Version: 4.6.x
Keywords: sendfile Cc:
Estimated difficulty:

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)\" -
...

Change History (6)

comment:1 Changed 11 years ago by Mario Domenech Goulart

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)\" -
...

comment:2 Changed 10 years ago by felix winkelmann

Milestone: 4.7.0

comment:3 Changed 10 years ago by felix winkelmann

I committed a change to trunk (the parameter-name was incorrect). Please try again, if possible.

comment:4 in reply to:  3 ; Changed 10 years ago by Mario Domenech Goulart

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.

comment:5 in reply to:  4 Changed 10 years ago by certainty

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.

comment:6 Changed 10 years ago by certainty

Resolution: fixed
Status: newclosed

This should be fixed by now.

Note: See TracTickets for help on using tickets.