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 / 818
817  |  819
Subject: 
Re: LNP Example please
Newsgroups: 
lugnet.robotics.rcx.legos
Date: 
Wed, 9 Feb 2000 13:30:30 GMT
Viewed: 
2777 times
  
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
 
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 (...) (25 years ago, 10-Feb-00, to lugnet.robotics.rcx.legos)

Message is in Reply To:
  Re: LNP Example please
 
Just tell me if I am been lazy but I can't find the argp.h file anywhere. abacus:~/lego/lnpd+liblnp$ make depend for i in lnpd liblnp applications ; do make -C $i depend || exit -1 ; done make[1]: Entering directory `/home/mike/lego/lnp...blnp/lnpd' (...) (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