chicken-users
[Top][All Lists]
Advanced

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

Re: [Chicken-users] Sendfile error on Red Hat 5.5 64 Bit


From: David Krentzlin
Subject: Re: [Chicken-users] Sendfile error on Red Hat 5.5 64 Bit
Date: Thu, 01 Dec 2011 18:00:55 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:7.0.1) Gecko/20110929 Thunderbird/7.0.1

Hello Vok,

somehow the feature-selection code in sendfile.setup finds that your system supports posix advices. I need some time to figure out why that happens. I'm not sure why this would work on the 32bit platform and fail on the 64bit platform though.

As a quick fix you can adjust the sendfile.setup to include the features that are present.

Something like:
(compile -s -O2 -d0 -D sendfile -D mmap -D madvise sendfile.scm -j sendfile)

instead of:
(compile -s -O2 -d0 ,@features sendfile.scm -j sendfile)


Thanks for reporting it.

Cheers David


On 30.11.2011 17:31, Vok Vojwo wrote:
I was able to compile sendfile on Red Hat 5.5 32 Bit but it fails on
64 Bit with the following error:

# chicken-install -t local -l . sendfile
retrieving ...
  deleting stale file `sendfile.import.so' from local build directory
  deleting stale file `sendfile.so' from local build directory
  sendfile located at /tmp/./sendfile
checking platform for `sendfile' ...
checking dependencies for `sendfile' ...
install order:
("sendfile")
installing sendfile: ...
changing current directory to /tmp/./sendfile
   /usr/local/bin/csi -bnq -setup-mode -e "(require-library setup-api)"
-e "(import setup-api)" -e "(setup-error-handling)" -e
"(extension-name-and-version '(\"sendfile\" \"\"))"
/tmp/sendfile/sendfile.setup
   /usr/local/bin/csc -feature compiling-extension -setup-mode    -s
-O2 -d0 -D sendfile -D mmap -D posix-fadvise -D madvise sendfile.scm
-j sendfile
sendfile.c: In function `stub205':
sendfile.c:77: error: `POSIX_FADV_SEQUENTIAL' undeclared (first use in
this function)
sendfile.c:77: error: (Each undeclared identifier is reported only once
sendfile.c:77: error: for each function it appears in.)
sendfile.c:77: error: `POSIX_FADV_NOREUSE' undeclared (first use in
this function)

Error: shell command terminated with non-zero exit status 256: gcc
sendfile.c -o sendfile.o -c  -fno-strict-aliasing -fwrapv
-DHAVE_CHICKEN_CONFIG_H -DC_ENABLE_PTABLES -Os -fomit-frame-pointer
-fPIC -DPIC -DC_SHARED -I"/usr/local/include/chicken"

Error: shell command failed with nonzero exit status 256:

   /usr/local/bin/csc -feature compiling-extension -setup-mode    -s
-O2 -d0 -D sendfile -D mmap -D posix-fadvise -D madvise sendfile.scm
-j sendfile


Error: shell command terminated with nonzero exit code
17920
"/usr/local/bin/csi -bnq -setup-mode -e \"(require-library
setup-api)\" -e \"(im...

Any idea what is going wrong there?

_______________________________________________
Chicken-users mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/chicken-users




reply via email to

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