Bug 14171 - pseudo_ipc.h:37: multiple definition of `pseudo_access_t'
Summary: pseudo_ipc.h:37: multiple definition of `pseudo_access_t'
Status: RESOLVED FIXED
Alias: None
Product: Pseudo
Classification: Yocto Project Subprojects
Component: pseudo (show other bugs)
Version: master
Hardware: x86 Multiple
: Undecided normal
Target Milestone: ---
Assignee: Mark Hatle
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2020-12-30 20:15 UTC by mister_rs
Modified: 2021-01-05 21:34 UTC (History)
3 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

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