Operating System - HP-UX
1825941 Members
2552 Online
109689 Solutions
New Discussion

compilation problem on unix system

 
SOLVED
Go to solution
Wanda Canade'
Advisor

compilation problem on unix system

I tried to compile a sorce for nagios monito on (nrpe monitor)itanium platform whit operating system hp-ux 11.23. I receive this error:
Unsatisfied symbol "rfc931_timeout" in file /usr/lib/hpux32/libwrap.so

this is my makefile:
###############################
# Makefile for NRPE
#
# Last Modified: 10-14-2003
###############################


# Source code directories
SRC_INCLUDE=../include

CC=gcc
CFLAGS=-g -O2 -I/usr/include/openssl -I/usr/include -DHAVE_CONFIG_H
LDFLAGS= -L/usr/lib -lssl -lcrypto
SOCKETLIBS= -lnsl
LIBWRAPLIBS= -lwrap
OTHERLIBS= -liberty

CP=@CP@


all: nrpe check_nrpe

nrpe: nrpe.c utils.c $(SRC_INCLUDE)/nrpe.h $(SRC_INCLUDE)/utils.h $(SRC_INCLUDE)/common.h $(SRC_INCLUDE)/config.h
$(CC) $(CFLAGS) -o $@ nrpe.c utils.c $(LDFLAGS) $(SOCKETLIBS) $(LIBWRAPLIBS) $(OTHERLIBS)

check_nrpe: check_nrpe.c utils.c $(SRC_INCLUDE)/utils.h $(SRC_INCLUDE)/common.h $(SRC_INCLUDE)/config.h
$(CC) $(CFLAGS) -o $@ check_nrpe.c utils.c $(LDFLAGS) $(SOCKETLIBS) $(OTHERLIBS)

clean:
rm -f core nrpe check_nrpe
rm -f *~ */*~

distclean: clean
rm -f Makefile

devclean: distclean

###############################



I 'd like to compile also on hp-ux 11.00 but i need ssl library . Where can i find openSSL for hp-ux 11.00? I have searched on software hp site but I found only depot for 11.11


Any ideas for my two questions?
thanks in advance
11 REPLIES 11
Peter Godron
Honored Contributor

Re: compilation problem on unix system

Hi,
you may have to compile from source.
http://www.openssl.org/

But this thread may help:
http://forums1.itrc.hp.com/service/forums/bizsupport/questionanswer.do?threadId=879615

HP11.00 support ends Dec this year, so a lot of people have upgradef or are ungrading.
http://www.hp.com/softwarereleases/releases-media2/history/slide2.html
Ralph Grothe
Honored Contributor

Re: compilation problem on unix system

Hi Wanda,

OpenSSL is part of the HP-UX OE release.
So if you've got an installation CD or the application DVD you will find it there.
(please refer to TOC on CD/DVD).

You can also download it for free
as it is part of HP's Internet Express repository

http://h20293.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=HPUXIEXP1123

Afaik, it used to be built with gcc so then you should be able to link with gcc aginst the depot libs.
But recently HP seem to have relinquished gcc and instead built with their own compiler.
The README.hp in the depot should tell how the libs and binaries were built.
The depot even includes the source tarball,
but just for "reference" as it says in the depot's README.
If you need to build the binaries yourself you'd better get the sources from openssl.org

However, if you have no need for TLS/SSL checks of your NRPE then there's no need for OpenSSL at all.
I for instance have some HP-UX NRPE nodes operational that since I don't have to run checks with SSL lack SSL support but apart from that work perfectly well.
If I remember correctly you can configure nrpe with --disable-ssl or similar.
Just have a look at ./configure --help for the correct options.
Madness, thy name is system administration
Colin Topliss
Esteemed Contributor

Re: compilation problem on unix system

Hi,

Also make sure that you are using the latest version of GCC you can get for your platform, and make sure that you are also using gnu make (as opposed to the make supplied by HP).

The error you are seeing is related to username lookups. There's a wealth of information on the Net covering what it is and does.

If I get chnace I'll try and find out which header file its in tomorrow (I'm sure I compiled NRPE on 11.23 IA).

Col
Colin Topliss
Esteemed Contributor

Re: compilation problem on unix system

Hi Wanda,

I've compiled NRPE 2.2 on 11.23 PA and IA. If you're desparate I can probably provide depots for you.

I'm afraid i can't help with an 11.00 build though. We don't have that around here ;-)

Col.
Wanda Canade'
Advisor

Re: compilation problem on unix system


I'm desperate, I'd like to have precompiled for nrpe.

thanks to all for support.
Kirk MacLean_2
Frequent Advisor

Re: compilation problem on unix system

Wanda,

There is a pre-compiled version here; found in another thread on this forum:
http://www.bennyvision.com/projects/nagios/index.php

Good luck, I am helping a peer admin who is in your same situation.

"Edited to comply with ITRC Guidelines"

BTW: have you considered giving points to the answers/solutions people are providing you? I don't think I have any yet; HELP!

Thanks,

Kirk
Kirk MacLean_2
Frequent Advisor

Re: compilation problem on unix system

What I thought was the pre-compiled code is actually: nrpe - Daemon and plugin for executing plugins on remote hosts. Not what we are looking for.

Kirk
Wanda Canade'
Advisor

Re: compilation problem on unix system

I need pre-compiled for nrpe daemon on itanium 11.23. I coudn't copile source.
Can help me?
Arunvijai_4
Honored Contributor
Solution

Re: compilation problem on unix system

Hi,

nrpe for IA-64 is not yet available for download. You can use the same PA-RISC1.1 binary to run in IA-64.

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Wanda Canade'
Advisor

Re: compilation problem on unix system

thanks for help . I compiled on 11.00 system and i used compiled nrpe daemon on 11.23 and it works.
Bye