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

Add missing typedef for plcproperty #142

Closed
wants to merge 1 commit into from

Conversation

mhei
Copy link
Contributor

@mhei mhei commented Nov 18, 2020

Compilation with Ubuntu 20.10 uncovered the following linker problem:
/usr/bin/ld: rules.o:(.bss+0x0): multiple definition of plcproperty'; pibruin.o:(.bss+0x0): first defined here /usr/bin/ld: ParseRule.o:(.bss+0x0): multiple definition of plcproperty'; pibruin.o:(.bss+0x0): first defined here
/usr/bin/ld: piblock.o:(.bss+0x0): multiple definition of plcproperty'; pibruin.o:(.bss+0x0): first defined here /usr/bin/ld: ruledump.o:(.bss+0x0): multiple definition of plcproperty'; pibruin.o:(.bss+0x0): first defined here
collect2: error: ld returned 1 exit status

When looking at the include file plc.h, we find that the typedef keyword
is missing which in turn results in a variable declaration - which is
usually not wanted in header files.

Signed-off-by: Michael Heimpold [email protected]

Compilation with Ubuntu 20.10 uncovered the following linker problem:
/usr/bin/ld: rules.o:(.bss+0x0): multiple definition of `plcproperty'; pibruin.o:(.bss+0x0): first defined here
/usr/bin/ld: ParseRule.o:(.bss+0x0): multiple definition of `plcproperty'; pibruin.o:(.bss+0x0): first defined here
/usr/bin/ld: piblock.o:(.bss+0x0): multiple definition of `plcproperty'; pibruin.o:(.bss+0x0): first defined here
/usr/bin/ld: ruledump.o:(.bss+0x0): multiple definition of `plcproperty'; pibruin.o:(.bss+0x0): first defined here
collect2: error: ld returned 1 exit status

When looking at the include file plc.h, we find that the typedef keyword
is missing which in turn results in a variable declaration - which is
usually not wanted in header files.

Signed-off-by: Michael Heimpold <[email protected]>
@n1000
Copy link
Member

n1000 commented Nov 19, 2020

Hi Michael, I think this issue should be fixed by 003bfe0 , can you confirm?

Thanks,
Nate

@mhei
Copy link
Contributor Author

mhei commented Nov 19, 2020

Hi @n1000, yep, it works. Don't know why, but somehow I missed this commit and still worked on an older commit. At least, I came to the same solution. Sorry for the noise + thanks for your hint.

@mhei mhei closed this Nov 19, 2020
@mhei mhei deleted the typedef-fix-plcproperty branch November 19, 2020 19:45
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