To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.rcx.legosOpen lugnet.robotics.rcx.legos in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / RCX / legOS / 820
819  |  821
Subject: 
Re: LNP Example please
Newsgroups: 
lugnet.robotics.rcx.legos
Date: 
Thu, 10 Feb 2000 11:04:41 GMT
Viewed: 
2821 times
  
Just updated my libc version (I love apt-get on debian linux... woohoo... it
took about 30 seconds to update about 6 core applications on my system with a
single simple command !!)

Ok. it now complies without a problem and lnp also appears to run ok. However,
I can not get the demo lnptest to run. I get

./lnptest: error in loading shared libraries: liblnp.so.0: cannot open shared
object file: No such file or directory

I checked the makefile and it points to ../liblnp which is where the complied
library is.

Any ideas ?

In lugnet.robotics.rcx.legos, Martin Cornelius writes:
Michael Marklew wrote:

Just tell me if I am been lazy but I can't find the argp.h file anywhere.


you are probably using an older version of glibc, which doesn't have the
argp stuff. This has been reported several times, and i begin to think
it was a bad decision to use this interface instead of getopt().
However, it's so easy to use...

If you can't switch to a recent glibc version, the 2 options are:

1 - comment out the argument parsing and hard-code the options you need
at the very beginning of main().

// set options defaults
option_values.highspeed = 0;
...
...
option_values.lflag[LNPD_LOG_INFO] = 1;

For having run lnpd in foreground with minimal logging to stderr, you
could change:

option_values.nodaemon = 1;
option_values.logfile = "-";
option_values.dologging = 1;

and leave the other settings (do NOT delete them).

2 - rewrite the argument parsing using getopt() or whatever you like.

--Martin



Message has 1 Reply:
  Re: LNP Example please
 
(...) Well, it's mentioned in the README ;-), but obviously not detailed enough. The problem is: the dynamic loader doesn't find the library you linked against. The dynamic loader is a program that is started whenever you execute a dynamically (...) (25 years ago, 10-Feb-00, to lugnet.robotics.rcx.legos)

Message is in Reply To:
  Re: LNP Example please
 
(...) you are probably using an older version of glibc, which doesn't have the argp stuff. This has been reported several times, and i begin to think it was a bad decision to use this interface instead of getopt(). However, it's so easy to use... If (...) (25 years ago, 9-Feb-00, to lugnet.robotics.rcx.legos)

21 Messages in This Thread:

Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact

This Message and its Replies on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR