From: Wolfgang Denk Date: Wed, 11 Jan 2012 08:33:46 +0100 Subject: [U-Boot] [PATCH 2/8] powerpc/env: Correct the compilation errors when defined CONFIG_ENV_IS_NOWHERE In-Reply-To: <1326195751-20729-2-git-send-email-Gang.Liu@freescale.com> References: <1326195751-20729-1-git-send-email-Gang.Liu@freescale.com> <1326195751-20729-2-git-send-email-Gang.Liu@freescale.com> Message-ID: <20120111073346.751B51FAA6A@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Liu Gang, In message <1326195751-20729-2-git-send-email-Gang.Liu@freescale.com> you wrote: > When defined CONFIG_ENV_IS_NOWHERE, there will be some compilation errors: > > ./common/env_nowhere.o: In function `env_relocate_spec': > ./common/env_nowhere.c:38: multiple definition of `env_relocate_spec' > ./common/env_flash.o: ./common/env_flash.c:326: first defined here > ./common/env_nowhere.o: In function `env_get_char_spec': > ./common/env_nowhere.c:42: multiple definition of `env_get_char_spec' > ./common/env_flash.o:./common/env_flash.c:78: first defined here > ./common/env_nowhere.o: In function `env_init': > ./common/env_nowhere.c:51: multiple definition of `env_init' > ./common/env_flash.o:./common/env_flash.c:237: first defined here > make[1]: *** [./common/libcommon.o] Error 1 > make[1]: Leaving directory `./common' > make: *** [./common/libcommon.o] Error 2 The Subject: says this affects "powerpc/env". Is this really correct? Are _all_ Power architecture systems affected? I don't think so. If your comment was correct, how comes you change configs/corenet_ds.h only? Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de Dealing with failure is easy: work hard to improve. Success is also easy to handle: you've solved the wrong problem. Work hard to improve.