Re: Duplicate Symbols - Compiler Warnings

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Terry Lee Tucker <terry(at)chosen-ones(dot)org>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Duplicate Symbols - Compiler Warnings
Date: 2008-04-17 23:32:56
Message-ID: 342.1208475176@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Terry Lee Tucker <terry(at)chosen-ones(dot)org> writes:
> Didn't get any nibbles on this one. Can anybody provide any insight on this?

You're complaining in the wrong place ... I dunno what perlAPI.c is, but
it's not part of Postgres.

FWIW, plperl.c seems to work around the issue this way:

#include "postgres.h"
/* Defined by Perl */
#undef _

// include Perl headers here

I'm not sure that's entirely the right solution, because Perl's _ macro
is 100% useless in any project that considers ANSI C a prerequisite,
whereas ours could be useful ... but right now plperl doesn't have any
localization so it doesn't need the _ macro anyway.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Terry Lee Tucker 2008-04-18 00:04:22 Re: Duplicate Symbols - Compiler Warnings
Previous Message Aaron Glenn 2008-04-17 21:45:39 Re: In the belly of the beast (MySQLCon)