Bug 14171

Summary: pseudo_ipc.h:37: multiple definition of `pseudo_access_t'
Product: [Yocto Project Subprojects] Pseudo Reporter: mister_rs
Component: pseudoAssignee: Mark Hatle <mark.hatle>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Undecided CC: richard.purdie, yp.pseudo.watcher, yp.watcher
Version: master   
Target Milestone: ---   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description mister_rs 2020-12-30 20:15:12 UTC
I come to this via build instruction from branch 4.4 at https://github.com/openatv/enigma2 

I build: MACHINE=vuduo2 DISTRO=openatv DISTRO_TYPE=release make image

It is kind of strange that building image I end up now on this error instead of bug https://bugzilla.yoctoproject.org/show_bug.cgi?id=14169

Other guy with this issue (including full log):
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=957713

Solution:
change in pseudo_ipc.h the enum definition:

enum pseudo_access_t_enum {
	PSA_EXEC = 1,
	PSA_WRITE = (PSA_EXEC << 1),
	PSA_READ = (PSA_WRITE << 1),
	PSA_APPEND = (PSA_READ << 1)
};

typedef enum pseudo_access_t_enum pseudo_access_t_enum;
extern pseudo_access_t_enum pseudo_access_t;


then add into pseudo_ipc.c the line:

pseudo_access_t_enum pseudo_access_t;


With this, variable exists only once for this tool.
Comment 1 mister_rs 2020-12-30 20:20:58 UTC
Instead of branch 4.4 I ment 6.4.
Comment 2 Richard Purdie 2020-12-31 15:50:34 UTC
I believe this was already fixed in pseudo here: http://git.yoctoproject.org/cgit.cgi/pseudo/commit/?h=oe-core&id=a44361b8d3fbf5fc40cd87b599caeb380454efbe
Comment 3 mister_rs 2021-01-05 21:34:54 UTC
Thanks, you are right.