Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 339668 - Warning when building vxWorks image, due to redefinition of environ
Summary: Warning when building vxWorks image, due to redefinition of environ
Status: RESOLVED NOT_ECLIPSE
Alias: None
Product: TCF
Classification: Tools
Component: Agent (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Eugene Tarassov CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-11 06:02 EST by Tim Robinson CLA
Modified: 2011-04-29 14:20 EDT (History)
2 users (show)

See Also:


Attachments
Proposed fix (742 bytes, patch)
2011-03-11 06:02 EST, Tim Robinson CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.