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

Error during compilation : desktop_integration/CMakeFiles/appimage_desktop_integration.dir/integrator/Integrator.cpp.o:(.rodata+0xa0): multiple definition of `_ZGRN15StringSanitizer13asciiLetters_E_' #621

Open
2 tasks done
rique opened this issue Jan 25, 2024 · 1 comment
Labels
bug Something isn't working needs verification Description of the issue needs to be verified by the team

Comments

@rique
Copy link

rique commented Jan 25, 2024

Pre-submit checks

  • I checked for similar issues beforehand, but could not find any, not even closed ones. I could not add my bug report to any existing issue.
  • I am going to take the time to to fill in all the required details. I know that the bug report will be dismissed otherwise.

Describe the bug

Hi,
I've been trying to compile AppImageLauncher but unsuccessfully.
When I execute :

make libappimage libappimageupdate libappimageupdate-qt

I get the following errors:

/usr/bin/ld: desktop_integration/CMakeFiles/appimage_desktop_integration.dir/integrator/Integrator.cpp.o:(.rodata+0xa0): multiple definition of `_ZGRN15StringSanitizer13asciiLetters_E_'; utils/CMakeFiles/appimage_utils.dir/StringSanitizer.cpp.o:(.rodata+0x20): first defined here
/usr/bin/ld: desktop_integration/CMakeFiles/appimage_desktop_integration.dir/integrator/Integrator.cpp.o:(.rodata+0xd8): multiple definition of `_ZGRN15StringSanitizer12asciiDigits_E_'; utils/CMakeFiles/appimage_utils.dir/StringSanitizer.cpp.o:(.rodata+0x58): first defined here
/usr/bin/ld: desktop_integration/CMakeFiles/appimage_desktop_integration.dir/integrator/Integrator.cpp.o:(.rodata+0xe2): multiple definition of `_ZGRN15StringSanitizer14pathSafeChars_E_'; utils/CMakeFiles/appimage_utils.dir/StringSanitizer.cpp.o:(.rodata+0x62): first defined here
/usr/bin/ld: desktop_integration/CMakeFiles/appimage_desktop_integration.dir/integrator/DesktopEntryEditor.cpp.o:(.rodata+0x20): multiple definition of `_ZGRN15StringSanitizer13asciiLetters_E_'; utils/CMakeFiles/appimage_utils.dir/StringSanitizer.cpp.o:(.rodata+0x20): first defined here
/usr/bin/ld: desktop_integration/CMakeFiles/appimage_desktop_integration.dir/integrator/DesktopEntryEditor.cpp.o:(.rodata+0x58): multiple definition of `_ZGRN15StringSanitizer12asciiDigits_E_'; utils/CMakeFiles/appimage_utils.dir/StringSanitizer.cpp.o:(.rodata+0x58): first defined here
/usr/bin/ld: desktop_integration/CMakeFiles/appimage_desktop_integration.dir/integrator/DesktopEntryEditor.cpp.o:(.rodata+0x62): multiple definition of `_ZGRN15StringSanitizer14pathSafeChars_E_'; utils/CMakeFiles/appimage_utils.dir/StringSanitizer.cpp.o:(.rodata+0x62): first defined here
collect2: error: ld returned 1 exit status
make[3]: *** [lib/libappimage/src/libappimage/CMakeFiles/libappimage.dir/build.make:194: lib/libappimage/src/libappimage/libappimage.so.1.0.3] Error 1
make[2]: *** [CMakeFiles/Makefile2:2012: lib/libappimage/src/libappimage/CMakeFiles/libappimage.dir/all] Error 2
make[1]: *** [CMakeFiles/Makefile2:2019: lib/libappimage/src/libappimage/CMakeFiles/libappimage.dir/rule] Error 2
make: *** [Makefile:709: libappimage] Error 2

Prior to that I executed the bellow command with no issue

cmake .. -DCMAKE_INSTALL_PREFIX="$PREFIX" -DUSE_SYSTEM_BOOST=true

Attempted build from "stable" branch

Expected behavior

A successful build of libappimage libappimageupdate libappimageupdate-qt

Steps to reproduce the issue

After executing

cmake .. -DCMAKE_INSTALL_PREFIX="$PREFIX" -DUSE_SYSTEM_BOOST=true

execute the following command:

make libappimage libappimageupdate libappimageupdate-qt

Screenshots

Screenshot_20240125_190218

Distribution and desktop environment

OS: Nobara Linux 39 (KDE Plasma) x86_64
Release: Nobara release 39 (Thirty Nine) [Fedora based]
Kernel: 6.7.0-204.fsync.fc39.x86_64
Desktop Environment: Plasma 5.27.10
Qt: 5.15.11
KDE Frameworks: 5.113.0
kf5-config: 1.0

Installed AppImageLauncher version

Build from stable branch

List of AppImages you tried

No response

Additional context

No response

@rique rique added bug Something isn't working needs verification Description of the issue needs to be verified by the team labels Jan 25, 2024
@ricperry
Copy link

ricperry commented May 4, 2024

I got the same error, although before I got to that point, I had to edit hashlib.cpp and include .

collect2: error: ld returned 1 exit status
make[2]: *** [lib/libappimage/src/libappimage/CMakeFiles/libappimage.dir/build.make:194: lib/libappimage/src/libappimage/libappimage.so.1.0.3] Error 1
make[1]: *** [CMakeFiles/Makefile2:2028: lib/libappimage/src/libappimage/CMakeFiles/libappimage.dir/all] Error 2
make: *** [Makefile:156: all] Error 2

OS: Ubuntu 24.04 LTS (Vanilla Gnome) x86_64

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs verification Description of the issue needs to be verified by the team
Projects
None yet
Development

No branches or pull requests

2 participants