Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > reference symbol not found with UDUNITS

Reply
Thread Tools

reference symbol not found with UDUNITS

 
 
Randy Rokosz
Guest
Posts: n/a
 
      07-24-2003
On a Solaris 7 machine, I had Perl 5.005_03 running with UDUNITS
successfully.
I'm not sure what the relationship is between the two. This perl is
/opt/gnu/bin/perl

I then upgraded perl to 5.8.0 and placed this in /usr/local/bin/perl,
keeping the old version where it was. I eventually ran a perl script
that did a 'use UDUNITS' and it said that it couldn't locate UDUNITS.pm
in @INC. I copied some of these files from the /opt/gnu/lib structure
to the /usr/local/lib structure (perhaps incorrectly?), and now I get:

ld.so.1: /usr/local/bin/perl: fatal: relocation error:
/usr/local/lib/perl5/site_perl/5.8.0/sun4-solaris/auto/UDUNITS/UDUNITS.so:
symbol perl_get_sv: referenced symbol not found

How can I get the new Perl to call UDUNITS correctly?

Thanks!!!

 
Reply With Quote
 
 
 
 
John Porter
Guest
Posts: n/a
 
      07-24-2003
Randy Rokosz wrote:
> On a Solaris 7 machine, I had Perl 5.005_03 running with UDUNITS
> successfully.
> I then upgraded perl to 5.8.0 and placed this in /usr/local/bin/perl,
> I copied some of these files from the /opt/gnu/lib structure
> to the /usr/local/lib structure (perhaps incorrectly?), and now I get:
> ld.so.1: /usr/local/bin/perl: fatal: relocation error:
> /usr/local/lib/perl5/site_perl/5.8.0/sun4-solaris/auto/UDUNITS/UDUNITS.so:
> symbol perl_get_sv: referenced symbol not found


The two version of perl are not binary compatible.
That means that any modules with "binary" (i.e. compiled) code
won't work for both.
You'll need to re-compile UDUNITS for the 5.8 perl.
First, you should delete anything you copied from the 5.003 perl.
Even if a non-binary module from 5.003 works with 5.8, there's a
good chance it won't be the latest and greatest.
For maximum happiness, keep them separate!

--
John Douglas Porter
 
Reply With Quote
 
 
 
 
Tad McClellan
Guest
Posts: n/a
 
      07-24-2003
Randy Rokosz <> wrote:

> I had Perl 5.005_03


> I then upgraded perl to 5.8.0


> and now I get:
>
> ld.so.1: /usr/local/bin/perl: fatal: relocation error:
> /usr/local/lib/perl5/site_perl/5.8.0/sun4-solaris/auto/UDUNITS/UDUNITS.so:
> symbol perl_get_sv: referenced symbol not found



Does UDUNITS have an XS component?

Perl 5.8.0 is not binary compatible with earlier versions.


> How can I get the new Perl to call UDUNITS correctly?



Modules that use C code will need to be recompiled (reinstalled).


--
Tad McClellan SGML consulting
Perl programming
Fort Worth, Texas
 
Reply With Quote
 
Jeff 'japhy' Pinyan
Guest
Posts: n/a
 
      07-26-2003
Am I the only one who reads "UDUNITS" as "(wh)o-dun-its"?

--
Jeff Pinyan RPI Acacia Brother #734 2003 Rush Chairman
"And I vos head of Gestapo for ten | Michael Palin (as Heinrich Bimmler)
years. Ah! Five years! Nein! No! | in: The North Minehead Bye-Election
Oh. Was NOT head of Gestapo AT ALL!" | (Monty Python's Flying Circus)

 
Reply With Quote
 
David H. Adler
Guest
Posts: n/a
 
      08-26-2003
In article
<Pine.SGI.3.96.1030726172428.221268A->,
Jeff 'japhy' Pinyan wrote:

> Am I the only one who reads "UDUNITS" as "(wh)o-dun-its"?


Yes.



--
David H. Adler - <> - http://www.panix.com/~dha/
DHA is the "Smorax", he is friends with the Twinkies and speaks for
the Choc-O-Diles. - Mark Rogaski
 
Reply With Quote
 
Uri Guttman
Guest
Posts: n/a
 
      08-26-2003
>>>>> "DHA" == David H Adler <> writes:

DHA> In article
DHA> <Pine.SGI.3.96.1030726172428.221268A->,
DHA> Jeff 'japhy' Pinyan wrote:

>> Am I the only one who reads "UDUNITS" as "(wh)o-dun-its"?


DHA> Yes.

my wife parses and pronounces whodunits as hod-units. as in how many hod
units were needed by the killer.



uri

--
Uri Guttman ------ -------- http://www.stemsystems.com
--Perl Consulting, Stem Development, Systems Architecture, Design and Coding-
Search or Offer Perl Jobs ---------------------------- http://jobs.perl.org
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
(Encryption Package) error: cannot find symbol symbol: class BaseNCode clusardi2k@aol.com Java 6 08-29-2012 08:33 PM
Why ":symbol" failed but 'symbol' successed with JRuby 1.0.3? Song Ma Ruby 2 07-20-2008 04:08 AM
Runtime symbol not found with Xalan-C++ geoffblanduk_nospam@yahoo.co.uk XML 0 12-30-2005 09:51 AM
what's differnece between #ifdef symbol and #if defined(symbol) baumann@pan C Programming 1 04-15-2005 08:25 AM
symbol not found involving dynlink/dlopen/embedding Python Christopher Armstrong Python 0 12-19-2004 09:55 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57