[openbeosnetteam] Re: KDL visits

On 2002-04-30 at 13:08:46 [-0500], openbeosnetteam@xxxxxxxxxxxxx wrote:
> So, try this one...
> 
> build the stack.
> start the stack.
> run the apps/ping ping with a hostname and see if you also end up in KDL.
> 
> If not, try adding #define DEBUG to libnet/res_send.c just above the #ifndef
> DEBUG line and try again. I can reproduce this 100% of the time and it looks
> a little to me like we're calling soclose twice on the same socket.

I never got it to crash, but then again, I couldn't get it to recompile after 
I added #define DEBUG in the appropriate place.

$ ../apps/ping/ping www.cisco.com
select() timed out!
select() timed out!
select() timed out!   


Edited libnet/res_send.c to include "#define DEBUG" in appropriate place:

$ make && make installetc
cc -nostart -nostdlib -lroot -Wl,-soname=libnet.so -o libnet.so socket.o 
select.o poll.o compat.o arc4random.o base64.o ethers.o inet_addr.o 
inet_ntoa.o inet_neta.o inet_netof.o inet_lnaof.o inet_network.o inet_pton.o 
inet_ntop.o gethostnamadr.o getnetbyaddr.o getnetbyname.o getnetnamadr.o 
getprotoname.o getnetent.o getproto.o getprotoent.o getservent.o 
getservbyname.o getservbyport.o linkaddr.o res_comp.o res_data.o res_debug.o 
res_init.o res_mkquery.o res_query.o res_random.o res_send.o sethostent.o
res_send.o: In function `Aerror':
/boot/home/Desktop/OpenBeOS/Apr30/net_kit/source/libnet/res_send.c:129: 
undefined reference to `getnameinfo'
res_send.o: In function `__res_send':
/boot/home/Desktop/OpenBeOS/Apr30/net_kit/source/libnet/res_send.c:415: 
undefined reference to `getnameinfo'
collect2: ld returned 1 exit status
make: *** [libnet.so] Error 1
$ pwd
/boot/home/Desktop/OpenBeOS/Apr30/net_kit/source/libnet
$                 


Other related posts: