Error in compile: "format not a string literal and no format arguments"
Jim Harris
jimrh at charter.net
Mon Feb 13 10:46:38 EST 2012
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.
The “make” readme file mentions that “ybin needs hfsutils version 3.2.6 or later.” which I verified.
I tried to compile the 1.3.13 version, (which is the “native” version shipped with the PPC distribution of Ubuntu 10.04), and I received a whole host of warnings, and a different error:
lib/strstr.c:79: error: label at end of compound statement
This compile was also done directly within the 1.3.13 folder by running “make install”.
I strongly suspect that there are other things that need to be done first, but are not documented (or if they are, I did not see/understand them).
Any help would be appreciated.
p.s. Don’t forget – I’m always here for all of your computer or networking needs.
Jim "JR" Harris
Principal Engineer / Owner
Arrowhead Computer Consulting, LLC
Authorized Avira Security Solutions Reseller
“I don’t just sell it, I use it!”
508-595-9382 (Desk)
508-864-8404 (Cell)
Some see things as they are, and ask "Why?"
I dream things that never were, and ask "Why Not".
Robert F. Kennedy
“Impossible” is only found in the dictionary of a fool.
Old Chinese Proverb
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ozlabs.org/pipermail/yaboot-devel/attachments/20120212/b992ec8b/attachment.html>
More information about the Yaboot-devel
mailing list