relocation error: yyparse referenced symbol not found


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users relocation error: yyparse referenced symbol not found
# 1  
Old 05-06-2008
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 12:46 PM..
# 2  
Old 05-06-2008
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  
Old 05-06-2008
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.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

/usr/lib/passwdutil.so.1: symbol __nsl_fgetspent_r: referenced symbol not found

deleteing post (0 Replies)
Discussion started by: dshakey
0 Replies

2. UNIX for Advanced & Expert Users

"relocation error" when installing app

I'm trying to install Urchin5 log analyzer and I get the following message: Sadly, I'm not all that good at lib tracing and troubleshooting, but I did attempt a few things. First, since this is a VPS, I can compare to the baseline fileset, and other servers on which this works. I used MD5 as a... (3 Replies)
Discussion started by: treesloth
3 Replies

3. UNIX for Advanced & Expert Users

kernel debug:"Symbol file not found for *.ko"

When I debug vmlinux with gdb, after it connect to the target, I got below output: usbcore.ko: No such file or directory. Error while mapping shared library sections: ohci_hcd.ko: No such file or directory. Symbol file not found for usbcore.ko Symbol file not found for ohci_hcd.ko Symbol... (2 Replies)
Discussion started by: yanglei_fage
2 Replies

4. Solaris

fatal: relocation error: R_SPARC_WDISP22

Hello, I wonder if anyone has a clue what could be wrong. I get the following error on SUN Netra-T4 server when some applications try to start (e.g. slpd) also even if I try commands such as "jar" I get the same error: ld.so.1: /usr/java1.2/jre/bin/sparc/native_threads/java: fatal:... (3 Replies)
Discussion started by: Juha
3 Replies

5. Programming

Error: Undefined Symbol ..... First referenced in file......

Hi, I am working with Solaris 5.9 and I am newbie in Socket programming and I stated working with socket programming and I copyed a simple client & server program from a website which I am attaching with this and when I am compiling these files.I am getting the error-- Please Help me to... (1 Reply)
Discussion started by: smartgupta
1 Replies

6. Programming

Symbol referencing error

Hey everyone, I can't figure out this symbol referencing error after looking at it for the longest time, and I figured some fresh eyes might be able to point something out I am overlooking. Undefined first referenced symbol in... (1 Reply)
Discussion started by: fromatz
1 Replies

7. Programming

ld.so.1: relocation error

Hi Iam getting the following error... ld.so.1: xxxx: fatal: relocation error: file /home/costar4/bin/xxxx: symbol __1cH__rwstdUInterlockedIncrement6Fpl_l_: referenced symbol not found. Can anyone tell me anything in this ? Thanks, Sanja (1 Reply)
Discussion started by: sanjasam
1 Replies

8. Programming

symbol referencing error

Undefined first referenced symbol in file std::basic_ostream<char, std::char_traits<char> >::operator<<(int)/var/tmp//ccTR std::cerr /var/tmp//ccTRcjui.o std::cout /var/tmp//ccTRcjui.o... (1 Reply)
Discussion started by: suhasini
1 Replies

9. UNIX for Advanced & Expert Users

relocation error

when running make command i'm getting the following error: make:relocation error:make:symbol_sprintf_chk,version GLIBC_2.3.4 not defined in file libc.so.6 with link time reference... plz tell me what to do abt this... (1 Reply)
Discussion started by: abhi1826
1 Replies

10. UNIX for Advanced & Expert Users

referenced symbol not found, how to solve?

while trying to execute an application, i encountered thefollowing error: ld.so.1: myApplication : fatal: relocation error: file /opt/oracle/oradb/lib/libHotDB50.so: symbol sqlcxt: referenced symbol not found my questions : 1) what is relocation error? 2) why this error occur? 3) how... (4 Replies)
Discussion started by: champion
4 Replies
Login or Register to Ask a Question