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

silock.c:(.text+0x184): undefined reference to `Silo_version_4_11' #286

Closed
yurivict opened this issue Dec 3, 2022 · 4 comments
Closed

Comments

@yurivict
Copy link

yurivict commented Dec 3, 2022

Build breaks:

--- CMakeFiles/silock.dir/all ---
/usr/local/bin/ld: CMakeFiles/silock.dir/tools/silock/silock.c.o: in function `main':
silock.c:(.text+0x184): undefined reference to `Silo_version_4_11'
cc: error: linker command failed with exit code 1 (use -v to see invocation)
*** [bin/silock] Error code 1

clang-14
revision 4.11-68-g819658e
FreeBSD 13.1

@markcmiller86
Copy link
Member

I feel like you may be building from 4.11RC but still using 4.11 release headers.

@yurivict
Copy link
Author

yurivict commented Dec 3, 2022

Indeed, Silo conflicts with its own headers from the previous release.

@bhuloka
Copy link

bhuloka commented Jan 12, 2023

Is there any workaround?

@markcmiller86
Copy link
Member

You can work-around the issue yourself by defining the unresolved external (an int) that it is looking for. That said, this kind of compile-time breakage is intentional especially when I am not 100% confident that all commits since prev. release did not change more than just implementation. I/we don't support mixing versions of Silo headers and libraries.

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