[Xapian-discuss] Compiling Omega 1.2.9 on Windows 7 64-Bit

Noel Huebers NoelHuebers at crd.com
Fri Mar 30 04:38:28 BST 2012


> > > Hmm, can you find GlobalMemoryStatusEx in your compiler headers?
> It
> > > is declared in winbase.h in the Debian mingw-w64-dev cross-compiler
> > > package.
> >
> > This is from the winbase.h (in mingw/include):
> >
> > #if (_WIN32_WINNT >= 0x0500)
> > WINBASEAPI BOOL WINAPI GlobalMemoryStatusEx(LPMEMORYSTATUSEX);
> > #endif
> 
> What happens if you define that suitably?
> 
> E.g. add this near the top of the source file which was failing to
> compile:
> 
> #define _WIN32_WINNT 0x0500
> 
> Cheers,
>     Olly

After including the above define, I'm running into the error below.
I'm a missing a general setting here?

Thanks,
	Noel

make  all-recursive
make[1]: Entering directory `/xapian/xapian-omega-1.2.9'
Making all in .
make[2]: Entering directory `/xapian/xapian-omega-1.2.9'
g++ -DHAVE_CONFIG_H -I. -I./common -DCONFIGFILE_SYSTEM=\"/usr/local/etc/omega.co
nf\" -DPKGLIBBINDIR=\"/usr/local/lib/xapian-omega/bin\"  -Wall -W -Wredundant-de
cls -Wpointer-arith -Wcast-qual -Wcast-align -Wno-long-long -Wformat-security -f
no-gnu-keywords -Wundef -Wstrict-null-sentinel -Wshadow -Wstrict-overflow=1 -Win
it-self -Wlogical-op -Wmissing-declarations -fvisibility=hidden -I/xapian/xapian
-core-1.2.9/include -g -O2 -MT freemem.o -MD -MP -MF .deps/freemem.Tpo -c -o fre
emem.o freemem.cc
mv -f .deps/freemem.Tpo .deps/freemem.Po
/bin/sh ./libtool  --tag=CXX   --mode=link g++ -Wall -W -Wredundant-decls -Wpoin
ter-arith -Wcast-qual -Wcast-align -Wno-long-long -Wformat-security -fno-gnu-key
words -Wundef -Wstrict-null-sentinel -Wshadow -Wstrict-overflow=1 -Winit-self -W
logical-op -Wmissing-declarations -fvisibility=hidden -I/xapian/xapian-core-1.2.
9/include -g -O2 -no-undefined   -o omindex.exe omindex.o myhtmlparse.o htmlpars
e.o getopt.o commonhelp.o utils.o hashterm.o loadfile.o md5.o md5wrap.o xmlparse
.o metaxmlparse.o utf8convert.o sample.o diritor.o runfilter.o freemem.o msvc_di
rent.o xpsxmlparse.o str.o pkglibbindir.o svgparse.o urlencode.o mkdtemp.o  -Wl,
--enable-runtime-pseudo-reloc /xapian/xapian-core-1.2.9/libxapian.la
libtool: link: g++ -Wall -W -Wredundant-decls -Wpointer-arith -Wcast-qual -Wcast
-align -Wno-long-long -Wformat-security -fno-gnu-keywords -Wundef -Wstrict-null-
sentinel -Wshadow -Wstrict-overflow=1 -Winit-self -Wlogical-op -Wmissing-declara
tions -fvisibility=hidden -I/xapian/xapian-core-1.2.9/include -g -O2 -o .libs/om
index.exe omindex.o myhtmlparse.o htmlparse.o getopt.o commonhelp.o utils.o hash
term.o loadfile.o md5.o md5wrap.o xmlparse.o metaxmlparse.o utf8convert.o sample
.o diritor.o runfilter.o freemem.o msvc_dirent.o xpsxmlparse.o str.o pkglibbindi
r.o svgparse.o urlencode.o mkdtemp.o -Wl,--enable-runtime-pseudo-reloc  /xapian/
xapian-core-1.2.9/.libs/libxapian.dll.a -lz -lws2_32 -lrpcrt4 -L/home/xapian/lib

