[Hamlib-developer] Problems with Perl language interface
Library to control radio transceivers and receivers
Brought to you by:
n0nb
|
From: Nate B. <n0...@ne...> - 2002-11-04 00:07:16
|
Hi all.
I figured I would try the Perl interface to Hamlib. All seemed to build
well, but I get a fatal error trying to run the test.pl script. The
version of Perl on this system is 5.6.1. I even tried running ldconfig
with no success. Do I need to add the
/usr/local/lib/perl/5.6.1/auto/Hamlib to /etc/ld.so.conf, or is there
something else broken on my system? I've never installed a locally
built Perl module before so I'm rather green here. Everything seemed to
build fine, so I'm puzzled.
Here's the screen output:
merlin:~/test/hamlib/perl $ perl Makefile.PL
Checking if your kit is complete...
Looks good
Writing Makefile for Hamlib
merlin:~/test/hamlib/perl $ make
cp Hamlib.pm blib/lib/Hamlib.pm
AutoSplitting blib/lib/Hamlib.pm (blib/lib/auto/Hamlib)
/usr/bin/perl -I/usr/lib/perl/5.6.1 -I/usr/share/perl/5.6.1
/usr/share/perl/5.6.1/ExtUtils/xsubpp -typemap
/usr/share/perl/5.6.1/ExtUtils/typemap -typemap typemap Hamlib.xs >
Hamlib.xsc && mv Hamlib.xsc Hamlib.c
cc -c -DDEBIAN -fno-strict-aliasing -I/usr/local/include
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -DVERSION=\"0.02\"
-DXS_VERSION=\"0.02\" -fPIC -I/usr/lib/perl/5.6.1/CORE Hamlib.c
Hamlib.xs: In function `XS_Hamlib__Rig_set_ext_level':
Hamlib.xs:3064: warning: assignment discards qualifiers from pointer
target type
Hamlib.xs: In function `XS_Hamlib__Rig_set_ext_parm':
Hamlib.xs:3108: warning: assignment discards qualifiers from pointer
target type
Running Mkbootstrap for Hamlib ()
chmod 644 Hamlib.bs
rm -f blib/arch/auto/Hamlib/Hamlib.so
LD_RUN_PATH="" cc -shared -L/usr/local/lib Hamlib.o -o
blib/arch/auto/Hamlib/Hamlib.so
chmod 755 blib/arch/auto/Hamlib/Hamlib.so
cp Hamlib.bs blib/arch/auto/Hamlib/Hamlib.bs
chmod 644 blib/arch/auto/Hamlib/Hamlib.bs
Manifying blib/man3/Hamlib.3pm
merlin:~/test/hamlib/perl $ make test
PERL_DL_NONLAZY=1 /usr/bin/perl -Iblib/arch -Iblib/lib
-I/usr/lib/perl/5.6.1 -I/usr/share/perl/5.6.1 test.pl
1..12
Can't load 'blib/arch/auto/Hamlib/Hamlib.so' for module Hamlib:
blib/arch/auto/Hamlib/Hamlib.so: undefined symbol: rig_get_powerstat at
/usr/lib/perl/5.6.1/DynaLoader.pm line 202.
at test.pl line 10
Compilation failed in require at test.pl line 10.
BEGIN failed--compilation aborted at test.pl line 10.
make: *** [test_dynamic] Error 255
merlin:# make install
Installing /usr/local/lib/perl/5.6.1/auto/Hamlib/Hamlib.so
Installing /usr/local/lib/perl/5.6.1/auto/Hamlib/Hamlib.bs
Files found in blib/arch: installing files in blib/lib into architecture
dependent library tree
Installing /usr/local/lib/perl/5.6.1/Hamlib.pm
Installing /usr/local/lib/perl/5.6.1/auto/Hamlib/autosplit.ix
Installing /usr/local/man/man3/Hamlib.3pm
Writing /usr/local/lib/perl/5.6.1/auto/Hamlib/.packlist
Appending installation info to /usr/local/lib/perl/5.6.1/perllocal.pod
merlin:~/test/hamlib/perl $ perl test.pl
1..12
ok 1
perl: relocation error: /usr/local/lib/perl/5.6.1/auto/Hamlib/Hamlib.so:
undefined symbol: rig_init
--
Wireless | Amateur Radio Station N0NB | "We have awakened a
Internet | n0...@ne... | sleeping giant and
Location | Bremen, Kansas USA EM19ov | have instilled in him
Amateur radio exams; ham radio; Linux info @ | a terrible resolve".
http://www.qsl.net/n0nb/ | - Admiral Yamomoto
|