Re: Duplicate Symbols - Compiler Warnings

From: Terry Lee Tucker <terry(at)chosen-ones(dot)org>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Duplicate Symbols - Compiler Warnings
Date: 2008-04-18 00:04:22
Message-ID: 200804172004.22682.terry@chosen-ones.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Thursday 17 April 2008 19:32, Tom Lane wrote:
> 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

Tom,

Thanks for the reply. I've implemented your suggestion and the warning goes
away. perlAPI.c is our own source file of functions which allows access to
the Perl interpreter which is linked in with the application. We use this to
access various Perl hashes that configure and control the system. We'll do
some serious testing to see if I've broken anything.

As usual, thanks for your invaluable assistance...

--
Terry Lee Tucker
Turbo's IT Manager
Turbo, division of Ozburn-Hessey Logistics
2251 Jesse Jewell Pkwy NE
Gainesville, GA 30501
Tel: (336) 372-6812 Fax: (336) 372-6812 Cell: (336) 404-6987
terry(at)turbocorp(dot)com
www.turbocorp.com

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Josh Trutwin 2008-04-18 03:19:23 Re: In the belly of the beast (MySQLCon)
Previous Message Tom Lane 2008-04-17 23:32:56 Re: Duplicate Symbols - Compiler Warnings