Ticket #757 (reopened defect)
conftest.cc:3: error: 'mincore' was not declared in this scope
| Reported by: | Peter O | Owned by: | rakshasa |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | libtorrent | Version: | |
| Severity: | normal | Keywords: | |
| Cc: |
Description
On Solaris 10 (or Nexenta Alpha 6) when I attempt to compile libtorrent-0.10.4 I get the following error:
checking signedness of mincore parameter... configure: error: failed, do *not* attempt to use --disable-mincore unless you are running Win32.
config.log says:
configure:22953: checking signedness of mincore parameter
configure:22963: g++ -c -g -O2 -g -DDEBUG -I/usr/include/sigc++-2.0 -I/usr/lib/sigc++-2.0/include conftest.cc >&5
conftest.cc: In function 'void f()':
conftest.cc:3: error: 'mincore' was not declared in this scope
configure:22969: $? = 1
configure: failed program was:
| #include <sys/types.h>
| #include <sys/mman.h>
| void f() { mincore((char*)0, 0, (unsigned char*)0); }
|
configure:23010: g++ -c -g -O2 -g -DDEBUG -I/usr/include/sigc++-2.0 -I/usr/lib/sigc++-2.0/include conftest.cc >&5
conftest.cc: In function 'void f()':
conftest.cc:3: error: 'mincore' was not declared in this scope
configure:23016: $? = 1
configure: failed program was:
| #include <sys/types.h>
| #include <sys/mman.h>
| void f() { mincore((char*)0, 0, (char*)0); }
|
configure:23050: error: failed, do *not* attempt to use --disable-mincore unless you are running Win32.
