[Xapian-discuss] Compiling omega 1.0.6 on Mac OS X 10.5.2 results in an error.

Bill Hutten bill at hutten.org
Wed Apr 16 02:00:29 BST 2008


On Apr 15, 2008, at 7:34 AM, Olly Betts wrote:
> Looking at the man page I found online, it seems that sys/types.h
> probably needs to be included first, or else sys/vmmeter.h is rejected
> as not working by the configure check.
>
> I'll try to fix that, but as a workaround, try:
>
> make CPPFLAGS=-DHAVE_SYS_VMMETER_H


Unfortunately, no change:

Elysium:xapian-omega-1.0.6 bhutten$ make CPPFLAGS=-DHAVE_SYS_VMMETER_H
make  all-recursive
Making all in .
g++ -DHAVE_CONFIG_H -I. -I./common -DCONFIGFILE_SYSTEM=\"/usr/local/ 
etc/omega.conf\" -DHAVE_SYS_VMMETER_H -Wall -W -Wredundant-decls - 
Wpointer-arith -Wcast-qual -Wcast-align -Wno-multichar -Wno-long-long - 
fno-gnu-keywords -Wundef -Wshadow -g -O2 -I/Users/bhutten/Projects/ 
Clients/Lighthouse/New_Search_Engine/xapian-core-1.0.6/include -MT  
freemem.o -MD -MP -MF .deps/freemem.Tpo -c -o freemem.o freemem.cc
freemem.cc:90: error: expected unqualified-id before 'if'
freemem.cc:97: error: expected unqualified-id before 'return'
freemem.cc:98: error: expected declaration before '}' token
freemem.cc: In function 'long int get_free_physical_memory()':
freemem.cc:88: warning: control reaches end of non-void function
make[2]: *** [freemem.o] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2


- bill
---
bill at hutten.org







More information about the Xapian-discuss mailing list