-
Notifications
You must be signed in to change notification settings - Fork 253
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
path-util.c:(.text+0xbc0): multiple definition of `path_is_mount_point'; common/path-utils.o:path-utils.c:(.text+0x290): first defined here #611
Comments
Please post what build environment you use (distro, libc, compiler version, linker if not using the default one) and what build command exactly. I don't see anything strange with path-utils.c in particuluar, the function is defined in a .c file, the object file is mentioned only once in the linked file list. |
Oh I see what's wrong, it's a name clash of libudev and path-utils.c, same function |
Are you building static |
so is it recommended to have it disabled? |
We can make it work, I'll rename the function so it does not clash. |
…l symbol name clash There's a report that a static build fails when there's a static version of libudev: /usr/lib/gcc/x86_64-pc-linux-gnu/12.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib/libudev.a(path-util.o): in function `path_is_mount_point': path-util.c:(.text+0xbc0): multiple definition of `path_is_mount_point'; common/path-utils.o:path-utils.c:(.text+0x290): first defined here There's a helper path_is_mount_point in libudev too but not exported so dynamic library is fine, unlike static build. The static build of libudev is not common but we can support that with a simple rename. Issue: #611 Signed-off-by: David Sterba <[email protected]>
Fix pushed to devel, please test and let me know if there are other problems with static libudev. |
Thanks, closing. |
can someone help me on why im having this error
The text was updated successfully, but these errors were encountered: