If you're building with gcc, please add -std=c99 to CFLAGS.
I'll update the code in the next version so that this won't be
needed.

Laca

On Wed, 2008-04-02 at 12:23 -0700, Orvar Korvar wrote:
> Hmmm.... When I downloaded 1.3.0 from the above link I ran into problems.
> 
> $./configure 
> $make
> Making all in m4
> gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" 
> -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"pkgbuild\" 
> -DVERSION=\"1.3.0\" -I.    -D_LARGEFILE64_SOURCE  
> -DPKGBUILD_VERSION=\"1.3.0\" -g -O2 -MT pkgdbgrep-pkgdbgrep.o -MD -MP -MF 
> .deps/pkgdbgrep-pkgdbgrep.Tpo -c -o pkgdbgrep-pkgdbgrep.o `test -f 
> 'pkgdbgrep.c' || echo './'`pkgdbgrep.c
> pkgdbgrep.c: In function `read_contents':
> pkgdbgrep.c:142: error: 'for' loop initial declaration used outside C99 mode
> pkgdbgrep.c:162: error: 'for' loop initial declaration used outside C99 mode
> pkgdbgrep.c:181: error: 'for' loop initial declaration used outside C99 mode
> *** Error code 1
> make: Fatal error: Command failed for target `pkgdbgrep-pkgdbgrep.o'
> Current working directory /export/home/sean/CRAP/pkgbuild-1.3.0
> *** Error code 1
> The following command caused the error:
> failcom='exit 1'; \
> for f in x $MAKEFLAGS; do \
>   case $f in \
>     *=* | --[!k]*);; \
>     *k*) failcom='fail=yes';; \
>   esac; \
> done; \
> dot_seen=no; \
> target=`echo all-recursive | sed s/-recursive//`; \
> list='m4'; for subdir in $list; do \
>   echo "Making $target in $subdir"; \
>   if test "$subdir" = "."; then \
>     dot_seen=yes; \
>     local_target="$target-am"; \
>   else \
>     local_target="$target"; \
>   fi; \
>   (cd $subdir && make  $local_target) \
>   || eval $failcom; \
> done; \
> if test "$dot_seen" = "no"; then \
>   make  "$target-am" || exit 1; \
> fi; test -z "$fail"
> make: Fatal error: Command failed for target `all-recursive'
>  
> 
> This message posted from opensolaris.org
> _______________________________________________
> desktop-discuss mailing list
> desktop-discuss at opensolaris.org


Reply via email to