Bill Moseley
2014-09-30 12:39:17 UTC
I have a simple, if not basic, question.
We have a static archive (*.a) library provided to us that we have written
an XS interface for. So, the resulting .so that XS builds contains that
library (or whatever the linker decided to include, I suppose).
New functionality was added to that static library and we created a
*separate* XS module for just that functionality. It also pulls in much
(all?) of that .a library when building the Perl XS .so module.
Is there potential for symbols to "clash" in this situation? Or is that
not a problem as long as the .a library was compiled with -fPIC?
We are using both the XS Perl modules in the same process and seems to work
fine. So, not sure if that is just luck or if there's no problem doing
this.
If we can get the library rebuilt as a .so would that make much of a
difference?
I'm running on CentOS and non-threaded Perl, if that makes a difference.
Thanks,
We have a static archive (*.a) library provided to us that we have written
an XS interface for. So, the resulting .so that XS builds contains that
library (or whatever the linker decided to include, I suppose).
New functionality was added to that static library and we created a
*separate* XS module for just that functionality. It also pulls in much
(all?) of that .a library when building the Perl XS .so module.
Is there potential for symbols to "clash" in this situation? Or is that
not a problem as long as the .a library was compiled with -fPIC?
We are using both the XS Perl modules in the same process and seems to work
fine. So, not sure if that is just luck or if there's no problem doing
this.
If we can get the library rebuilt as a .so would that make much of a
difference?
I'm running on CentOS and non-threaded Perl, if that makes a difference.
Thanks,
--
Bill Moseley
***@hank.org
Bill Moseley
***@hank.org