Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 339668

Summary: Warning when building vxWorks image, due to redefinition of environ
Product: [Tools] TCF Reporter: Tim Robinson <tim.robinson>
Component: AgentAssignee: Project Inbox <tcf.agent-inbox>
Status: RESOLVED NOT_ECLIPSE QA Contact: Eugene Tarassov <eugene>
Severity: normal    
Priority: P3 CC: cdtdoug, Peder.Andersen
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
Proposed fix none

Description Tim Robinson CLA 2011-03-11 06:02:21 EST
Created attachment 190970 [details]
Proposed fix

incompatible redefinition of macro "environ" (declared at line 310 of ".../agent/framework/mdep.h")

This definition is available in envLib.h

Legal Message: I, Tim Robinson, declare that I developed attached code from
scratch, without referencing any 3rd party materials except material licensed
under the EPL and EDL. I am authorized by my employer, Wind River, to make this
contribution under the EPL and EDL.
Comment 1 Eugene Tarassov CLA 2011-03-14 14:47:11 EDT
I cannot commit the patch. On VxWorks 6.6, 6.7, 6.8, the patch causes agent build to fail:

"C:/tcf/trunk/agent/services/processes.c", line 707: error (dcc:1525): identifier ppGlobalEnviron not declared


It might need #ifdef on VxWorks version number or something.
Comment 2 Tim Robinson CLA 2011-03-15 07:57:06 EDT
Interesting. The environ definition in envLib.h refers to ppGlobalEnviron, but there is no declaration of that variable in the headers. It's not clear how the environ macro should be used in vxWorks outside envLib.c, unless the client has itself declared ppGlobalEnviron as an extern.
Comment 3 Eugene Tarassov CLA 2011-04-29 14:20:50 EDT
Looks like it is VxWorks problem.
Changing status to NOT_ECLIPSE.