Can't gethostbyname(xxx.xxx.xxx.x:81): Operation not permitt

Forum for questions and support relating to the 1.25.x releases only.
Locked
jea
Posts: 3
Joined: Tue Mar 12, 2013 5:39 pm

Can't gethostbyname(xxx.xxx.xxx.x:81): Operation not permitt

Post by jea »

zm-MP-1.25.0-43.1 64bit from liquid-co.de on new install of Suse 12.3 x86_64. Installed per instructions on
http://www.zoneminder.com/wiki/index.ph ... s_for_SuSE
Hardware; quad core2 2.7G 4GB memory. SHMMAX set to 2GB.

Actual error message in /var/log/messages:

zmc_m1[10573]: FAT [Can't gethostbyname(192.168.2.234:81): Operation not permitted]. The IP address is a cam which is running, pingable, and can be viewed in a browser.

zoneminder has run on suse 12.2 but stopped with the same message after some suse system update. Decided to try 12.3 and got the same error.

Any ideas??
TIA
jea
Posts: 3
Joined: Tue Mar 12, 2013 5:39 pm

Re: Can't gethostbyname(xxx.xxx.xxx.x:81): Operation not per

Post by jea »

More info:
man 3 gethostbyname says:

POSIX.1-2001 specifies gethostbyname(), gethostbyaddr(), sethostent(), endhostent(), gethostent(), and h_errno; gethostbyname(),
gethostbyaddr(), and h_errno are marked obsolescent in that standard. POSIX.1-2008 removes the specifications of gethostbyname(),
gethostbyaddr(), and h_errno, recommending the use of getaddrinfo(3) and getnameinfo(3) instead.

SO it's an obsolete function to start with.

Any thoughts?
jea
Posts: 3
Joined: Tue Mar 12, 2013 5:39 pm

Solved: Can't gethostbyname(xxx.xxx.xxx.x:81): Operation not

Post by jea »

The solution is right in the Subject line: do not specify the port (81, in this case) in the Address field. Specify it in the "Port" field. The fields of course, refer to the "Source" screen of the monitor configurator.

Now back to the next problem.
Locked