View Full Version : Error in loading shared libraries
wkozun
12-28-2003, 07:29 PM
I am trying to run netcat on my TiVo - I have downloaded the binary that was in an ExtractStream tar. When I run netcat in listening mode I get the following error:
bash-2.02# nc -l -p 8000
nc: error in loading shared libraries
: undefined symbol: getservbyport
Anyone know how to fix this? I found something on the web that deals with this but it seems to require a recompilation - can it be fixed without requiring a compiler?
Sleeper
12-29-2003, 12:52 AM
I have a version on my ISO that works fine with S2's.
NutKase
12-29-2003, 01:15 AM
I have a version on my ISO that works fine with S2's.
That's not really an answer unless everyone is expected to use your iso to get every file they need :).
Pass this info around. You can find many files at...
but the specific file you asked about is located at Sourceforge (http://tivoutils.sourceforge.net/) and you can find your specific file here (http://easynews.dl.sourceforge.net/sourceforge/tivoutils/netcat-s2.gz)
Just rename it to netcat.
NutKase
wkozun
12-29-2003, 11:10 AM
Just to clarify my TiVo is an S1 running 3.01 and it runs all other hacks fine, I just get this error with netcat.
David Bought
12-29-2003, 12:01 PM
Anyone know how to fix this? I found something on the web that deals with this but it seems to require a recompilation - can it be fixed without requiring a compiler?
Set up a damn cross compiler and quit whining. There are scripts on tivo.samba.org which do this for S1.
wkozun
12-29-2003, 12:18 PM
I'm not particularly whining, I am just wondering if I have to set up a cross-compiler or whether I have a configuration issue on my TiVos.
Setting up a compiler, or even compiling, is not something that many of us do on an everyday basis. And it is not as simple as that as I have to deal with some other library issues.
Netcat was used by ExtractStream so, presuming my issue is not unique to me but is an issue with all TiVos, anyone who ran ExtractStream would have dealt with the same error that I am getting right now.
In addition the error appears to deal with some issues that were dealt with by something called libtivohack as the libc that is included with the TiVo does not appear to have some system calls, the one that is causing me grief is "getservbyport". At least that is according to page 395 of the Keegan book.
David Bought
12-29-2003, 12:43 PM
I'm not particularly whining, I am just wondering if I have to set up a cross-compiler or whether I have a configuration issue on my TiVos.
Setting up a compiler, or even compiling, is not something that many of us do on an everyday basis. And it is not as simple as that as I have to deal with some other library issues.
Setting up a cross compiler is an essential first step in Tivo development. If you do not create software or hacks for the Tivo or contribute to our collective knowledge base, you are wasting our time here.
Netcat was used by ExtractStream so, presuming my issue is not unique to me but is an issue with all TiVos, anyone who ran ExtractStream would have dealt with the same error that I am getting right now.
In addition the error appears to deal with some issues that were dealt with by something called libtivohack as the libc that is included with the TiVo does not appear to have some system calls, the one that is causing me grief is "getservbyport". At least that is according to page 395 of the Keegan book.
Try setting LD_PRELOAD to the path to libtivohack.so.
P.S. getservbyport is not a system call. What is the correct term?
wkozun
12-29-2003, 01:13 PM
Setting up a cross compiler is an essential first step in Tivo development. If you do not create software or hacks for the Tivo or contribute to our collective knowledge base, you are wasting our time here.
Oh, I see. So 99.9% of the users of this forum are wasting our time here. Everyone other than jdiner, rc3105 and a few others should just F*&$ OFF. This is not the TiVo development forum, that is on a different discussion board if I remember correctly.
I thought this was a forum for sharing information and I am just asking for information.
I may not be an expert, but I do know that a cross compiler is NOT required for a lot of TiVo development, such as writing programs in TCL - as in writing TiVo Web or TCS modules.
I am playing around with a few things that I hopefully can share with the TiVo community in the future. I have written some TCL programs that will list all of the stations that exist in a TiVo. I have also set down the process for using a TiVo in Canada with two sources, both analog and digital cable that uses embeem's setup.tcl script. This may not be useful for those in the US, but for those of us who can't subscribe to TiVo these could be considered very useful.
Thanks for the suggestion re: LD_PRELOAD
I didn't know that getservbyport is not a system call - I got that information from the Jeff Keegan book as that is how he describes it. I do not know what the right name is - how about Network Service Database Function.
And I did try searching the DD forums as well as Google on this one.
David Bought
12-29-2003, 01:33 PM
Oh, I see. So 99.9% of the users of this forum are wasting our time here.
Agreed, a large majority of users here are wasting our precious resources, as they take our work and give nothing back.
I didn't know that getservbyport is not a system call - I got that information from the Jeff Keegan book as that is how he describes it. I do not know what the right name is - how about Network Service Database Function.
A system call by definition is a call into the kernel. getservbyport is a library call.
As a fellow developer I would encourage you not to act so defensive. We are on the same side here.
tiguere
12-29-2003, 01:51 PM
As a fellow developer I would encourage you not to act so defensive. We are on the same side here.
:D :D :D :D
vBulletin® v3.7.3, Copyright ©2000-2008, Jelsoft Enterprises Ltd.