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

build error - make all - openAvnu #931

Closed
namdala opened this issue Dec 19, 2023 · 1 comment
Closed

build error - make all - openAvnu #931

namdala opened this issue Dec 19, 2023 · 1 comment

Comments

@namdala
Copy link

namdala commented Dec 19, 2023

Hello,

I got error using @make clean all
could you help me?

error message :
Consolidate compiler generated dependencies of target avbTl
[ 96%] Built target avbTl
Consolidate compiler generated dependencies of target openavb_avdecc
[ 98%] Linking C executable openavb_avdecc
/usr/bin/ld: ../../../libavbTl.a(openavb_grandmaster_osal.c.o):(.bss+0x0): multiple definition of `gPtpTD'; ../../../libavbTl.a(openavb_time_osal.c.o):(.bss+0x0): first defined here
collect2: error: ld returned 1 exit status
make[4]: *** [platform/Linux/avb_avdecc/CMakeFiles/openavb_avdecc.dir/build.make:99: platform/Linux/avb_avdecc/openavb_avdecc] Error 1
make[3]: *** [CMakeFiles/Makefile2:306: platform/Linux/avb_avdecc/CMakeFiles/openavb_avdecc.dir/all] Error 2
make[2]: *** [Makefile:136: all] Error 2
make[1]: *** [avtp_avdecc.mk:7: all] Error 2
make: *** [Makefile:138: avtp_avdecc] Error

@namdala
Copy link
Author

namdala commented Dec 21, 2023

I didn't encounter any issues when building with the same command in Windows' WSL, but I faced problems when building in Ubuntu 20.04.
I successfully resolved the issue by replacing all occurrences of the variable gPtpTD with gPtpTD_1 in the openavb_grandmaster_osal.c file.
I'm not sure if this solution is correct, but I was able to successfully build it. I hope this helps anyone who encounters a similar issue.

@namdala namdala closed this as completed Dec 21, 2023
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

No branches or pull requests

1 participant