Error while cross compiling -error: parse error before "lt_ptr"

Queenie de Melo queenie245 at gmail.com
Tue Feb 9 09:56:46 CET 2010


I have downloaded nagios 3.2.0 and iam trying to cross compile for xscale
big endian platform.

It configured fine as shown below but while compiling, i get Error.

I configured as
*./configure host=xscale CC=xscale_be-gcc*

> checking for a BSD-compatible install... /usr/bin/install -c
> checking build system type... i686-pc-linux-gnu
> checking host system type... xscale-unknown-none
> checking for xscale-gcc... xscale_be-gcc
> checking for C compiler default output file name... a.out
> checking whether the C compiler works... yes
> checking whether we are cross compiling... yes
> checking for suffix of executables...
> checking for suffix of object files... o
> checking whether we are using the GNU C compiler... yes
> checking whether xscale_be-gcc accepts -g... yes
> checking for xscale_be-gcc option to accept ANSI C... none needed
> checking whether make sets $(MAKE)... yes
> checking for strip... /usr/bin/strip
> checking how to run the C preprocessor... xscale_be-gcc -E
> checking for egrep... grep -E
> checking for ANSI C header files... yes
> checking whether time.h and sys/time.h may both be included... yes
> checking for sys/wait.h that is POSIX.1 compatible... yes
>     and so on................


then When i do a "make all',
I get the error as below


> In file included from ../include/nebcallbacks.h:29,
>                  from broker.c:30:
> ../include/nebmodules.h:80: error: parse error before "lt_ptr"
> ../include/nebmodules.h:80: warning: no semicolon at end of struct or union
> ../include/nebmodules.h:81: warning: data definition has no type or storage
> class
> ../include/nebmodules.h:91: error: parse error before '}' token
> ../include/nebmodules.h:91: warning: data definition has no type or storage
> class
> In file included from broker.c:30:
> ../include/nebcallbacks.h:81: error: parse error before '*' token
> In file included from broker.c:32:
> ../include/nebmods.h:54: error: parse error before '*' token
> ../include/nebmods.h:57: error: parse error before '*' token


Iam using xscale_be-gcc (GCC) 3.3.1

"make cgis" compiles fine without any errors.

Please help me how to proceed.




>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20100209/306263d1/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
-------------- next part --------------
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null


More information about the Users mailing list