Error in compile: "format not a string literal and no format arguments"

acrux acrux_it at libero.it
Tue Feb 14 03:15:16 EST 2012


On Sun, 12 Feb 2012 18:46:38 -0500
"Jim Harris" <jimrh at charter.net> wrote:

> Sorry if this has  been raised before:
> 
> (or if this is not the correct place to post this)
> 
>  
> 
> Attempting to compile Yaboot 1.3.17  (as unpacked from the tar-ball) on a iBook G3 – 700 mHz, 640 meg memory - running Ubuntu 10.04 LTS (PPC), I receive the following error:
> 
>  
> 
> root at iBoot-G3:/home/jim/Desktop/Yaboot sources/yaboot-1.3.17# make install
> 
> gcc -Os -m32  -nostdinc -Wall -isystem `gcc -m32 -print-file-name=include` -fsigned-char -DVERSION="\"1.3.17\"" -DTEXTADDR=0x100000 -DDEBUG=0 -DMALLOCADDR= -DMALLOCSIZE=0x100000 -DKERNELADDR=0x00000000 -Werror -fdiagnostics-show-option -I ./include -fno-strict-aliasing -DCONFIG_COLOR_TEXT -DCONFIG_SET_COLORMAP -DUSE_MD5_PASSWORDS -DCONFIG_FS_XFS -DCONFIG_FS_REISERFS -c -o second/cmdline.o second/cmdline.c
> 
> cc1: warnings being treated as errors
> 
> second/cmdline.c: In function ‘cmdedit’:
> 
> second/cmdline.c:78: error: format not a string literal and no format arguments [-Wformat-security]
> 
> make: *** [second/cmdline.o] Error 1
> 
> root at iBoot-G3:/home/jim/Desktop/Yaboot sources/yaboot-1.3.17#
> 
>  
> 
> The compile was done by unpacking the tar-gz, navigating to that folder, and running “make install” as root.
> 
>  


sed -i -s "s|-Werror|-Wno-error|g" Makefile 

cheers,
--n
-- 
acrux <acrux at cruxppc.org>


More information about the Yaboot-devel mailing list