struct hostent *gethostent()

2007-12-25 8:03:00

Ok, here it is:

#I have a simple little program here, that uses this function.

#Does anybody know where sun put it? Linking seem to blow up.

I got responses from:

From: Gustavo Vegas <gustavo@ece.concordia.CA>

From: Casper Dik <casper@fwi.uva.nl>

From: msolda@lamont.ldgo.columbia.edu (m solda)

From: phil@dgbt.doc.ca (Phil Blanchfield)

From: guy@auspex.com (Guy Harris)

From: Mitchum DSouza <mitchum.dsouza@mrc-apu.cam.ac.uk>

From: Dieter Muller <dworkin@rootgroup.com>

From: luis@ifi.unicamp.br (Luis Henrique Guilherme Rosalino - esp)

From: "Brian H. Powell" <brian@natinst.com>

From: Roger Hale <roger@sst.ll.mit.edu>

From: unisql!wrat@cs.utexas.edu (Louis Marco)

From: ups!kalli!kevin@fourx.Aus.Sun.COM (Kevin Sheehan {Consulting Poster Child})

From: Christian.Peter@uluru.Aus.Sun.COM (Christian Peter - SUN Sydney - Software Support)

Most were correct.

The answer is simple: I had installed the DNS stuff, but did not

know that this removed the gethostent function. A simple little

fix fixed this.

--Toby.

PS: My fix was a simple little routine, added to libc, that

     printed out: "FIX ME TO USE DNS!", neat, eh?

-------------------------------------------------------------

Tobias Weingartner | PGP2.1 Public Key available at |

 +41'41'33'25'40 | 'finger weingart@tau.inf.ethz.ch' |

-------------------------------------------------------------

%SYSTEM-F-ANARCHISM, the operating system has been overthrown

Comments

Got something to say?

You must be logged in to post a comment.