[Bug 269256] graphics/gdal: build fails with option MYSQL set

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 30 Jan 2023 20:07:19 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=269256

            Bug ID: 269256
           Summary: graphics/gdal: build fails with option MYSQL set
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: sunpoet@FreeBSD.org
          Reporter: d8zNeCFG@aon.at
             Flags: maintainer-feedback?(sunpoet@FreeBSD.org)
          Assignee: sunpoet@FreeBSD.org

Scenario:
- FreeBSD 12.4
- ports latest
- upgrading using portmaster
- gdal port option settings:

[0]# diff =(PORT_DBDIR=/nonexistent make showconfig) =(make showconfig)       
10c10
<      EXR=off: EXR support via OpenEXR library
---
>      EXR=on: EXR support via OpenEXR library
13c13
<      GTA=off: Generic Tagged Array (GTA) support
---
>      GTA=on: Generic Tagged Array (GTA) support
20c20
<      MYSQL=off: MySQL database support
---
>      MYSQL=on: MySQL database support
22c22
<      ODBC=off: ODBC database backend
---
>      ODBC=on: ODBC database backend
[1]# 

Result:
- build of gdal-3.6.2 fails with:

...
-- GDAL_ABI_FULL_VERSION = 32.3.6.2
-- GDAL_SOVERSION        = 32
-- Found ODBC: /usr/local/lib/libodbc.so  found components: ODBCINST
-- Could NOT find ODBCCPP (missing: ODBCCPP_LIBRARY ODBCCPP_INCLUDE_DIR)
-- Could NOT find MSSQL_ODBC (missing: MSSQL_ODBC_LIBRARY
MSSQL_ODBC_INCLUDE_DIR MSSQL_ODBC_VERSION)
-- Could NOT find MySQL (missing: MYSQL_LIBRARY) (found version "5.7.40")
CMake Error at cmake/helpers/CheckDependentLibraries.cmake:178 (message):
  Configured to use MYSQL, but not found
Call Stack (most recent call first):
  cmake/helpers/CheckDependentLibraries.cmake:260 (gdal_check_package)
  gdal.cmake:264 (include)
  CMakeLists.txt:224 (include)


-- Configuring incomplete, errors occurred!
See also
"/usr/tmp/net/hal/z/SRC/FreeBSD/ports/MBi/main/graphics/gdal/work/.build/CMakeFiles/CMakeOutput.log".
See also
"/usr/tmp/net/hal/z/SRC/FreeBSD/ports/MBi/main/graphics/gdal/work/.build/CMakeFiles/CMakeError.log".
*** Error code 1

Stop.
make[1]: stopped in /net/hal/z/SRC/FreeBSD/ports/MBi/main/graphics/gdal
*** Error code 1

Stop.
make: stopped in /net/hal/z/SRC/FreeBSD/ports/MBi/main/graphics/gdal

-- Martin

-- 
You are receiving this mail because:
You are the assignee for the bug.