Symbol lookup error - undefined symbol

I'm using Inline->bind to bind to a static lib which has a few 
dependencies so I am setting LIBS to a series of 3 -L/-l pairs. Inline 
is successfully binding to the library and I go to make the call to the 
library but I'm failing with a Symbol lookup error - undefined symbol:

bash-3.2$ /usr/local/bin/perl raid2 -load DbgSh.h
Calling bind with libs set to
-L/view/yfang_fp1.0_yfang_May24/vob/9200_packetcore/packetcore/infra/sysmgr/ipmi 
-lwiipmi
-L/view/yfang_fp1.0_yfang_May24/vob/9200_packetcore/packetcore/infra/lib/src 
-lwinfra
-L/vob/9200/software/common/debugshell -lDbgSh
Starting Build Preprocess Stage
Finished Build Preprocess Stage

Starting Build Parse Stage
Finished Build Parse Stage

Starting Build Glue 1 Stage
Finished Build Glue 1 Stage

Starting Build Glue 2 Stage
Finished Build Glue 2 Stage

Starting Build Glue 3 Stage
Finished Build Glue 3 Stage

Starting Build Compile Stage
   Starting "perl Makefile.PL" Stage
Writing Makefile for raid2_f8ac
   Finished "perl Makefile.PL" Stage

   Starting "make" Stage
make: Warning: File `Makefile' has modification time 8.5 s in the future
/usr/local/bin/perl /usr/local/lib/perl5/5.8.9/ExtUtils/xsubpp  -typemap 
/usr/local/lib/perl5/5.8.9/ExtUtils/typemap -typemap 
/vob/9200/software/common/debugshell/typemap   raid2_f8ac.xs > 
raid2_f8ac.xsc && mv raid2_f8ac.xsc raid2_f8ac.c
gcc -c  -I/vob/9200/software/common/debugshell -m32 -fno-strict-aliasing 
-pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 
-I/usr/include/gdbm -O2   -DVERSION=\"0.00\" -DXS_VERSION=\"0.00\" -fPIC 
"-I/usr/local/lib/perl5/5.8.9/i386/CORE"   raid2_f8ac.c
Running Mkbootstrap for raid2_f8ac ()
chmod 644 raid2_f8ac.bs
rm -f blib/arch/auto/raid2_f8ac/raid2_f8ac.so
gcc  -m32 -shared -O2 -L/usr/local/lib raid2_f8ac.o  -o 
blib/arch/auto/raid2_f8ac/raid2_f8ac.so \
            
-L/view/yfang_fp1.0_yfang_May24/vob/9200_packetcore/packetcore/infra/sysmgr/ipmi 
-lwiipmi    \

chmod 755 blib/arch/auto/raid2_f8ac/raid2_f8ac.so
cp raid2_f8ac.bs blib/arch/auto/raid2_f8ac/raid2_f8ac.bs
chmod 644 blib/arch/auto/raid2_f8ac/raid2_f8ac.bs
make: warning:  Clock skew detected.  Your build may be incomplete.
   Finished "make" Stage

   Starting "make install" Stage
make: Warning: File `Makefile' has modification time 7.7 s in the future
Files found in blib/arch: installing files in blib/lib into architecture 
dependent library tree
Writing 
/vob/9200/software/common/debugshell/_Inline/lib/auto/raid2_f8ac/.packlist
make: warning:  Clock skew detected.  Your build may be incomplete.
   Finished "make install" Stage

   Starting Cleaning Up Stage
   Finished Cleaning Up Stage

Finished Build Compile Stage

RAiD [DbgSh] <144> DbgShellProcessUserInput (1,1,1)
/usr/local/bin/perl: symbol lookup error: 
/vob/9200/software/common/debugshell/_Inline/lib/auto/raid2_f8ac/raid2_f8ac.so: 
undefined symbol: DbgShellProcessUserInput
bash-3.2$ pwd
/vob/9200/software/common/debugshell
bash-3.2$ nm libDbgSh.a | grep DbgShellProcessUserInput
000000000000074c T DbgShellProcessUserInput
bash-3.2$

As you can see DbgShellProcessUserInput is indeed defined in libDbgSh.a 
yet when I attempt to call it I get the symbol lookup failure.

The problem seem to have something to do with the additional libraries 
as if they are not included then I don't have a problem. But I need to 
have those other libraries. How do I fix this?

