From: Nigel P. <ni...@in...> - 2002-10-29 05:02:34
|
Strange autoconf error. config.log shows: ... configure:6645: checking for mach_task_self configure:6682: gcc -o conftest -g -O2 conftest.c >&5 configure:6685: $? = 0 configure:6688: test -s conftest configure:6691: $? = 0 configure:6701: result: yes ... configure:6839: checking whether vm_protect works configure:6868: g++ -o conftest -g -O2 conftest.cc >&5 In file included from configure:6863: ../Unix/vm_alloc.cpp: In function `void* vm_acquire(long unsigned int)': ../Unix/vm_alloc.cpp:95: `mach_task_self' undeclared (first use this function) ../Unix/vm_alloc.cpp:95: (Each undeclared identifier is reported only once for each function it appears in.) ../Unix/vm_alloc.cpp:95: `vm_allocate' undeclared (first use this function) ../Unix/vm_alloc.cpp: In function `int vm_release(void*, long unsigned int)': ../Unix/vm_alloc.cpp:165: `vm_deallocate' undeclared (first use this function) configure:6871: $? = 1 configure: program exited with status 1 configure: failed program was: #line 6859 "configure" #include "confdefs.h" #define CONFIGURE_TEST_VM_MAP #define TEST_VM_PROT_NONE_READ #include "../Unix/vm_alloc.cpp" Now, the mach_task_self() prototype is in a strange file (/usr/include/mach/mach_init.h), so I can understand the barf, but why did the first test succeed? -- | Nigel Pearson, ni...@in... | "Reality is that which, | | Telstra BI&D, Sydney, Australia | when you stop believing | | Office: 8255 4222 Fax: 8255 3153 | in it, doesn't go away." | | Mobile: 0408 664435 Home: 9792 6998 | Philip K. Dick - 'Valis' | |