Problems compiling nagios-2.0rc2 on HPUX 11.23 on Itanium

I want to install on my HP-UX Itanium workstation.

error from configure:

checking sys/ipc.h usability… no
checking sys/ipc.h presence… yes
configure: WARNING: sys/ipc.h: present but cannot be compiled
configure: WARNING: sys/ipc.h: check for missing prerequisite headers?
configure: WARNING: sys/ipc.h: see the Autoconf documentation
configure: WARNING: sys/ipc.h: section "Present But Cannot Be Compiled"
configure: WARNING: sys/ipc.h: proceeding with the preprocessor’s result
configure: WARNING: sys/ipc.h: in the future, the compiler will take precedence
configure: WARNING: ## ------------------------------------------ ##
configure: WARNING: ## Report this to the AC_PACKAGE_NAME lists. ##
configure: WARNING: ## ------------------------------------------ ##
checking for sys/ipc.h… yes
checking sys/msg.h usability… no
checking sys/msg.h presence… yes
configure: WARNING: sys/msg.h: present but cannot be compiled
configure: WARNING: sys/msg.h: check for missing prerequisite headers?
configure: WARNING: sys/msg.h: see the Autoconf documentation
configure: WARNING: sys/msg.h: section "Present But Cannot Be Compiled"
configure: WARNING: sys/msg.h: proceeding with the preprocessor’s result
configure: WARNING: sys/msg.h: in the future, the compiler will take precedence
configure: WARNING: ## ------------------------------------------ ##
configure: WARNING: ## Report this to the AC_PACKAGE_NAME lists. ##
configure: WARNING: ## ------------------------------------------ ##

And of course make fails:

make all

    cd ./base && make
    gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE -c broker.c

In file included from …/include/config.h:196,
from broker.c:25:
/usr/include/sys/ipc.h:51: error: syntax error before ‘cid_t’
/usr/include/sys/ipc.h:56: error: syntax error before ‘}’ token
In file included from …/include/config.h:201,
from broker.c:25:
/usr/include/sys/msg.h:93: error: field ‘msg_perm’ has incomplete type
*** Error exit code 1

Stop.
*** Error exit code 1

Stop.

Anyone know how I can resolve?

Thanks…Geoff

Okay - had wrong GCC - didn’t have binutils - downloaded and installed gcc from:

h21007.www2.hp.com/dspp/tech/tec … 63,00.html

Works great.

Now, trying to get GD library working…

Installed:

hpux.ee.ualberta.ca/hppd/hpux/De … gd-2.0.33/

Looks like library’s are installed in:

/usr/local/lib/hpux32/

Tried running:

./configure --prefix=/opt/nagios --with-nagios-user=bb --with-nagios-group=adm --with-command-group=other --with-gd-lib=/usr/local/lib/hpux32

But get:

checking for gdImagePng in -lgd (order 1)… no
checking for gdImagePng in -lgd (order 2)… no
checking for gdImagePng in -lgd (order 3)… no
checking for gdImagePng in -lgd (order 4)… no

*** GD, PNG, and/or JPEG libraries could not be located… *********

Boutell’s GD library is required to compile the statusmap, trends
and histogram CGIs. Get it from boutell.com/gd/, compile
it, and use the --with-gd-lib and --with-gd-inc arguments to specify
the locations of the GD library and include files.

Thanks…Geoff

libpng not installed.

swlist |grep libpng

libpng 1.2.8 libpng

libpng is installed (was there before I started the compile)…

Thanks…Geoff

Did you install gd without errors?

gd keeps saying it can’t find png or jpeg support. I did install libpng and libjpeg. What am I missing?
Be sure to do “make install-headers” for libpng and “make install-lib” for libjpeg, in addition to “make install.” You may also need to use a command line like this one when configuring gd: ./configure ‘–with-jpeg=/usr/local’ ‘–with-png=/usr/local’
’–with-zlib-dir=/usr/local’ Often, users have installed these things in /usr/local/include and /usr/local/lib, but do not actually have those directories in their default include and library paths when configuring gd. Thanks to Santanu Misra and Alastair Battrick.