I just joined a project that embeds a perl interpreter and exposes a lot of its base functionality to the perl for extensions. The project currently uses KDE and QT3. I am trying to remove the need for KDE so that we can move on to QT4. Loading our dynamic library for perl extensions works perfectly in KDE. I am trying to replace the KDE library loader with the QT loader and have run into some problems that you might be able to shed some light on for me.
When using the QT library loader when our underlying perl script runs I get the following errors.
Can't load '/usr/lib/perl5/5.8.7/i686-linux/auto/IO/IO.so' for module
+IO:
/usr/lib/perl5/5.8.7/i686-linux/auto/IO/IO.so: undefined symbol: PL_sv
+_undef at
/usr/lib/perl5/5.8.7/i686-linux/XSLoader.pm line 68.
at /usr/lib/perl5/5.8.7/i686-linux/IO.pm line 11
Compilation failed in require at /usr/lib/perl5/5.8.7/i686-linux/IO/Ha
+ndle.pm
line 260.
BEGIN failed--compilation aborted at /usr/lib/perl5/5.8.7/i686-linux/I
+O/Handle.pm
line 260.
Compilation failed in require at /usr/lib/perl5/5.8.7/i686-linux/IO/Se
+ekable.pm
line 101.
BEGIN failed--compilation aborted at
/usr/lib/perl5/5.8.7/i686-linux/IO/Seekable.pm line 101.
Compilation failed in require at /usr/lib/perl5/5.8.7/i686-linux/IO/Fi
+le.pm line
133.
BEGIN failed--compilation aborted at /usr/lib/perl5/5.8.7/i686-linux/I
+O/File.pm
line 133.
Compilation failed in require at appdata/perl/battlerecorder.pl line 5
+.
BEGIN failed--compilation aborted at appdata/perl/battlerecorder.pl li
+ne 5.
The final reference in the dump, battlerecorder.pl starts the interaction with our C++ code. My colleague on this project thinks the problem is because the QTLibrary loader does not expose the global namespace (I am not sure exactly what that means).
Anyway, I am good in Perl itself, but am a little challenged on this problem any information you could provide for me I would appreciate.
Thanx
Julian
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.