HomeFreeBSD

databases/postgresql-ogr_fdw: Fix build with gdal 3.13.0+

Description

databases/postgresql-ogr_fdw: Fix build with gdal 3.13.0+

cc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Werror=unguarded-availability-new -Wendif-labels -Wmissing-format-attribute -Wcast-function-type -Wformat-security -Wmissing-variable-declarations -fno-strict-aliasing -fwrapv -fexcess-precision=standard -Wno-unused-command-line-argument -Wno-compound-token-split-by-macro -Wno-format-truncation -Wno-cast-function-type-strict -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -fPIC -DPIC -fvisibility=hidden -I/usr/local/include -I. -I./ -I/usr/local/include/postgresql/server -I/usr/local/include/postgresql/internal -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -c -o stringbuffer.o stringbuffer.c
ogr_fdw_info.c:67:17: warning: call to undeclared function 'MIN'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]

67 |         int len = (int)MIN(strlen(ident), NAMEDATALEN - 1);
   |                        ^

1 warning generated.
cc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Werror=unguarded-availability-new -Wendif-labels -Wmissing-format-attribute -Wcast-function-type -Wformat-security -Wmissing-variable-declarations -fno-strict-aliasing -fwrapv -fexcess-precision=standard -Wno-unused-command-line-argument -Wno-compound-token-split-by-macro -Wno-format-truncation -Wno-cast-function-type-strict -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -fPIC -DPIC -fvisibility=hidden -o ogr_fdw_info ogr_fdw_info.o ogr_fdw_common.o stringbuffer.o -L/usr/local/lib -lgdal
ld: error: undefined symbol: MIN

referenced by ogr_fdw_info.c

ogr_fdw_info.o:(quote_identifier)

referenced by ogr_fdw_info.c

ogr_fdw_info.o:(main)

cc: error: linker command failed with exit code 1 (use -v to see invocation)
gmake: *** [Makefile:76: ogr_fdw_info] Error 1

Obtained from: https://github.com/pramsey/pgsql-ogr-fdw/commit/fba0f6f7c97b0c162b996e1796fffb30abe9b38d
Approved by: portmgr (blanket)

Details

Provenance
sunpoetAuthored on May 12 2026, 9:17 AM
Parents
R11:3bbc0d870c7d: textproc/rubygem-ox: Update to 2.14.26
Branches
Unknown
Tags
Unknown

Event Timeline

Still Importing...

This commit is still importing. Changes will be visible once the import finishes.