Re: compile errors in new PL/Pler

From: "Andrew Dunstan" <andrew(at)dunslane(dot)net>
To: <chriskl(at)familyhealth(dot)com(dot)au>
Cc: <mail(at)joeconway(dot)com>, <scrappy(at)postgresql(dot)org>, <jd(at)commandprompt(dot)com>, <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: compile errors in new PL/Pler
Date: 2004-07-02 12:55:56
Message-ID: 3861.24.211.141.25.1088772956.squirrel@www.dunslane.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Christopher Kings-Lynne said:
>
>> 1 is not acceptable, and 2 kinda sucks.
>>
>> Please try adding this to SPI.xs,
>>
>> #ifndef aTHX_
>> #define aTHX_
>> #endif
>>
>> recompile and test by calling spi_exec_query with more than 2
>> arguments like this:
>
> Hmmm, compiled fine, but then I get this:
>
> -bash-2.05b$ createlang -d test plperl
> ERROR: could not load library
> "/home/chriskl/local/lib/postgresql/plperl.so": dlopen
> '/home/chriskl/local/lib/postgresql/plperl.so' failed.
> (/home/chriskl/local/lib/postgresql/plperl.so: Undefined symbol
> "eval_pv") createlang: language installation failed: ERROR: could not
> load library "/home/chriskl/local/lib/postgresql/plperl.so": dlopen
> '/home/chriskl/local/lib/postgresql/plperl.so' failed.
> (/home/chriskl/local/lib/postgresql/plperl.so: Undefined symbol
> "eval_pv")
>

progress is good ....

We seem to have a mixture of old-style and new-style calls which needs to be
cleaned up. I would relly appreciate some experienced eyes being cast over
this, if there are any around.

In the meantime, does this solve your problem?:

#ifndef eval_pv
#define eval_pv perl_eval_pv
#endif

cheers

andrew

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Abhijit Menon-Sen 2004-07-02 13:03:56 Re: compile errors in new PL/Pler
Previous Message Merlin Moncure 2004-07-02 12:51:05 Re: [Re] Re: PREPARE and transactions