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

Failed to build open-vm-tools on Linux From Scratch #451

Closed
arenekosreal opened this issue Jul 26, 2020 · 2 comments
Closed

Failed to build open-vm-tools on Linux From Scratch #451

arenekosreal opened this issue Jul 26, 2020 · 2 comments

Comments

@arenekosreal
Copy link

arenekosreal commented Jul 26, 2020

I am working with devel branch and trying to compile this tool for LFS on VMware, but ld returns an error at last. It shows that multiple definition of 'GDK_SELECTION_TYPE_TIMESTAMP' and multiple definition of 'GDK_SELECTION_TYPE_UTF8_STRING'. The error message part of full output are listed below:

/usr/bin/ld: .libs/libdndcp_la-copyPasteUIX11.o:/sources/open-vm-tools/open-vm-tools/services/plugins/dndcp/copyPasteUIX11.cpp:105: multiple definition of `GDK_SELECTION_TYPE_UTF8_STRING'; .libs/libdndcp_la-copyPasteCompatX11.o:/sources/open-vm-tools/open-vm-tools/services/plugins/dndcp/copyPasteCompatX11.c:80: first defined here
/usr/bin/ld: .libs/libdndcp_la-copyPasteUIX11.o:/sources/open-vm-tools/open-vm-tools/services/plugins/dndcp/copyPasteUIX11.cpp:101: multiple definition of `GDK_SELECTION_TYPE_TIMESTAMP'; .libs/libdndcp_la-copyPasteCompatX11.o:/sources/open-vm-tools/open-vm-tools/services/plugins/dndcp/copyPasteCompatX11.c:76: first defined here
collect2: error: ld returned 1 exit status
@johnwvmw
Copy link
Contributor

The fix has recently been made in house and will probably appear in the "devel" changes later this week.

In the mean time, you can proceed by removing the following lines from services/plugins/dndcp/copyPasteUIX11.cpp

-#ifndef GDK_SELECTION_TYPE_TIMESTAMP
-GdkAtom GDK_SELECTION_TYPE_TIMESTAMP;
-#endif

-#ifndef GDK_SELECTION_TYPE_UTF8_STRING
-GdkAtom GDK_SELECTION_TYPE_UTF8_STRING;
-#endif

This issue should be updated when the change is committed to the "devel" branch.

johnwvmw added a commit that referenced this issue Jul 31, 2020
Remove duplicate and unused global definitions for
GDK_SELECTION_TYPE_TIMESTAMP and GDK_SELECTION_TYPE_UTF8_STRING.

This fix will address #451
@johnwvmw
Copy link
Contributor

The change has been committed to the "devel" branch. Closing this issue.

johnwvmw added a commit that referenced this issue Aug 19, 2020
Remove duplicate and unused global definitions for
GDK_SELECTION_TYPE_TIMESTAMP and GDK_SELECTION_TYPE_UTF8_STRING.

This fix will address #451
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

3 participants