Build Error When Running make swig-pl-lib on Centos 7/Perl 5.36.1/Swig 4.1.1 - Subversion 1.14.2

6 views
Skip to first unread message

Rahr, Jeffrey A (US)

unread,
May 25, 2023, 1:41:14 PM5/25/23
to us...@subversion.apache.org

I am trying to build the perl swig links in Subversion 1.14.2.

Unfortunately this is on a non internet connected system with no ability to export build logs.


Environment:

Centos 7

Perl 5.36.1

Swig 4.1.1

gcc 4.8.5


make swig-pl-lib

generates a message of "PL_current_context" undeclared on the line - # define PERL-GET-CONTEXT    PL_current_context

in the file perl/5.36.1/lib/5.36.1/x86_64-linux-thread-multi/CORE/thread.h


Anyone have any idea where PL_current_context is defined? Guessing this is more of a subversion/perl integration issue as opposed to a subversion issue and possibly a problem with the perl build and a libc (v2.17) that is no longer being updated on Centos 7.


The build works on RedHat 8 in a similar environment. The only maor difference is gcc v8.5.0 and libc v2.28


Thanks for any insight or ideas.


Daniel Sahlberg

unread,
May 25, 2023, 3:15:32 PM5/25/23
to Rahr, Jeffrey A (US), us...@subversion.apache.org
Den tors 25 maj 2023 kl 19:41 skrev Rahr, Jeffrey A (US) <jeffre...@baesystems.com>:

I am trying to build the perl swig links in Subversion 1.14.2.

Unfortunately this is on a non internet connected system with no ability to export build logs.


Environment:

Centos 7

Perl 5.36.1

Swig 4.1.1

gcc 4.8.5


make swig-pl-lib

generates a message of "PL_current_context" undeclared on the line - # define PERL-GET-CONTEXT    PL_current_context

in the file perl/5.36.1/lib/5.36.1/x86_64-linux-thread-multi/CORE/thread.h


Anyone have any idea where PL_current_context is defined? Guessing this is more of a subversion/perl integration issue as opposed to a subversion issue and possibly a problem with the perl build and a libc (v2.17) that is no longer being updated on Centos 7.


I'm by no means a Perl expert, but I just downloaded 5.36.1 from perl.org and in this archive, the file thread.h contains the following (lines 386-388):
[[[
extern PERL_THREAD_LOCAL void *PL_current_context;

#  define PERL_GET_CONTEXT        PL_current_context
]]]
(I assume the "-" in your message was mistyped.). Is it the same in your thread.h? The paths you mention doesn't quite match up so maybe there is something with your perl source.
 
Kind regards,
Daniel Sahlberg

Nico Kadel-Garcia

unread,
May 25, 2023, 6:28:54 PM5/25/23
to Daniel Sahlberg, Rahr, Jeffrey A (US), us...@subversion.apache.org
On Thu, May 25, 2023 at 3:15 PM Daniel Sahlberg
<daniel.l...@gmail.com> wrote:
>
> Den tors 25 maj 2023 kl 19:41 skrev Rahr, Jeffrey A (US) <jeffre...@baesystems.com>:
>>
>> I am trying to build the perl swig links in Subversion 1.14.2.
>>
>> Unfortunately this is on a non internet connected system with no ability to export build logs.
>>
>>
>> Environment:
>>
>> Centos 7
>>
>> Perl 5.36.1
>>
>> Swig 4.1.1
>>
>> gcc 4.8.5

Stop there. Don't build this by hand. Get the latest working SRPM, in
order get the dependencies straightened out, and update the .spec file
from that. RHEL 7, in particular, as an incompatible sqlite library.
And RHEL is being peculiar about publishing the "libserf-devel"
package for the serf libraries.
Reply all
Reply to author
Forward
0 new messages