[openbeosnetteam] Re: Progress on resolving host names in route/ping

> Hi, I'm having some issues in my efforts to debug.  I had reported
> earlier the segment violations that one gets when attempting to
> provide a hostname as an argument to route or ping (ie ping myhost). 
> It will take the hostname if it is the first one listed in the
> /etc/hosts file, but no other host names.
> 
> I have been looking through our libnet source trying to find where
> this is happening.  I have been looking in compat.c and
> gethostnamadr.c.  I have made a few changes to these two, but the
> changes were not taking effect upon rebuild.  I found that my builds
> are using the libnet.so file from BeOS, and not our libnet.so file. 

That should be not be an issue, as public API are exported by both.

> That would of course explain why my changes werent doing anything!

Sure :-)
 
> I think earlier there was an exhange about build build problems the
> Phillipe was going to fix...is this related?  

No, it's not.
Your "route" and "ping" are just runtime linked against BeOS R5 
libnet.so, 
which should not be the case.

> Does the latest CVS
> build the network kit with our library files?  

No, there are linked against R5 libnet.so.
As our own libnet.so should be binry compatible with R5 one, it's not 
the *real* issue I think.

> Alternatively, how do
> I rebuild our libraries and test ping and route against those?

To build, just run:
$ cd /path/to/your/local/openbeos/tree/current
$ jam libnet.so libnetapi.so

Then, check that your distro/x86.R1/beos/system/lib/libnet.so is copied
/symlinked into your ~/config/lib.
Last chance, create a "lib" folder under distro/x86.R1/beos/bin, and 
copy there libnet.so.
Rerun from there distro/x86.R1/beos/bin/ping (and/or route), this time 
*our* libnet.so implementation should be used.
 
-Philippe

--
Fortune Cookie Says:

"The society which scorns excellence in plumbing as a humble activity
and tolerates shoddiness in philosophy because it is an exalted
activity will have neither good plumbing nor good philosophy ...
neither its pipes nor its theories will hold water."


Other related posts: