The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
Google UNIX.COM


UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert.

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 02:01 PM
ld.so.1: relocation error sanjasam High Level Programming 1 09-10-2007 02:23 AM
symbol referencing error suhasini High Level Programming 1 04-03-2006 03:43 AM
relocation error abhi1826 UNIX for Advanced & Expert Users 1 01-23-2006 08:36 AM
referenced symbol not found, how to solve? champion UNIX for Advanced & Expert Users 4 01-08-2003 06:40 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-06-2008
Registered User
 

Join Date: May 2008
Location: Tampa FL/Charlotte NC
Posts: 2
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
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 08:46 AM.
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 05-06-2008
...@...
 

Join Date: Feb 2004
Location: NM
Posts: 3,289
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
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.
Reply With Quote
  #3 (permalink)  
Old 05-06-2008
Registered User
 

Join Date: May 2008
Location: Tampa FL/Charlotte NC
Posts: 2
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
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.
Reply With Quote
Google UNIX.COM
Reply

Thread Tools
Display Modes


The 50 most popular UNIX and Linux searches.
Google Search Cloud for The UNIX and Linux Forums
421 service not available, remote server has closed connection ^m automate ftp autosys awk trim bash eval bash exec bash for loop command copy/move folder in unix couldn't set locale correctly curses.h cut command in unix export command in unix find grep find mtime find null character in a unix file grep multiple lines grep or grep recursive hp-ux ifconfig inaddr_any inappropriate ioctl for device lynx javascript mailx attachment mget mtime ping port remove first character from string in k shell replace space by comma , perl script scp recursive segmentation fault(coredump) sftp script snoop unix stale nfs file handle syn_sent tar exclude tar extract to folder test: argument expected unix unix .profile unix forum unix forums unix internals unix interview questions unix mtime unix simulator unix.com vi substitute vi+substitute+end+of+line+character while loop within while loop shell script


All times are GMT -7. The time now is 04:08 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0

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 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101