Xymon Mailing List Archive search

Nextr problem installing on HP-UX

list Klaus-Peter Boden
Tue, 15 Feb 2005 09:30:25 +0100
Message-Id: <user-067a6d8c0c3a@xymon.invalid>

Hi,

you may have a look at 
http://devrsrc1.external.hp.com/STKS/impactlist.html

This is a document for transition between c source code from solaris to hp-ux. It seems that the function setlinebuf is not available under HP-UX. In this document HP describes what alternatives to use...

best regards
Klaus
-kpb>


"Ebeling, Lars" <user-526f6a52139b@xymon.invalid> schrieb am 15.02.2005 09:15:01:
Hi again,

I removed the line and the make continuede until next problem:
cc -g -O -D_REENTRANT -DHPUX -DMAXMSG=32768 -DBBDPORTNUMBER=1984 -I.
-I/home/hob
bit/hobbit/include -c -o hobbitd_worker.o hobbitd_worker.c

hobbitd_worker.c:23:24: sys/select.h: No such file or directory

makeÄ1Å: *** Ähobbitd_worker.oÅ Error 1

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

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


This I solved by "man select" and found out that it was in sys/time.h
Removed the lines in 2 files.

So the make continued until this:

cc -o hobbitd_history hobbitd_history.o   hobbitd_worker.o 
../lib/libbbgen.a
/usr/ccs/bin/ld: Unsatisfied symbols:

   setlinebuf (code)

collect2: ld returned 1 exit status

makeÄ1Å: *** Ähobbitd_historyÅ Error 1

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

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


Now I'm stuck here.

I'm installing on HP-UX 11.11

Regards from Halmstad
Lars

-----Ursprungligt meddelande-----
Från: Henrik Stoerner [mailto:user-ce4a2c883f75@xymon.invalid] Skickat: den 15 februari 2005 08:13
Till: user-ae9b8668bcde@xymon.invalid
Ämne: Re: [hobbit] Another problem installing on HP-UX


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