Modify

Opened 6 years ago

Closed 5 years ago

Last modified 4 years ago

#10359 closed defect (fixed)

error: static declaration of 'getline' follows non-static declaration - Mac OSX 10.7.2

Reported by: big-r@… Owned by: developers
Priority: normal Milestone: Barrier Breaker 14.07
Component: packages Version: Trunk
Keywords: Cc:

Description

Hi,

following error during compilation:

Revision 28773

make[3]: Entering directory `/Volumes/openwrt/backfire/tools/genext2fs'
make -C /Volumes/openwrt/backfire/build_dir/host/genext2fs-1.4.1 CFLAGS="-O2 -I/Volumes/openwrt/backfire/staging_dir/host/include -include getline.h" all
make  all-am
if gcc -DHAVE_CONFIG_H -I. -I. -I.     -O2 -I/Volumes/openwrt/backfire/staging_dir/host/include -include getline.h -MT genext2fs.o -MD -MP -MF ".deps/genext2fs.Tpo" -c -o genext2fs.o genext2fs.c; \
	then mv -f ".deps/genext2fs.Tpo" ".deps/genext2fs.Po"; else rm -f ".deps/genext2fs.Tpo"; exit 1; fi
In file included from <command-line>:0:
/Volumes/openwrt/backfire/staging_dir/host/include/getline.h:42: error: static declaration of 'getline' follows non-static declaration
/usr/include/stdio.h:449: error: previous declaration of 'getline' was here
make[5]: *** [genext2fs.o] Error 1
make[4]: *** [all] Error 2
make[3]: *** [/Volumes/openwrt/backfire/build_dir/host/genext2fs-1.4.1/.built] Error 2
make[3]: Leaving directory `/Volumes/openwrt/backfire/tools/genext2fs'
make[2]: *** [tools/genext2fs/compile] Error 2
make[2]: Leaving directory `/Volumes/openwrt/backfire'
make[1]: *** [/Volumes/openwrt/backfire/staging_dir/target-mipsel_uClibc-0.9.30.1/stamp/.tools_install_nnnnn] Error 2
make[1]: Leaving directory `/Volumes/openwrt/backfire'
make: *** [world] Error 2

Attachments (0)

Change History (3)

comment:1 Changed 6 years ago by big-r@…

Hi,

there error is gone in Revision 29231, but exists now in uboot...

gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -idirafter /Volumes/OpenWRT/trunk/build_dir/linux-ar71xx_generic/u-boot-nbg460n_550n_550nh/u-boot-2010.03/include -idirafter /Volumes/OpenWRT/trunk/build_dir/linux-ar71xx_generic/u-boot-nbg460n_550n_550nh/u-boot-2010.03/include2 -idirafter /Volumes/OpenWRT/trunk/build_dir/linux-ar71xx_generic/u-boot-nbg460n_550n_550nh/u-boot-2010.03/include -I /Volumes/OpenWRT/trunk/build_dir/linux-ar71xx_generic/u-boot-nbg460n_550n_550nh/u-boot-2010.03/libfdt -I /Volumes/OpenWRT/trunk/build_dir/linux-ar71xx_generic/u-boot-nbg460n_550n_550nh/u-boot-2010.03/tools -DTEXT_BASE=0x81E00000 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES   -o default_image.o default_image.c -c
In file included from os_support.h:32,
                 from mkimage.h:25,
                 from default_image.c:30:
getline.h:1: error: conflicting types for 'getline'
/usr/include/stdio.h:449: error: previous declaration of 'getline' was here
make[5]: *** [default_image.o] Error 1
make[4]: *** [tools] Error 2
make[3]: *** [/Volumes/OpenWRT/trunk/build_dir/linux-ar71xx_generic/u-boot-nbg460n_550n_550nh/u-boot-2010.03/.built] Error 2
make[3]: Leaving directory `/Volumes/OpenWRT/trunk/package/uboot-ar71xx'
make[2]: *** [package/uboot-ar71xx/compile] Error 2
make[2]: Leaving directory `/Volumes/OpenWRT/trunk'
make[1]: *** [/Volumes/OpenWRT/trunk/staging_dir/target-mips_r2_uClibc-0.9.32/stamp/.package_compile] Error 2
make[1]: Leaving directory `/Volumes/OpenWRT/trunk'
make: *** [world] Error 2

comment:2 Changed 5 years ago by nbd

  • Resolution set to fixed
  • Status changed from new to closed

fixed in r32750

comment:3 Changed 4 years ago by jow

  • Milestone changed from Attitude Adjustment 12.09 to Barrier Breaker 14.07

Milestone Attitude Adjustment 12.09 deleted

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.