[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: python and header files on glib2.1



Turbo Fredriksson <turbo@tripnet.se> wrote:

> [1  <text/plain; US-ASCII (7bit)>]
> I'm trying to compile python here, and are getting the error
> 
>   ./bsddbmodule.c: In function `newdbhashobject':
>   ./bsddbmodule.c:87: `HASHINFO' undeclared (first use in this function)
>   ./bsddbmodule.c:87: (Each undeclared identifier is reported only once
>   [...]
> 
> On my i386, this is declared in the <db.h>, which bsddbmodule.c is including,
> but on the Arm (which uses glibc2.1) it's declared in the <db_185.h> file...
> 
> How do I write a 'ifdef' etc, to check if we are using a glibc2.1 system?

Darn, I hate when this happens...

   #if __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 1
   #include <db_185.h>
   #else
   #include <db.h>
   #endif

Sorry...

-- 
-----------------------------------------------------------------------
 Turbo     __ _     Debian GNU     Unix _IS_ user friendly - it's just 
 ^^^^^    / /(_)_ __  _   ___  __  selective about who its friends are 
         / / | | '_ \| | | \ \/ /          papadoc.nocrew.org          
  _ /// / /__| | | | | |_| |>  <  Turbo Fredriksson    turbo@tripnet.se
  \\\/  \____/_|_| |_|\__,_/_/\_\ Surrey/B.C./Canada      (604)572-3523
Debian Certified Linux Developer  PGP#788CD1A9   www5.tripnet.se/~turbo
------- PGP:  B7 92 93 0E 06 94 D6 22  98 1F 0B 5B FE 33 A1 0B --------
-- 
counter-intelligence Clinton $400 million in gold bullion KGB NORAD
radar cryptographic PLO World Trade Center Panama ammunition Uzi FSF
Treasury Semtex

Attachment: pgpkhDhmlyJC1.pgp
Description: PGP signature


Reply to: