The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
.
google unix.com



UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Symbol referencing error fromatz High Level Programming 1 03-17-2008 06:01 PM
ld.so.1: relocation error sanjasam High Level Programming 1 09-10-2007 05:23 AM
symbol referencing error suhasini High Level Programming 1 04-03-2006 06:43 AM
relocation error abhi1826 UNIX for Advanced & Expert Users 1 01-23-2006 12:36 PM
referenced symbol not found, how to solve? champion UNIX for Advanced & Expert Users 4 01-08-2003 10:40 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 05-06-2008
agilgeous agilgeous is offline
Registered User
  
 

Join Date: May 2008
Location: Tampa FL/Charlotte NC
Posts: 2
Question relocation error: yyparse referenced symbol not found

This is my set up:

LD_LIBRARY_PATH=/apps/rogue_wave_sol7/workspaces/workshop6_u1/4d/lib:/apps/fu/section20/vendorLib/EMS/4.2/lib:/home/a487891/cppunit/lib:/usr/openwin/lib:/usr/lib

ldd -d TestDatalinkTradeRouter
libintl.so => /usr/lib/libintl.so
libw.so.1 => /usr/lib/libw.so.1
libnsl.so.1 => /usr/lib/libnsl.so.1
libdbt4d.so => /apps/rogue_wave_sol7/workspaces/workshop6_u1/4d/lib/libdbt4d.so
libcrypto.so => /apps/fu/section20/vendorLib/EMS/4.2/lib/libcrypto.so
liblber.so => /apps/fu/section20/vendorLib/EMS/4.2/lib/liblber.so
libldap.so => /apps/fu/section20/vendorLib/EMS/4.2/lib/libldap.so
libssl.so => /apps/fu/section20/vendorLib/EMS/4.2/lib/libssl.so
libtibems.so => /apps/fu/section20/vendorLib/EMS/4.2/lib/libtibems.so
libtibemslookup.so => /apps/fu/section20/vendorLib/EMS/4.2/lib/libtibemslookup.so
libtibiconv.so => /apps/fu/section20/vendorLib/EMS/4.2/lib/libtibiconv.so
libtibjms.so => /apps/fu/section20/vendorLib/EMS/4.2/lib/libtibjms.so
libxml2.so => /apps/fu/section20/vendorLib/EMS/4.2/lib/libxml2.so
libz.so => /apps/fu/section20/vendorLib/EMS/4.2/lib/libz.so
libcppunit-1.12.so.0 => /home/a487891/cppunit/lib/libcppunit-1.12.so.0
libmth4d.so => /apps/rogue_wave_sol7/workspaces/workshop6_u1/4d/lib/libmth4d.so
libtls4d.so => /apps/rogue_wave_sol7/workspaces/workshop6_u1/4d/lib/libtls4d.so
liby.so.1 => /usr/lib/liby.so.1
libUil.so.3 => /usr/lib/libUil.so.3
libthread.so.1 => /usr/lib/libthread.so.1
libc.so.1 => /usr/lib/libc.so.1
libdl.so.1 => /usr/lib/libdl.so.1
libmp.so.2 => /usr/lib/libmp.so.2
libsocket.so.1 => /usr/lib/libsocket.so.1
libresolv.so.2 => /usr/lib/libresolv.so.2
libgen.so.1 => /usr/lib/libgen.so.1
libpthread.so.1 => /usr/lib/libpthread.so.1
libm.so.1 => /usr/lib/libm.so.1
libxview.so.3 => /usr/openwin/lib/libxview.so.3
libbla4d.so => /apps/rogue_wave_sol7/workspaces/workshop6_u1/4d/lib/libbla4d.so
libMrm.so.4 => /usr/lib/libMrm.so.4
libXm.so.4 => /usr/lib/libXm.so.4
libXt.so.4 => /usr/openwin/lib/libXt.so.4
libX11.so.4 => /usr/openwin/lib/libX11.so.4
libolgx.so.3 => /usr/openwin/lib/libolgx.so.3
libSM.so.6 => /usr/openwin/lib/libSM.so.6
libICE.so.6 => /usr/openwin/lib/libICE.so.6
libXext.so.0 => /usr/openwin/lib/libXext.so.0
/usr/platform/FJSV,GPUZC-M/lib/libc_psr.so.1

But still when I attempt to run my executable:

ld.so.1: TestDatalinkTradeRouter: fatal: relocation error: file /usr/lib/liby.so.1: symbol yyparse: referenced symbol not found
Killed

and the symbol is definded in libUil.so.3 => /usr/lib/libUil.so.3

[55] | 99316| 19656|FUNC |LOCL |0 |12 |yyparse

Any suggestions on how to solve this problem will be appreciated.

Last edited by agilgeous; 05-06-2008 at 11:46 AM..
  #2 (permalink)  
Old 05-06-2008
jim mcnamara jim mcnamara is offline Forum Staff  
...@...
  
 

Join Date: Feb 2004
Location: NM
Posts: 5,643
liby is yacc.

yacc produces a file y.tab.c with a function yyparse. Your app must have some lex/yacc code in it somewhere. There is no global yyparse function out there in a standard library that is exported to just any code that wants it - libUil is part of motif, and it does have a yyparse function used locally - what LOCL means. Does your code use motif?

Compilers all have yyparse functions as well, but each yyparse call is just for that one app. yyparse modules are often distibuted in a .a file rather than a shared library.

This doesn't look like something you built from scratch - there look to be vendor libraries.
IS there SDK programmer information? Or vendor support?

Just because you found a library with a yyparse symbol does not mean that much. It probably is not the one the code actually referenced.
  #3 (permalink)  
Old 05-06-2008
agilgeous agilgeous is offline
Registered User
  
 

Join Date: May 2008
Location: Tampa FL/Charlotte NC
Posts: 2
Jim,

Thanks for your response. In trying to solve my original linker problem I ended up mixing apples and oranges, so to speak.

My original problem was a linker error:

Undefined first referenced
symbol in file
main /apps/workshop6_u1/WS6U1/lib/crt1.o
ld: fatal: Symbol referencing errors. No output written to TestDatalinkTradeRouter

So I ended up pulling in liby that had a GLOB definition of main, but in turn created other problems.
Sponsored Links
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On



All times are GMT -4. The time now is 12:57 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language translation by Google.
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0