apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Barnes <jbarnes...@yahoo.com>
Subject apr include errors
Date Tue, 29 Sep 2009 16:35:49 GMT
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

Mime
View raw message