TIA.
-- 
Andrew DeFaria <http://defaria.com>
Everybody repeat after me ...We are all individuals.
0
Andrew
5/28/2011 2:38:51 AM
perl.inline 1285 articles. 0 followers. Follow

1 Replies
5011 Views

Similar Articles

[PageSpeed] 50

Andrew,

I'm not really an expert in these matters, but here a few things you
might look into:

Is the DbgShellProcessUserInput symbol in the raid2_f8ac.so object file?

Is it possible that when you create the .so it only links in the
symbols from the .a that are actually used in the code?

You may have to squeeze your -L...  -l... options for static objects betwee=
n

-Wl,--whole-archive
....
-Wl,--no-whole-archive

gcc options to do what you are trying to do.


Patrick


On Fri, May 27, 2011 at 10:38 PM, Andrew DeFaria
<Andrew.DeFaria@tellabs.com> wrote:
> I'm using Inline->bind to bind to a static lib which has a few dependenci=
es
> so I am setting LIBS to a series of 3 -L/-l pairs. Inline is successfully
> binding to the library and I go to make the call to the library but I'm
> failing with a Symbol lookup error - undefined symbol:
>
> bash-3.2$ /usr/local/bin/perl raid2 -load DbgSh.h
> Calling bind with libs set to
> -L/view/yfang_fp1.0_yfang_May24/vob/9200_packetcore/packetcore/infra/sysm=
gr/ipmi
> -lwiipmi
> -L/view/yfang_fp1.0_yfang_May24/vob/9200_packetcore/packetcore/infra/lib/=
src
> -lwinfra
> -L/vob/9200/software/common/debugshell -lDbgSh
> Starting Build Preprocess Stage
> Finished Build Preprocess Stage
>
> Starting Build Parse Stage
> Finished Build Parse Stage
>
> Starting Build Glue 1 Stage
> Finished Build Glue 1 Stage
>
> Starting Build Glue 2 Stage
> Finished Build Glue 2 Stage
>
> Starting Build Glue 3 Stage
> Finished Build Glue 3 Stage
>
> Starting Build Compile Stage
> =A0Starting "perl Makefile.PL" Stage
> Writing Makefile for raid2_f8ac
> =A0Finished "perl Makefile.PL" Stage
>
> =A0Starting "make" Stage
> make: Warning: File `Makefile' has modification time 8.5 s in the future
> /usr/local/bin/perl /usr/local/lib/perl5/5.8.9/ExtUtils/xsubpp =A0-typema=
p
> /usr/local/lib/perl5/5.8.9/ExtUtils/typemap -typemap
> /vob/9200/software/common/debugshell/typemap =A0 raid2_f8ac.xs >
> raid2_f8ac.xsc && mv raid2_f8ac.xsc raid2_f8ac.c
> gcc -c =A0-I/vob/9200/software/common/debugshell -m32 -fno-strict-aliasin=
g
> -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=3D64
> -I/usr/include/gdbm -O2 =A0 -DVERSION=3D\"0.00\" -DXS_VERSION=3D\"0.00\" =
-fPIC
> "-I/usr/local/lib/perl5/5.8.9/i386/CORE" =A0 raid2_f8ac.c
> Running Mkbootstrap for raid2_f8ac ()
> chmod 644 raid2_f8ac.bs
> rm -f blib/arch/auto/raid2_f8ac/raid2_f8ac.so
> gcc =A0-m32 -shared -O2 -L/usr/local/lib raid2_f8ac.o =A0-o
> blib/arch/auto/raid2_f8ac/raid2_f8ac.so \
>
> -L/view/yfang_fp1.0_yfang_May24/vob/9200_packetcore/packetcore/infra/sysm=
gr/ipmi
> -lwiipmi =A0 =A0\
>
> chmod 755 blib/arch/auto/raid2_f8ac/raid2_f8ac.so
> cp raid2_f8ac.bs blib/arch/auto/raid2_f8ac/raid2_f8ac.bs
> chmod 644 blib/arch/auto/raid2_f8ac/raid2_f8ac.bs
> make: warning: =A0Clock skew detected. =A0Your build may be incomplete.
> =A0Finished "make" Stage
>
> =A0Starting "make install" Stage
> make: Warning: File `Makefile' has modification time 7.7 s in the future
> Files found in blib/arch: installing files in blib/lib into architecture
> dependent library tree
> Writing
> /vob/9200/software/common/debugshell/_Inline/lib/auto/raid2_f8ac/.packlis=
t
> make: warning: =A0Clock skew detected. =A0Your build may be incomplete.
> =A0Finished "make install" Stage
>
> =A0Starting Cleaning Up Stage
> =A0Finished Cleaning Up Stage
>
> Finished Build Compile Stage
>
> RAiD [DbgSh] <144> DbgShellProcessUserInput (1,1,1)
> /usr/local/bin/perl: symbol lookup error:
> /vob/9200/software/common/debugshell/_Inline/lib/auto/raid2_f8ac/raid2_f8=
ac.so:
> undefined symbol: DbgShellProcessUserInput
> bash-3.2$ pwd
> /vob/9200/software/common/debugshell
> bash-3.2$ nm libDbgSh.a | grep DbgShellProcessUserInput
> 000000000000074c T DbgShellProcessUserInput
> bash-3.2$
>
> As you can see DbgShellProcessUserInput is indeed defined in libDbgSh.a y=
et
> when I attempt to call it I get the symbol lookup failure.
>
> The problem seem to have something to do with the additional libraries as=
 if
