Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

plc/plc.h: fix build with gcc 10 #141

Merged
merged 1 commit into from
Sep 26, 2020
Merged

plc/plc.h: fix build with gcc 10 #141

merged 1 commit into from
Sep 26, 2020

Conversation

ffontaine
Copy link
Contributor

@ffontaine ffontaine commented Sep 23, 2020

Drop plcproperty from plc/plc.h to avoid the following build failure with gcc 10 (which defaults to -fno-common):

/home/buildroot/autobuild/run/instance-3/output-1/host/lib/gcc/arm-buildroot-linux-gnueabihf/10.2.0/../../../../arm-buildroot-linux-gnueabihf/bin/ld: rules.o:(.bss+0x0): multiple definition of `plcproperty'; pibruin.o:(.bss+0x0): first defined here

Fixes:

Signed-off-by: Fabrice Fontaine [email protected]

Copy link
Member

@n1000 n1000 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the patch Fabrice. Looking at the nearby structures in this file it looks like most of them also create a type using typedef. I think this may have been the original intent but was missed by the original author. Can you modify your pull request to do the same?

Thanks!

Add typedef to plcproperty structure to avoid the following build
failure with gcc 10 (which defaults to -fno-common):

/home/buildroot/autobuild/run/instance-3/output-1/host/lib/gcc/arm-buildroot-linux-gnueabihf/10.2.0/../../../../arm-buildroot-linux-gnueabihf/bin/ld: rules.o:(.bss+0x0): multiple definition of `plcproperty'; pibruin.o:(.bss+0x0): first defined here

Fixes:
 - http://autobuild.buildroot.org/results/6b3064b64dea3d4aaf219f787429c25918101483

Signed-off-by: Fabrice Fontaine <[email protected]>
@ffontaine
Copy link
Contributor Author

Done

@n1000
Copy link
Member

n1000 commented Sep 26, 2020

Thanks, merged!

@n1000 n1000 merged commit 003bfe0 into qca:master Sep 26, 2020
arnout pushed a commit to buildroot/buildroot that referenced this pull request Jun 25, 2023
…c5dc4e89cf2

Other changes:
 - Remove 0002-plc-plc.h-fix-build-with-gcc-10.patch as
   related MR qca/open-plc-utils#141
   has been merged.

Notable changes since last version:

 - Drop privileges after opening the channel file descriptor
 - Remove all checks for root permissions
 - Add chip identification for QCA7006AQ

Signed-off-by: Kai Stuhlemmer (ebee Engineering) <[email protected]>
Signed-off-by: Arnout Vandecappelle <[email protected]>
citral23 pushed a commit to citral23/buildroot that referenced this pull request Sep 18, 2023
…c5dc4e89cf2

Other changes:
 - Remove 0002-plc-plc.h-fix-build-with-gcc-10.patch as
   related MR qca/open-plc-utils#141
   has been merged.

Notable changes since last version:

 - Drop privileges after opening the channel file descriptor
 - Remove all checks for root permissions
 - Add chip identification for QCA7006AQ

Signed-off-by: Kai Stuhlemmer (ebee Engineering) <[email protected]>
Signed-off-by: Arnout Vandecappelle <[email protected]>
davidschneider-cpi pushed a commit to ChargePoint/buildroot that referenced this pull request Apr 19, 2024
…c5dc4e89cf2

Other changes:
 - Remove 0002-plc-plc.h-fix-build-with-gcc-10.patch as
   related MR qca/open-plc-utils#141
   has been merged.

Notable changes since last version:

 - Drop privileges after opening the channel file descriptor
 - Remove all checks for root permissions
 - Add chip identification for QCA7006AQ

Signed-off-by: Kai Stuhlemmer (ebee Engineering) <[email protected]>
Signed-off-by: Arnout Vandecappelle <[email protected]>

(cherry picked from commit 39fef04)
davidschneider-cpi pushed a commit to ChargePoint/buildroot that referenced this pull request Apr 22, 2024
…c5dc4e89cf2

Other changes:
 - Remove 0002-plc-plc.h-fix-build-with-gcc-10.patch as
   related MR qca/open-plc-utils#141
   has been merged.

Notable changes since last version:

 - Drop privileges after opening the channel file descriptor
 - Remove all checks for root permissions
 - Add chip identification for QCA7006AQ

Signed-off-by: Kai Stuhlemmer (ebee Engineering) <[email protected]>
Signed-off-by: Arnout Vandecappelle <[email protected]>

(cherry picked from commit 39fef04)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants