LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-16-2016, 02:46 PM   #1
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,555

Rep: Reputation: 177Reputation: 177
apcupsd configure: error: gethostbyname_r is required


I've downloaded the apcupsd 3.14.13 tarfile. I've built and installed it on 3 of 4 Slackware computers, 3 of which are 14.1 and the 4th is 13.37.0. (the install is great, btw. It knows this is Slackware and creates a correct /etc/rc.d/rc.apcupsd! Not many packages care about Slackware anymore)

2 of the 14.1 systems are both 64bit and I thought were basically identical. I've kept them both up-to-date with slackpkg. One of these installed without problem. The other, at the ./configure step, give me:

configure: error: gethostbyname_r is required

I don't know how all the other hosts managed to get this function and the failed host did not, but can someone tell me how to get gethostbyname_r?

Possibly I can [re]install the package that is suppose to contain it?

THX
 
Old 02-16-2016, 06:09 PM   #2
glorsplitz
Senior Member
 
Registered: Dec 2002
Distribution: slackware!
Posts: 1,308

Rep: Reputation: 368Reputation: 368Reputation: 368Reputation: 368
Hi, I've been using various versions of apcupsd for years, not run into your problem.

You installed from 3.14.13 tarfile? Did you try the slackbuild?

I know I've tried to install from source but found slackbuilds work better.
 
Old 02-17-2016, 12:39 AM   #3
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,555

Original Poster
Rep: Reputation: 177Reputation: 177
[QUOTE=glorsplitz;5501317]Hi, I've been using various versions of apcupsd for years, not run into your problem.

You installed from 3.14.13 tarfile? Did you try the slackbuild?

That didn't work either: "checking for libwrap... configure: error: *** libwrap missing"

I think I'm missing some packages. Any idea which package would have gethostbyname_r? I'll try searching again ...
 
Old 02-17-2016, 01:07 AM   #4
gmgf
Senior Member
 
Registered: Jun 2012
Location: Bergerac, France
Distribution: Slackware
Posts: 2,212

Rep: Reputation: 998Reputation: 998Reputation: 998Reputation: 998Reputation: 998Reputation: 998Reputation: 998Reputation: 998
libwrap is part of 'tcp_wrappers' package.
 
Old 02-17-2016, 01:46 AM   #5
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,555

Original Poster
Rep: Reputation: 177Reputation: 177
I installed the glibc packages, but that didn't help. Still missing gethostbyname_r. Will try tcp_wrappers. No idea on package for gethostbyname_r?

I've copied the apcupsd files from the working host and they seem to run OK. Will experiment more tomorrow (late here).
 
Old 02-17-2016, 02:09 PM   #6
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
Have a look in the config.log, as it will probably give you more info where it's trying to find that information. Looking at http://packages.slackware.com, it seems the ruby package contains the following files, which are the only matches to the filename gethostbyname, but it's possible that it is something declared in a file, and looking at the config.log could help find that file.

Code:
/usr/share/ri/2.2.0/system/Socket/gethostbyname-c.ri
/usr/share/ri/2.2.0/system/TCPSocket/gethostbyname-c.ri
 
Old 02-18-2016, 12:48 AM   #7
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,555

Original Poster
Rep: Reputation: 177Reputation: 177
Well, I'm missing something. When I installed the glibc packages it installed several 4 packages and failed (MD5SUM) to install glibc-zoneinfo. Basically, all glibc's were missing. In comparing installed packages on the hosts that work with the one that does not, the working hosts have 1163 and 1177 packages installed, respectively. The 'bad' host has only 127 packages installed. Clearly, the bad host has "issues".

I'm going to try to clean up the installed packages, then re-try the apcupsd thing.

Meanwhile, how about some actual apcupsd advice ...

Since glorsplitz has "been using various versions of apcupsd for years", and you others likely also have experience, perhaps you can help me out while I work on the package problem. I have 2 hosts connected to the same UPS. Of course, I only want one to be the master. As I understand the configs, I can use netort for the slave to get "orders" from the master. Have you done this? Do you have example configs for master/slave for this arrangement? I'm kind of confused between the USPTYE, DEVICE net:ip, NETSERVER, NISP and NISPORT directives.
 
Old 02-18-2016, 06:51 PM   #8
glorsplitz
Senior Member
 
Registered: Dec 2002
Distribution: slackware!
Posts: 1,308

Rep: Reputation: 368Reputation: 368Reputation: 368Reputation: 368
mfoley

Have thought about master/slave setup but I have two ups to spread out the load, one monitored by a server and the other monitored by my desktop.

Let us know if you figure it out.
 
Old 02-18-2016, 10:03 PM   #9
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,555

Original Poster
Rep: Reputation: 177Reputation: 177
OK, will do. I'll also repost this elsewhere.

btw - never could get the builds to work on the one computer. I copies the scripts, executables, configs and man pages from the "good" computer and all seems to run well.
 
Old 02-19-2016, 07:50 PM   #10
slacker1337
Member
 
Registered: Jun 2012
Location: Connecticut, USA
Distribution: Slackware
Posts: 148

Rep: Reputation: 40
I don't have the experience to help you with your glibc issue, but couldn't you just installpkg the slackbuild on the computer that won't let it compile? It won't solve your compilation problem, but it will get the package installed for you.
 
Old 02-20-2016, 12:03 AM   #11
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,555

Original Poster
Rep: Reputation: 177Reputation: 177
Well, the slackbuild package I retrieved (linked by glorsplitz) did not have binaries. It fetched the source and tried to compile. It therefore failed. That's were I got the "libwrap missing" error.

Probably doesn't matter. I copied all binaries, configs, scripts and man pages from the "good" computer to corresponding locations on the "bad" computer, and it seems to run just fine.

The missing components is a bit of a puzzle, but I did hose up the slackpkg config when I initially installed version 14.1. I clobbered things, which I whined about in http://www.linuxquestions.org/questi...em-4175544846/. I thought I had recovered from that, but apparently not. I guess I'll just have to do a clean install one of these days.
 
  


Reply

Tags
apcupsd, configure, slackware 14.1



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] configure: error: makedepend is required to build Mesa ghantauke Linux - Software 3 06-04-2011 05:07 AM
[SOLVED] php install halts - configure: error: libxml2 version 2.6.11 or greater required. nonshatter Linux - Software 1 09-02-2010 08:39 AM
configure: error: libSDL_image is required and cannot be found pashak Linux - Newbie 1 09-25-2009 02:21 AM
glibc 2.3.6 - configure: error: compiler support for __thread is required egghead Linux - General 0 02-26-2006 09:00 AM
./configure error while compiling superkaramba .qt-mt required -=|Man0waR|=- Mandriva 2 02-26-2005 04:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08:02 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration