Xymon Mailing List Archive search

Another problem installing on HP-UX

4 messages in this thread

list Lars Ebeling · Mon, 14 Feb 2005 20:19:27 +0100 ·
Hi all,
 
now when I got this pcre installed configure works. But make stops withy
errors. The getrpcbyname thing I solved with adding -lnsl to NETLIBS in
Makefile.HPUX. But searching around after hstrerror I found that probably
doesn't exist in HP-UX.
 
What to do?
 
/Lars
Hobbithobbyist
 
cc -g -O -D_REENTRANT -DHPUX -DMAXMSG=32768 -DBBDPORTNUMBER=1984 -I.
-I/home/bb/
hobbit/include -o bbtest-net bbtest-net.o contest.o httptest.o httpresult.o
ldap
test.o dns.o dns2.o ../lib/libbbgen.a libcares.a

/usr/ccs/bin/ld: Unsatisfied symbols:

   getrpcbyname (code)

   hstrerror (code)

collect2: ld returned 1 exit status

makeÄ1Å: *** Äbbtest-netÅ Error 1

makeÄ1Å: Leaving directory é/home/bb/hobbit-4.0-RC2/bbnet'

make: *** Äbbnet-buildÅ Error 2


I
list Henrik Størner · Mon, 14 Feb 2005 22:43:59 +0100 ·
quoted from Lars Ebeling
On Mon, Feb 14, 2005 at 08:19:27PM +0100, Ebeling, Lars wrote:
Hi all,
 
now when I got this pcre installed configure works. But make stops withy
errors. The getrpcbyname thing I solved with adding -lnsl to NETLIBS in
Makefile.HPUX. But searching around after hstrerror I found that probably
doesn't exist in HP-UX.
 
What to do?
"hstrerror" is an error-handling routine from the DNS resolver library.

Try a "man hstrerror" or "man gethostbyname" and see if it mentions
some specific libraries that are needed. Adding "-lresolv" to the
NETLIBS setting in Makefile.HP-UX might be the way forward.


Regards,
Henrik
list Lars Ebeling · Tue, 15 Feb 2005 05:27:10 +0100 ·
Hi all,

The fact is that hstrerror doesnt exist in HP-UX. I searched the web for
"+hstrerror +hpux" and found a lot about it.

Hasn't anyone installed hobbit on HP-UX 11.11 ?

Is this the end?

The getrpcbyname was solved by -lnsl.

Regards
Lars

-----Ursprungligt meddelande-----
Från: Henrik Stoerner [mailto:user-ce4a2c883f75@xymon.invalid] Skickat: den 14 februari 2005 22:44
Till: user-ae9b8668bcde@xymon.invalid
Ämne: Re: [hobbit] Another problem installing on HP-UX
quoted from Henrik Størner


On Mon, Feb 14, 2005 at 08:19:27PM +0100, Ebeling, Lars wrote:
Hi all,
 now when I got this pcre installed configure works. But make stops withy errors. The getrpcbyname thing I solved with adding -lnsl to NETLIBS in Makefile.HPUX. But searching around after hstrerror I found that probably doesn't exist in HP-UX.
 What to do?
"hstrerror" is an error-handling routine from the DNS resolver library.

Try a "man hstrerror" or "man gethostbyname" and see if it mentions some
specific libraries that are needed. Adding "-lresolv" to the NETLIBS setting
in Makefile.HP-UX might be the way forward.


Regards,
Henrik
list Henrik Størner · Tue, 15 Feb 2005 08:12:51 +0100 ·
quoted from Lars Ebeling
On Tue, Feb 15, 2005 at 05:27:10AM +0100, Ebeling, Lars wrote:
Hi all,

The fact is that hstrerror doesnt exist in HP-UX. I searched the web for
"+hstrerror +hpux" and found a lot about it.

Hasn't anyone installed hobbit on HP-UX 11.11 ?

Is this the end?
Oh no, we'll work around that - no problem.

A quick fix is to simply remove the use of it - it is only used in a
debug output message. If you edit the hobbit-4.0-RC2/bbnet/dns.c
file, you'll find "hstrerror" mentioned on line 147. Just delete that
line and it should compile OK.


Regards,
Henrik