Pronichev Alexander
2006-Jul-11 14:59 UTC
[Xapian-devel] Building Search_Xapian under FreeBSD
Hi all. I can't buil perl bindings for Xapian under FreeBSD for version 0.9.6 Here is something about system and error messages: uname -a: FreeBSD xxx 4.11-RELEASE FreeBSD 4.11-RELEASE xapian-config --cxxflags: -I/usr/local/include xapian-config --libs: -L/usr/local/lib -lxapian xapian-config --version: xapian 0.9.6 # perl Makefile.PL Checking if your kit is complete... Looks good Writing Makefile for Search::Xapian # make g++ -c -I/usr/local/include -DAPPLLIB_EXP="/usr/local/lib/perl5/5.8.8/BSDPAN" -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe -I/usr/local/include -O -pipe -DVERSION=\"0.9.6.0\" -DXS_VERSION=\"0.9.6.0\" -DPIC -fPIC "-I/usr/local/lib/perl5/5.8.8/mach/CORE" Xapian.c Xapian.c:144: syntax error before `__attribute__' Xapian.c:145: syntax error before `__attribute__' Xapian.c:147: register name not specified for `struct SV ** mark' Xapian.c:147: `sp' was not declared in this scope Xapian.c:148: syntax error before `if' cpp0: output pipe has been closed *** Error code 1 Stop in /tmp/Search_Xapian. # Does anybody already saw such problem and can help me? Thanks. ----------------------- perl -V: # perl -V Summary of my perl5 (revision 5 version 8 subversion 8) configuration: Platform: osname=freebsd, osvers=4.11-release, archname=i386-freebsd-64int uname='...' config_args='-sde -Dprefix=/usr/local -Darchlib=/usr/local/lib/perl5/5.8.8/mach -Dprivlib=/usr/local/lib/perl5/5.8.8 -Dman3dir=/usr/local/lib/perl5/5.8.8/perl/man/man3 -Dman1dir=/usr/local/man/man1 -Dsitearch=/usr/local/lib/perl5/site_perl/5.8.8/mach -Dsitelib=/usr/local/lib/perl5/site_perl/5.8.8 -Dscriptdir=/usr/local/bin -Dsiteman3dir=/usr/local/lib/perl5/5.8.8/man/man3 -Dsiteman1dir=/usr/local/man/man1 -Ui_malloc -Ui_iconv -Uinstallusrbinperl -Dcc=cc -Duseshrplib -Dccflags=-DAPPLLIB_EXP="/usr/local/lib/perl5/5.8.8/BSDPAN" -Doptimize=-O -pipe -Ud_dosuid -Ui_gdbm -Dusethreads=n -Dusemymalloc=y -Duse64bitint' hint=recommended, useposix=true, d_sigaction=define usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=undef useperlio=define d_sfio=undef uselargefiles=define usesocks=undef use64bitint=define use64bitall=undef uselongdouble=undef usemymalloc=y, bincompat5005=undef Compiler: cc='cc', ccflags ='-DAPPLLIB_EXP="/usr/local/lib/perl5/5.8.8/BSDPAN" -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe -I/usr/local/include', optimize='-O -pipe ', cppflags='-DAPPLLIB_EXP="/usr/local/lib/perl5/5.8.8/BSDPAN" -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe -I/usr/local/include' ccversion='', gccversion='2.95.4 20020320 [FreeBSD]', gccosandvers='' intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=12345678 d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12 ivtype='long long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8 alignbytes=4, prototype=define Linker and Libraries: ld='cc', ldflags =' -Wl,-E -L/usr/local/lib' libpth=/usr/lib /usr/local/lib libs=-lm -lcrypt -lutil perllibs=-lm -lcrypt -lutil libc=, so=so, useshrplib=true, libperl=libperl.so gnulibc_version='' Dynamic Linking: dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' -Wl,-R/usr/local/lib/perl5/5.8.8/mach/CORE' cccdlflags='-DPIC -fPIC', lddlflags='-shared -L/usr/local/lib' Characteristics of this binary (from libperl): Compile-time options: MYMALLOC PERL_MALLOC_WRAP USE_64_BIT_INT USE_LARGE_FILES USE_PERLIO Locally applied patches: defined-or Built under freebsd Compiled at Apr 11 2006 15:10:10 @INC: /usr/local/lib/perl5/5.8.8/BSDPAN /usr/local/lib/perl5/site_perl/5.8.8/mach /usr/local/lib/perl5/site_perl/5.8.8 /usr/local/lib/perl5/site_perl/5.8.6 /usr/local/lib/perl5/site_perl/5.005 /usr/local/lib/perl5/site_perl /usr/local/lib/perl5/5.8.8/mach /usr/local/lib/perl5/5.8.8 -- WBR dyker Agava Software GPG PubKey at https://keyserver2.pgp.com/vkd/DownloadKey.event?keyid=0xD523D04AC72C01DA
On Tue, Jul 11, 2006 at 06:59:42PM +0400, Pronichev Alexander wrote:> g++ -c -I/usr/local/include -DAPPLLIB_EXP="/usr/local/lib/perl5/5.8.8/BSDPAN" -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe -I/usr/local/include -O -pipe -DVERSION=\"0.9.6.0\" -DXS_VERSION=\"0.9.6.0\" -DPIC -fPIC "-I/usr/local/lib/perl5/5.8.8/mach/CORE" Xapian.c > Xapian.c:144: syntax error before `__attribute__' > Xapian.c:145: syntax error before `__attribute__' > Xapian.c:147: register name not specified for `struct SV ** mark' > Xapian.c:147: `sp' was not declared in this scope > Xapian.c:148: syntax error before `if' > cpp0: output pipe has been closed > *** Error code 1Can you post what's around line 144 of Xapian.c? It's generated during the build so I need to see what it contains for you... Cheers, Olly