> they are not included then I don't have a problem. But I need to have tho=
se
> other libraries. How do I fix this?
>
> TIA.
> --
> Andrew DeFaria <http://defaria.com>
> Everybody repeat after me ...We are all individuals.
>



--=20
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
Patrick LeBoutillier
Rosem=E8re, Qu=E9bec, Canada
0
patrick
5/28/2011 7:15:39 PM
Reply:

Similar Artilces:

symbol lookup error
I've installed a software named "COOT" under Opensuse11.1, but it alarmed when it started up each time.The error informations are following: INFO:: backup file coot-backup/_home_albert_Documents_bjdata_2_p41212_2_cns_1_bindividual.pdb_Tue_Feb_10_19:22:35_2009_modification_0.pdb.gz sh: symbol lookup error: /opt/CCP4/CCP4-Packages/Coot-0.4.1/lib/libreadline.so.5: undefined symbol: BC coot-exe: "/opt/CCP4/CCP4-Packages/Coot-0.4.1/bin/coot-real" coot-version: /opt/CCP4/CCP4-Packages/Coot-0.4.1/bin/coot-real /opt/CCP4/CCP4-Packages/Coot-0.4.1/bin/coot-real: ...

Cannot build symbol table
There have been a few similar posts, but this seems, to me, to be altogether different since this error is affecting my system quite adversely. Many important functions fail after an update from the openSuSE repositories (3rd time in as many days) and I have to reinstall the system from scratch. This most recent time, I disabled all experimental repos, in an attempt to prevent this from occurring again, but it happened nonetheless. The main things that I have noticed are failing: alsa and networkmanager (oddly I can still use ifup). This, which I've read about for other i...

Problem symbol lookup error
Hello everyone I try to lauch a program : PBAPro but when i got an error : symbol lookup error: /opt/PBApro-2.11.0/libppbase.so.2: undefined symbol: _ZN11QTreeWidget17setSelectionModelEP19QItemSelect ionModel I search on the web but i didn't find the answer. Can you help me ? Thanks ps i run an ldd pbapro > linux-a3dm:/opt/PBApro-2.11.0 # ldd pbapro > linux-gate.so.1 => (0xffffe000) > libppbase.so.2 => /opt/PBApro-2.11.0/libppbase.so.2 (0xb7869000) > libQtGui.so.4 => /usr/lib/libQtGui.so.4 (0xb6f7f000) > libfreetype.so.6 => /usr/lib/libfreet...

pidgin: symbol lookup error
Pidgin won't start for me any more. Upon execution from the command line, this is the output: pidgin: symbol lookup error: /usr/lib/python2.6/site-packages/gst-0.10/gst/interfaces.so: undefined symbol: gst_stream_volume_format_get_type I've run sudo /sbin/ldconfig, but it didn't help. I've also reinstalled pidgin and libpurple. Is there anything else that will help? -- ArcticVanguard ------------------------------------------------------------------------ Hello ArcticVanguard and welcome to the community!:) I don't want to be rude but there...

