bugGNU GRUB - Bugs: bug #7207, Compilation is failing if CPPFLAGS...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #7207: Compilation is failing if CPPFLAGS is set.

Submitted by:  None
Submitted on:  Mon 12 Jan 2004 05:15:18 PM UTC  
 
Category: CompilationSeverity: Major
Priority: 5 - NormalItem Group: None
Status: FixedPrivacy: Public
Assigned to: NoneOriginator Name: Thomas Schwinge
Originator Email: -unavailable-Open/Closed: Closed
Release: ALLRelease: None
Reproducibility: Every TimePlanned Release: None

Sun 18 Jan 2004 07:41:44 PM UTC, comment #1:

Thanks for your contribution. I applied your patch to the CVS version.

Yoshinori K. Okuji <okuji>
Project Administrator
Mon 12 Jan 2004 05:15:18 PM UTC, original submission:

If you have set CPPFLAGS in order to let configure find the ncurses header files, compilation of 'grub/main.c' will fail:
#v+
CPPFLAGS='-I/somewhere/ncurses/include' ./configure [...]
[...]
make[2]: Entering directory `/opt/src/grub-0.93/grub'
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/package/misc/spf/grub-0.93test/spf/ncurses/include -Wall -Wmissing-prototypes -Wunused -Wshadow -Wpointer-arith -falign-jumps=1 -falign-loops=1 -falign-functions=1 -Wundef -DGRUB_UTIL=1 -DFSYS_EXT2FS=1 -DFSYS_FAT=1 -DFSYS_FFS=1 -DFSYS_MINIX=1 -DSUPPORT_HERCULES=1 -DSUPPORT_SERIAL=1 -fwritable-strings -I../stage2 -I../stage1 -I../lib -O2 -Os -pipe -march=athlon-xp -MT main.o -MD -MP -MF ".deps/main.Tpo" \
-c -o main.o `test -f 'main.c' || echo './'`main.c; \
then mv ".deps/main.Tpo" ".deps/main.Po"; \
else rm -f ".deps/main.Tpo"; exit 1; \
fi
main.c: In function `main':
main.c:261: error: `current_term' undeclared (first use in this function)
main.c:261: error: (Each undeclared identifier is reported only once
main.c:261: error: for each function it appears in.)
main.c:261: error: `TERM_NO_EDIT' undeclared (first use in this function)
main.c:261: error: `TERM_DUMB' undeclared (first use in this function)
make[2]: *** [main.o] Error 1
make[2]: Leaving directory `/opt/src/grub-0.93/grub'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/opt/src/grub-0.93'
make: *** [all] Error 2
#v-

The attached patch fixes this by separating CPPFLAGS from CFLAGS.

Anonymous

 

Attached Files
file #969:  grub-CPPFLAGS.patch added by None (680B - application/octet-stream - patch to separate CPPFLAGS from CFLAGS)

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 3 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Wed 10 Mar 2004 02:42:13 PM UTCokujiStatusNone=>Fixed
  Open/ClosedOpen=>Closed
Mon 12 Jan 2004 05:15:18 PM UTCNoneAttached File-=>Added grub-CPPFLAGS.patch, #949

Back to the top


Powered by Savane 3.1-cleanup1