Re: Compiling with PBL under Debian
Thomas Schürger <[email protected]> Wed, 22 Oct 2008 14:49:52 +0200
| Newsgroups | gmane.mail.spam.spamprobe.general |
|---|---|
| Message-ID | <[email protected]> |
Mahlon E. Smith schrieb:
> Hey all!
>
> I'm helping a buddy out on a Debian/Sid machine, and the spamprobe
> package doesn't appear to be built with PBL. So, going around the
> packaging system to get it working... (booo)
>
> Here's what I'm getting:
> =
...
> : executing depfiles commands
>
> salyut ~/build/spamprobe-1.4d # make =
=
Making all in src
> make[1]: Entering directory `/local/home/mahlon/build/spamprobe-1.4d/=
src'
> Making all in database
> make[2]: Entering directory `/local/home/mahlon/build/spamprobe-1.4d/=
src/database'
> if g++ -DPACKAGE_NAME=3D\"\" -DPACKAGE_TARNAME=3D\"\" -DPACKAGE_VERSI=
ON=3D\"\" -DPACKAGE_STRING=3D\"\" -DPACKAGE_BUGREPORT=3D\"\" -DPACKAGE=3D\"=
spamprobe\" -DVERSION=3D\"1.4d\" -DSTDC_HEADERS=3D1 -DHAVE_SYS_TYPES_H=3D1 =
-DHAVE_SYS_STAT_H=3D1 -DHAVE_STDLIB_H=3D1 -DHAVE_STRING_H=3D1 -DHAVE_MEMORY=
_H=3D1 -DHAVE_STRINGS_H=3D1 -DHAVE_INTTYPES_H=3D1 -DHAVE_STDINT_H=3D1 -DHAV=
E_UNISTD_H=3D1 -DHAVE_UNISTD_H=3D1 -DHAVE_DIRENT_H=3D1 -DHAVE_REGEX_H=3D1 -=
DUSE_PBL=3D1 -DUSE_MMAP=3D1 -DHAVE_UNGIF=3D1 -DHAVE_PNG=3D1 -DHAVE_JPEG=3D1=
-I. -I. -I../../src/includes -I../pbl_1_03 -DNDEBUG -g -O2 -MT Databas=
eConfig.o -MD -MP -MF ".deps/DatabaseConfig.Tpo" -c -o DatabaseConfig.o Dat=
abaseConfig.cc; \
> then mv -f ".deps/DatabaseConfig.Tpo" ".deps/DatabaseConfig.P=
o"; else rm -f ".deps/DatabaseConfig.Tpo"; exit 1; fi
> In file included from DatabaseConfig.cc:41:
> FrequencyDBImpl_pbl.h:36:17: error: pbl.h: No such file or directory
> In file included from DatabaseConfig.cc:41:
> FrequencyDBImpl_pbl.h:94: error: ISO C++ forbids declaration of =E2pb=
lKeyFile_t=E2 with no type
> FrequencyDBImpl_pbl.h:94: error: expected =E2;=E2 before =E2*=E2 token
> make[2]: *** [DatabaseConfig.o] Error 1
> make[2]: Leaving directory `/local/home/mahlon/build/spamprobe-1.4d/s=
rc/database'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/local/home/mahlon/build/spamprobe-1.4d/s=
rc'
> make: *** [all-recursive] Error 1
>
>
> Has anyone seen this before that could lend me a clue? I'm a FreeBSD
> guy by trade, and I'm desperately longing for the ports system right
> now... ;)
>
> Thanks for any info provided.
> =
Compilation is done within some spamprobe subdirectory, so the relative =
PBL location given is wrong there.
Just use an absolute path to the PBL directory, for example =
"/local/home/mahlon/build/pbl_1_03" instead
of "../pbl_1_03".
Greetings,
Thomas.
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great priz=
es
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=3D100&url=3D/