[wxperl-users] Symbol Lookup Error
This is a multi-part message in MIME format. ------=_NextPart_000_0013_01C55FF7.B02A4C10 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi, just compiled wxPerl 0.21 under SuSe Linux 9.2 with gtk2. When I try to = start my programm I get : perl: symbol lookup error: /usr/local/lib/libwx_gtk2u-2.4.so: undefined = symbol: _gtk_accel_group_attach Did I do something wrong ? Thanks, Andre ------=_NextPart_000_0013_01C55FF7.B02A4C10 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding...

Symbol lookup errors after updating libkdecore4
After updating libkdecore4 to version 4.5.1-297.7 from repository 'Index of /repositories/KDE:/Distro:/Factory/openSUSE_11.3' (http://tinyurl.com/3azpfwj), a lot of applications fail to start or crash shortly afterwards (Firefox, Thunderbird, Chrome). Especially kdm does not start, and startx with environment variable WINDOWMANAGER set to /usr/bin/startkde (the default value on my openSUSE 11.3) fails with: /usr/bin/kde4-config: symbol lookup error: /usr/lib/libkdecore.so.5: undefined symbol: _ZN9QListData11detach_growEPii /usr/bin/kde4-migrate: symbol lookup error: /usr/b...

Firefox does not start
Hi there! I recently updated via DVD: 11.1 &#8594; 11.2 Since that firefox won't start. When started in console, I get: Code: -------------------- /usr/lib64/firefox/firefox: symbol lookup error: /usr/lib64/libgdk-x11-2.0.so.0: undefined symbol: XRRGetScreenResourcesCurrent -------------------- The same with "cheese" by the way (but not too important for me): Code: -------------------- cheese: symbol lookup error: /usr/lib64/libgdk-x11-2.0.so.0: undefined symbol: XRRGetScreenResourcesCurrent -------------------- I tried to rei...

Re:[wxperl-users] Symbol Lookup Error
Hello, > just compiled wxPerl 0.21 under SuSe Linux 9.2 with gtk2. W= hen I try to start my programm I get : > > perl: symbol lookup error:= /usr/local/lib/libwx_gtk2u-2.4.so: undefined symbol: _gtk_accel_group_a= ttach > > Did I do something wrong ? From a quick Google search i= t looks like a bug in wxGTK 2.4.2. Could you try with wxGTK 2.6.0 (the n= ew stable release)? Regards Mattia =0A=0A=0A=0A_____________________= _______________________________________=0A6X velocizzare la tua navigazio= ne a 56k? 6X Web Accelerator di Libero!=0AScaricalo s...

RE: [wxperl-users] Symbol Lookup Error
This is a multi-part message in MIME format. ------_=_NextPart_001_01C56065.C06CE4D4 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi Andre, it's a bug with wxWidgets-2.4. the following patch fix it: =20 --- orig/wxWindows-2.4.2/src/gtk/menu.cpp 2003-09-20 12:24:30.000000000 +0200 +++ wxWindows-2.4.2/src/gtk/menu.cpp 2004-12-16 11:53:03.299421800 +0100 @@ -30,7 +30,7 @@ #ifdef __WXGTK20__ #include <glib-object.h> =20 - #define gtk_accel_group_attach(g, o) _gtk_accel_group_attach((g), (o)) + #defin...

Error msg after installing new DBD::Oracle: symbol OCIInitialize: referenced symbol not found
We are installing this on Solaris 2.6 Sun box. Both testing the install and running one of our scripts yields: ld.so.1: perl: fatal: relocation error: file /usr/local/perl/perl5.8.0/lib/perl5/site_perl/5.8.0/sun4-solaris/auto/DBD/Or acle/Oracle.so: symbol OCIInitialize: referenced symbol not found We did set the LD_LIBRARY_PATH ENV variable. I built and linked the libraries with Oracle 8.1.7 and maybe that is the problem. Anyone has a suggestion as to what might be wrong? thanks, ----------------- Harry Duin (pronounced as hari [as in Hari Krishna] dine [as in eat out]) ...

Kmess symbol lookup error with Kde 4.5.2
Hello all With Kde 4.5.2 Kmess wont start any more with the following error message:( kmess: symbol lookup error: kmess: undefined symbol: _ZN9QListData11detach_growEPii Is this a bug? or a bug in kde 4.5.2 as 4.5.1 factory was working allright Is there a bypass for this ?? -- susegebr ------------------------------------------------------------------------ How did you update? Please also post output of Code: -------------------- zypper lr -d -------------------- -- - Athlon X2 6.0 GHz, 8 GB, 30 GB SSD, 1.5 TB, 9...

PDB Symbols/symbol server
Does it exists server where are symbols from official Mozilla builds? I'm interested in Thunderbird 2.0.0.18 win32 symbols. PM ...

Read file symbol by symbol?
Friends, how read a file one by one symbols, not a whole string once at time? Thanks. -- -----------! My blessing! Ramis. ! -----------! http://www.samtan.fromru.com mailto: samtan@fromru.com Here is one script I used to inspect files use strict; my $fn; print"Enter the name of a file you want to examine "; while (<>) { $fn = $_; last if $fn; } print "Opening $fn\n"; open TF, "$fn" or die "Cannot open $fn:$!\n"; my @ov; my $ov; while (<TF>) { @ov = unpack('U*',$_); print; print"\t\t"...

ld.so.1: output_ubs_prepf: fatal: relocation error: file /sbcimp/run/pkgs/WMI/utopia/calc/ubs/sod/bin/output_ubs_prepf: symbol cs_ctx_global: referenced symbol not found
Any clue ? It looks like LD_LIBRARY_PATH is OK Regards, Eugene On Tue, 11 Aug 2009 12:35:47 -0700, Eugene wrote: > Any clue ? > It looks like LD_LIBRARY_PATH is OK If you're on solaris or linux, try ldd output_ubs_prepf to see which libraries are linked into the binary. Michael Hello, Is this an ESQL/C or ESQL/Cobol program? Regards, Neal > core> ldd -d output_ubs_prepf > libsybdb.so => /opt/sybase/OCS-12_5/lib/libsybdb.so > libct.so => /opt/sybase/OCS-12_5/lib/libct.so > libc.so.1 => /lib/l...

symbol lookup error for DBD-Oracle 1.19 and Oracle instantclient 10.2.0.3
Hello all, I'm trying to get an Oracle client working under Linux and I'm having problems running a test script. Here's the error: [koczan@ator] lab $ perl oracle.pl perl: symbol lookup error: /s/oracle/perl5/lib/site_perl/5.8.6/i686-linux-64int/auto/DBD/Oracle/Oracle.so: undefined symbol: OCINlsEnvironmentVariableGet And here are details: I'm using Oracle's instantclient 10.2.0.3 and stock DBD-Oracle 1.19 (except for I downloaded Makefile-instantclient.PL and oracle-instantclient-config from http://jeanchristophe.duber.free.fr/dbd_oracle_instantclient_l...

Web resources about - Symbol lookup error - undefined symbol - perl.inline

Undefined - Wikipedia, the free encyclopedia
Text is available under the Creative Commons Attribution-ShareAlike License ;additional terms may apply. By using this site, you agree to the ...

Mike Duffy trial: Senate's ex-law clerk says senator residence rules undefined
A former Senate law clerk testifying at the Mike Duffy trial in Ottawa admitted that the rules governing a senator's residency do not include ...

Washington's Olympic bid moves forward with extent of Maryland role undefined
... offered his preliminary backTing, but the extent of Maryland's role &#8211; and potential financial commitment &#8211; remained largely undefined. ...

Undefined discussion subject.
Undefined discussion subject. Read the full story here

undefined - Daily News & Analysis
Toggle navigation analysis DNA Edit Blogs Standpoint news India World Mumbai Delhi Bangalore Pune Ahmedabad sport money sci/tech dna pix entertainment ...

Why Language Designers Tolerate Undefined Behavior
Here is my first example of the tension between theoretical and socially inspired solutions to technical problems in programming-language design. ...

Mexico's Energy Battlegrounds Come Into Focus, But Rules Of Engagement Remain Undefined
By Dwight Dyer International investors have been abuzz about the prospect of reforms to Mexico’s energy industry ever since that country’s Congress ...

FOSS Patents: undefined
Florian Mueller is an award-winning intellectual property activist-turned-analyst with 25 years of software industry expertise spanning across ...

Microsoft’s Xbox guru Don Mattrick leaves for key, but undefined role at Zynga
With the Xbox One coming to stores sometime this holiday season, it looks like Microsoft will have to find a new leader to oversee the launch. ...


Resources last updated: 1/18/2016 4:33:35 PM