Shweta Bhupendra Shah wrote:
ERROR "gethostbyname(comp1) failed, errno = 25" at line 187 in file my_hostname.cpp
Check /etc/hosts. Fedora puts "comp1" on 127.0.0.1 line, what you need is 127.0.0.1 localhost.localdomain localhost 1.2.3.4 comp1.dom.ain comp1 Use vi to edit the file (you need to be root).Which version of Fedora is it? -- there are other broken bits in different Fedora releases.
Dima