g++ -DHAVE_CONFIG_H -I. -I./common -DCONFIGFILE_SYSTEM=\"/usr/local/etc/omega.co
nf\" -DPKGLIBBINDIR=\"/usr/local/lib/xapian-omega/bin\"  -Wall -W -Wredundant-de
cls -Wpointer-arith -Wcast-qual -Wcast-align -Wno-long-long -Wformat-security -f
no-gnu-keywords -Wundef -Wstrict-null-sentinel -Wshadow -Wstrict-overflow=1 -Win
it-self -Wlogical-op -Wmissing-declarations -fvisibility=hidden -I/xapian/xapian
-core-1.2.9/include -g -O2 -MT safe.o -MD -MP -MF .deps/safe.Tpo -c -o safe.o `t
est -f 'common/safe.cc' || echo './'`common/safe.cc
common/safe.cc: 関数 'void xapian_sleep_milliseconds(unsigned int)' 内:
common/safe.cc:29:1: 警告: no previous declaration for 'void xapian_sleep_millis
econds(unsigned int)' [-Wmissing-declarations]
mv -f .deps/safe.Tpo .deps/safe.Po
/bin/sh ./libtool  --tag=CXX   --mode=link g++ -Wall -W -Wredundant-decls -Wpoin
ter-arith -Wcast-qual -Wcast-align -Wno-long-long -Wformat-security -fno-gnu-key
words -Wundef -Wstrict-null-sentinel -Wshadow -Wstrict-overflow=1 -Winit-self -W
logical-op -Wmissing-declarations -fvisibility=hidden -I/xapian/xapian-core-1.2.
9/include -g -O2 -no-undefined   -o scriptindex.exe scriptindex.o myhtmlparse.o
htmlparse.o getopt.o commonhelp.o utils.o hashterm.o loadfile.o safe.o stringuti
ls.o utf8convert.o utf8truncate.o -Wl,--enable-runtime-pseudo-reloc /xapian/xapi
an-core-1.2.9/libxapian.la
libtool: link: g++ -Wall -W -Wredundant-decls -Wpointer-arith -Wcast-qual -Wcast
-align -Wno-long-long -Wformat-security -fno-gnu-keywords -Wundef -Wstrict-null-
sentinel -Wshadow -Wstrict-overflow=1 -Winit-self -Wlogical-op -Wmissing-declara
tions -fvisibility=hidden -I/xapian/xapian-core-1.2.9/include -g -O2 -o .libs/sc
riptindex.exe scriptindex.o myhtmlparse.o htmlparse.o getopt.o commonhelp.o util
s.o hashterm.o loadfile.o safe.o stringutils.o utf8convert.o utf8truncate.o -Wl,
--enable-runtime-pseudo-reloc  /xapian/xapian-core-1.2.9/.libs/libxapian.dll.a -
lz -lws2_32 -lrpcrt4 -L/home/xapian/lib
g++ -DHAVE_CONFIG_H -I. -I./common -DCONFIGFILE_SYSTEM=\"/usr/local/etc/omega.co
nf\" -DPKGLIBBINDIR=\"/usr/local/lib/xapian-omega/bin\"  -Wall -W -Wredundant-de
cls -Wpointer-arith -Wcast-qual -Wcast-align -Wno-long-long -Wformat-security -f
no-gnu-keywords -Wundef -Wstrict-null-sentinel -Wshadow -Wstrict-overflow=1 -Win
it-self -Wlogical-op -Wmissing-declarations -fvisibility=hidden -I/xapian/xapian
-core-1.2.9/include -g -O2 -MT query.o -MD -MP -MF .deps/query.Tpo -c -o query.o
 query.cc
In file included from query.cc:48:0:
./common/realtime.h: 関数 'double RealTime::now()' 内:
./common/realtime.h:66:22: エラー: aggregate 'RealTime::now()::__timeb64 tp' has
 incomplete type and cannot be defined
./common/realtime.h:67:17: エラー: '_ftime64' was not declared in this scope
./common/realtime.h:70:1: 警告: 制御が非 void 関数の終りに到達しました [-Wreturn
-type]
make[2]: *** [query.o] Error 1
make[2]: Leaving directory `/xapian/xapian-omega-1.2.9'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/xapian/xapian-omega-1.2.9'
make: *** [all] Error 2



More information about the Xapian-discuss mailing list