[Melbourne-pm] Fwd: [Golly-test] golly with Perl 5.14?

Toby Corkindale toby.corkindale at strategicdata.com.au
Tue Jul 26 00:20:34 PDT 2011


On 23/07/11 18:29, Tony Smith wrote:
> This is way out of my depth but I have a vested interest in helping find
> the answer.

Hi Tony,
A simple, quick-fix is to patch wxperl.cpp to add one line, like so:


--- a/wxperl.cpp
+++ b/wxperl.cpp
@@ -77,6 +77,7 @@
  #undef gid_t

  #include <EXTERN.h>
+#define PERL_GLOBAL_STRUCT
  #include <perl.h>
  #include <XSUB.h>


This seems to do the job for me; I don't know if it's the correct way to 
solve it or not though..

I hope this helps,
-Toby


>> *From: *Tom Rokicki <rokicki at gmail.com <mailto:rokicki at gmail.com>>
>> *Date: *23 July 2011 10:53:42 AM AEST
>> *To: *golly test list <golly-test at lists.sourceforge.net
>> <mailto:golly-test at lists.sourceforge.net>>, eric at brouhaha.com
>> <mailto:eric at brouhaha.com>
>> *Subject: **Re: [Golly-test] golly with Perl 5.14?*
>> *Reply-To: *golly test list <golly-test at lists.sourceforge.net
>> <mailto:golly-test at lists.sourceforge.net>>
>>
>> This looks like a problem with Perl 5.14.
>>
>> The web page at
>>
>> http://perldoc.perl.org/perlembed.html
>>
>> which is the main embedding documentation for Perl 5.14 has this
>> *precise* code.
>>
>> We could take out that line but that eliminates the ability to dynamically
>> load Perl extensions (is my understanding), which we do not want to do.
>>
>> We need to locate a Perl expert to comment on this . . .
>>
>> -tom
>>
>> On Fri, Jul 22, 2011 at 12:39 PM, Eric Smith <eric at brouhaha.com
>> <mailto:eric at brouhaha.com>> wrote:
>>> Has anyone successfully compiled golly with Perl 5.14? It works fine in
>>> Fedora with Perl 5.12, but Fedora 16 is moving to Perl 5.14, and that
>>> breaks the build, due to macros expanding to include PL_thr_key, which
>>> is no longer defined.
>>>
>>> The build log can be seen at:
>>>
>>> http://koji.fedoraproject.org/koji/getfile?taskID=3222183&name=build.log
>>> <http://koji.fedoraproject.org/koji/getfile?taskID=3222183&name=build.log>
>>>
>>> The Fedora bug is at:
>>> https://bugzilla.redhat.com/show_bug.cgi?id=717675
>>>
>>> I know only enough Perl to be dangerous, and nothing about the innards,
>>> so I don't think I can figure out how to deal with this on my own.
>>>
>>> Thanks!
>>> Eric


More information about the Melbourne-pm mailing list