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

lvm2 2.03.15 fails to compile due to multiple definitions of dm_bitset_parse_list #71

Closed
Zopolis4 opened this issue Mar 2, 2022 · 3 comments

Comments

@Zopolis4
Copy link

Zopolis4 commented Mar 2, 2022

On armv7l ChromeOS, trying to compile lvm2 with deventd enabled, but the build fails on the following error:

/usr/local/bin/ld.gold: warning: using 'DM_1_02_129' as version for 'dm_bitset_parse_list' which is also named in version 'DM_1_02_138' in script
/usr/local/bin/ld.gold: error: /usr/local/tmp/ccAQKgvm.ltrans0.ltrans.o: multiple definition of 'dm_bitset_parse_list'
/usr/local/bin/ld.gold: /usr/local/tmp/ccAQKgvm.ltrans0.ltrans.o: previous definition here
    [AR] base/libbase.a
    [AR] device_mapper/libdevice-mapper.a
collect2: error: ld returned 1 exit status
make[1]: *** [../libdm/make.tmpl:422: ioctl/libdevmapper.so.1.02] Error 1
make[1]: Leaving directory '/usr/local/tmp/crew/lvm2.20220302073721.dir/LVM2.2.03.15/libdm'
make: *** [make.tmpl:363: libdm.device-mapper] Error 2

I was able to compile this before, but its not working anymore. I dont have another version of lvm2 installed, and I’ve tried on upstream master as well. Exact chromebrew package here.

@zkabelac
Copy link
Contributor

zkabelac commented Mar 2, 2022

You are most likely linking with system without versioning support ??
Try to use this 'configure' option --with-symver=no
(lvm2 is supported with glibc - other libc libraries are only supported by getting extra patches for it...)

@Zopolis4
Copy link
Author

Zopolis4 commented Mar 2, 2022

That does not seem to be an option configure: WARNING: unrecognized options: --with-symver

@Zopolis4
Copy link
Author

Zopolis4 commented Mar 3, 2022

Although, --with-symvers=no does work.

@Zopolis4 Zopolis4 closed this as completed Mar 3, 2022
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

2 participants