Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: sqlite3.pc strikes again



On Sat, Mar 08, 2014 at 07:43:36PM +0400, Valery Ushakov wrote:
> There is still a problems with sqlite3.pc.  It's generated with wrong
> CC invocation.  On an Ubuntu host, where there's no
> /usr/include/stdarg.h the build fails with:

Interesting - I thought that was a posix header.
A quick search for va_copy gives a linux man page that tells you
to include stdarg.h - so what is ubunto up to?

> --- sqlite3.pc ---
> In file included from <stdin>:1:0:
> /home/uwe/work/netbsd/ro/src/external/public-domain/sqlite/lib/../dist/sqlite3.h:35:67:
>  fatal error: stdarg.h: No such file or directory
> 
> The following
> 
> -         ${CC} -E -I${SRCDIR} - | tail -1 | tr -d '"') && \
> +         ${CC} ${CPPFLAGS} -E - | tail -1 | tr -d '"') && \
> 
> seems to fix it, since --sysroot is picked up from CPPFLAGS, but I'm
> not sure if it's entirely correct.

If the tools compiler doesn't have a hard default of $DESTDIR/usr/include
then specifying it by --sysroot is probably correct.

So quite likely CPPFLAGS is the correct beast.

        David

-- 
David Laight: david%l8s.co.uk@localhost


Home | Main Index | Thread Index | Old Index