[augeas-devel] Build fails on opensolaris 2008.11

David Lutterkort lutter at redhat.com
Tue Feb 10 05:39:09 UTC 2009


On Mon, 2009-02-09 at 14:38 +1100, Rob Chanter wrote:
> Hi,
> 
> I've got the 0.4.0 source, which appears to have all the patches
> referred to over the last few weeks related to Solaris already
> applied. The build is failing in pathx.c as follows:
> 
>  gcc -DHAVE_CONFIG_H -I. -I.. -std=gnu99 -Wall -Wformat
> -Wformat-security -Wmissing-prototypes -Wnested-externs
> -Wpointer-arith -Wextra -Wshadow -Wcast-align -Wwrite-strings
> -Waggregate-return -Wstrict-prototypes -Winline -Wredundant-decls
> -Wno-sign-compare -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
> -fasynchronous-unwind-tables -Werror -I ../gnulib/lib -g -O2 -MT
> pathx.lo -MD -MP -MF .deps/pathx.Tpo -c pathx.c  -fPIC -DPIC -o
> .libs/pathx.o
> pathx.c: In function `check_expr':
> pathx.c:638: warning: 'res' might be used uninitialized in this function
> *** Error code 1

I comletely forgot: pass '--enable-compile-warnings=yes' to ./configure
- that will keep it from passing -Werror to gcc, and the build should go
through.

David





More information about the augeas-devel mailing list