Cross compilation of nagios


#1

Hi All,

Can anyone guide me how to cross compile nagios for a different platform. Accoding to the help, i have used the --host command but it does not configure properly.
The command i give is : ./configure --host=xscale

Some of the related info of the displayed result is as below
checking build system type… i686-pc-linux-gnu
checking host system type… xscale-unknown-none
checking for xscale-gcc… no
checking for gcc… gcc
checking for C compiler default output file name… a.out
checking whether the C compiler works… yes
checking whether we are cross compiling… no

The above line shows we are not cross compiling. Can anyone help how to cross compile for an xscale_be target platform?

Thanks :slight_smile:


#2

Quite simply no compiler available…
I don’t know what’s required for xscale, but if i look on my server in aptitude i see pocketpc-gcc so you probably need something similar :slight_smile:


#3

[quote=“luca”]

Quite simply no compiler available…
I don’t know what’s required for xscale, but if i look on my server in aptitude i see pocketpc-gcc so you probably need something similar :)[/quote]

HI luca,

Thanks for your reply.
Tried giving ./configure --host=xscale CC=xscale_be-gcc

Now i get

Had two additional queries,

  1. it configures without errors…but Is it fine… to get ----- “checking host system type… xscale-unknown-none

  2. After configuring, when i do a “make all”, it gives errors as below

Well my nagios version is 3.2.0 and gcc version is : xscale_be-gcc (GCC) 3.3.1
Could it be a need a newer gcc? if so, what version of nagios will be suitable for this 3.3.1 gcc verson

Hi… another update
Tried with nagios-2.12 and still have the same error while compiling (make all)

If i load nagios-3.2.0 or nagios-2.12 on my RHL 9.0 , it compiles(./configure and then make all) fine.
The gcc --version for PHL 9.0 is as below
gcc (GCC) 3.2.2 20030222 (Red Hat Linux 3.2.2-5)

Any clue???

Please help !!


#4

i NEVER cross compiled so i have really no idea where the problems could lie. sorry.
try searching on google if somebody ever compiled nagios for xscale.