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

ODR violation between odbc & odbccr #120

Open
SpaceIm opened this issue Sep 24, 2022 · 4 comments
Open

ODR violation between odbc & odbccr #120

SpaceIm opened this issue Sep 24, 2022 · 4 comments

Comments

@SpaceIm
Copy link

SpaceIm commented Sep 24, 2022

__get_connection is defined twice, in:

It may lead to duplicate symbol errors when both libs are linked.

Makefile:83: recipe for target 'all' failed
ld: error: duplicate symbol: __get_connection
>>> defined at SQLGetDiagRec.c
>>>            SQLGetDiagRec.o:(__get_connection) in archive /home/conan/w/prod/BuildSingleReference/.conan/data/odbc/2.3.7/_/_/package/8eabf8030762d318d462d63ad71a06248b66af41/lib/libodbccr.a
>>> defined at SQLGetDiagRec.c
>>>            SQLGetDiagRec.o:(.text+0x10) in archive /home/conan/w/prod/BuildSingleReference/.conan/data/odbc/2.3.7/_/_/package/8eabf8030762d318d462d63ad71a06248b66af41/lib/libodbc.a
clang-12: error: linker command failed with exit code 1 (use -v to see invocation)
@lurcher
Copy link
Owner

lurcher commented Sep 24, 2022 via email

@jubalh
Copy link
Contributor

jubalh commented Sep 24, 2022

For reference: 3990a80

@SpaceIm
Copy link
Author

SpaceIm commented Sep 24, 2022

Thanks

If cursor lib should only be dynamically linked by driver manager, why can it be built as a static library? Shouldn't it be always be built as a dynamic library regardless of static/shared options?

And you mean dynamically loaded or linked?

@lurcher
Copy link
Owner

lurcher commented Sep 24, 2022 via email

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