-
Notifications
You must be signed in to change notification settings - Fork 52
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
Comments
4 tasks
On 24/09/2022 14:27, SpaceIm wrote:
|__get_connection| is defined both in:
* odbc lib:
https://github.com/lurcher/unixODBC/blob/f76a2504adf0aa4554547d7b9190640a9f410a45/DriverManager/SQLGetDiagRec.c#L197
* odbccr lib:
https://github.com/lurcher/unixODBC/blob/f76a2504adf0aa4554547d7b9190640a9f410a45/cur/SQLGetDiagRec.c#L104
It may lead to duplicate symbol errors when both libs are linked.
The cursor lib should only be dynamically linked by the driver manager
so its not a problem that should happen, but the function is not being
used so I have removed it anyway.
|
For reference: 3990a80 |
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? |
On 24/09/2022 16:35, SpaceIm wrote:
Thanks
If cursor lib should only be dynamically linked by driver manager, why
can it be built as a static library?
It can as that's one of the options that falls out of configure. Its
conceivable that someone would want it. But just because I haven't
explicitly stopped it from doing it is not the same as expecting it to
be done.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
__get_connection
is defined twice, in:unixODBC/DriverManager/SQLGetDiagRec.c
Line 197 in f76a250
unixODBC/cur/SQLGetDiagRec.c
Line 104 in f76a250
It may lead to duplicate symbol errors when both libs are linked.
The text was updated successfully, but these errors were encountered: