pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jürgen Ulrich <juergen.ulrich@etourism-austria.at>
To: pgsql-admin@postgresql.org
Subject: compiling C Funktion for PostgreSQL
Date: Tue, 17 Jul 2007 09:12:57 +0200
Message-ID: <200707170714.l6H7ECX4015357@smtp.uibk.ac.at> (raw)

Hello,

I have a problem with the postgreSQL Source Code when I compile the
fuzzystrmatch.c. I want to try to replace all german umlauts for the soundex
algorithm. But when I want to compile the C Code, I get an error on the
following line in the fuzzystrmatch.c:

 

PG_MODULE_MAGIC;

 

 

And here is the error I get:

 

In function 'Pg_magic_func': 'PG_VERSION_NUM' undeclared (first use in
function)

 

The PG_VERSION_NUM is defined in the fmgr.h of the PostgreSQL Source Code:

 

/* Definition of the magic block structure */ 
typedef struct 
{ 
    int            len;            /* sizeof(this struct) */ 
    int            version;        /* PostgreSQL major version */ 
    int            funcmaxargs;    /* FUNC_MAX_ARGS */ 
    int            indexmaxkeys;    /* INDEX_MAX_KEYS */ 
    int            namedatalen;    /* NAMEDATALEN */ 
} Pg_magic_struct; 


/* The actual data block contents */ 
#define PG_MODULE_MAGIC_DATA \ 
{  
    sizeof(Pg_magic_struct),  
    PG_VERSION_NUM / 100,  
    FUNC_MAX_ARGS,  
    INDEX_MAX_KEYS,  
    NAMEDATALEN  
}

 

Can anyone help me to figure out this problem?

 

Thanks in advance

Jürgen Ulrich

view thread (3+ messages)  latest in thread

Message-ID: <200707170714.l6H7ECX4015357@smtp.uibk.ac.at>
Permalink:  ../200707170714.l6H7ECX4015357@smtp.uibk.ac.at/
Also on:    postgresql.org/message-id/200707170714.l6H7ECX4015357@smtp.uibk.ac.at

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: juergen.ulrich@etourism-austria.at
  Subject: Re: compiling C Funktion for PostgreSQL
  In-Reply-To: <200707170714.l6H7ECX4015357@smtp.uibk.ac.at>
  References: <200707170714.l6H7ECX4015357@smtp.uibk.ac.at>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox