Skip to content

Comments

configure: Fix ODBC configuration on Windows (branch 7.8)#1883

Merged
nilason merged 1 commit intoOSGeo:releasebranch_7_8from
nilason:fix-odbc-config-windows
Sep 21, 2021
Merged

configure: Fix ODBC configuration on Windows (branch 7.8)#1883
nilason merged 1 commit intoOSGeo:releasebranch_7_8from
nilason:fix-odbc-config-windows

Conversation

@nilason
Copy link
Contributor

@nilason nilason commented Sep 21, 2021

The update to autoconf 2.69 cause configure failure for including ODBC on Windows.

Windows configure log:

...
checking whether to use ODBC... "yes"
checking for location of ODBC includes... 
checking sql.h usability... no
checking sql.h presence... yes
configure: WARNING: sql.h: present but cannot be compiled
configure: WARNING: sql.h:     check for missing prerequisite headers?
configure: WARNING: sql.h: see the Autoconf documentation
configure: WARNING: sql.h:     section "Present But Cannot Be Compiled"
configure: WARNING: sql.h: proceeding with the compiler's result
checking for sql.h... no
configure: error: *** Unable to locate ODBC includes.

This is caused by changes on how AC_CHECK_HEADER works, see autoconf manual.

Specifically in this case, on Windows the header <windows.h> must be included for the check to succeed.

This fix has been tested on non-Windows machine, with and without ODBC; as well as on Windows CI on my fork.

@nilason nilason changed the title configure: Fix ODBC configuration on Windows configure: Fix ODBC configuration on Windows (branch 7.8) Sep 21, 2021
@nilason nilason added this to the 7.8.6 milestone Sep 21, 2021
@nilason nilason added the blocker Blocking a release label Sep 21, 2021
@nilason
Copy link
Contributor Author

nilason commented Sep 21, 2021

To be able to see if there are more issues with Windows down the line, I will now merge this fix.

@nilason nilason merged commit 7388b3f into OSGeo:releasebranch_7_8 Sep 21, 2021
@nilason nilason deleted the fix-odbc-config-windows branch September 21, 2021 10:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

blocker Blocking a release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant