You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@apr.apache.org by Kevac Marko <ma...@kevac.org> on 2010/03/12 12:24:36 UTC

Re: apr include errors

Strangely, I have same error. When using g++ insead of gcc, everything
is fine. I am investigating right now...

On Tue, Sep 29, 2009 at 7:35 PM, Jeff Barnes <jb...@yahoo.com> wrote:
> I'm trying to link against apr 1.3.8 and I'm getting some strange errors...
>
> make[1]: Entering directory `/home/jeff/dev/trunk/Development/Server/LoadTest/src/abr'
> gcc -g -c y.tab.c -I/usr/local/apr/include
> In file included from /usr/local/apr/include/apr-1/apr_pools.h:37,
>                 from abr.y:7:
> /usr/local/apr/include/apr-1/apr.h:285: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘apr_off_t’
> In file included from /usr/local/apr/include/apr-1/apr_file_io.h:29,
>                 from abr.h:4,
>                 from abr.y:9:
> /usr/local/apr/include/apr-1/apr_file_info.h:198: error: expected specifier-qualifier-list before ‘apr_off_t’
> In file included from abr.h:4,
>                 from abr.y:9:
> /usr/local/apr/include/apr-1/apr_file_io.h:632: error: expected declaration specifiers or ‘...’ before ‘apr_off_t’
> /usr/local/apr/include/apr-1/apr_file_io.h:859: error: expected declaration specifiers or ‘...’ before ‘apr_off_t’
> abr.y: In function ‘main’:
> abr.y:313: warning: assignment from incompatible pointer type
> make[1]: *** [y.tab.o] Error 1
>
> ...
>
> apr.h:
> 284 typedef  ssize_t         apr_ssize_t;
> 285 typedef  off64_t           apr_off_t;
> 286 typedef  socklen_t       apr_socklen_t;
>
>
> The make targets (Makefile.am) in question are:
>
> y.tab.c : $(YACCFILE) $(HFILES)
>        echo $(LEXER)
>        echo $(PARSER)
>        $(PARSER) $(IPARSEFLAGS) $(YFLAGS) $(YACCFILE)
>
> y.tab.o: y.tab.c
>        $(CC) -g -c y.tab.c -I@LIBAPR@/include
>
> I can run make successfully at home on Ubuntu Jaunty, but not at work on Ubuntu Jaunty. I used apt-get for the autotools on both. I built apr 1.3.8 on both environments.
>
> Can someone point out some error or provide some guidance?
>
> Many thanks.
> Jeff Barnes
>



-- 
Marko Kevac