pg_cron icon indicating copy to clipboard operation
pg_cron copied to clipboard

pg_cron cannot be compiled against Postgres 1.5

Open CMUboy opened this issue 2 years ago • 3 comments

On an Apple Silicon-based Mac:

Undefined symbols for architecture arm64:
  "_libintl_ngettext", referenced from:
      _PgCronLauncherMain in pg_cron.o
ld: symbol(s) not found for architecture arm64

On an Intel-based Mac:

Undefined symbols for architecture x86_64:
  "_libintl_ngettext", referenced from:
      _PgCronLauncherMain in pg_cron.o
ld: symbol(s) not found for architecture x86_64

I suspect the gettext lib has changed.

Postgres 1.5 is using gettext v0.21.

CMUboy avatar May 13 '23 22:05 CMUboy

Same issue here (Apple Silicon)

mmisiewicz avatar Aug 19 '23 22:08 mmisiewicz

Modifying line 19 of the Makefile to SHLIB_LINK = $(libpq) -L/opt/homebrew/Cellar/gettext/0.21.1/lib -lintl got it to compile, though clearly a dirty hack

mmisiewicz avatar Aug 19 '23 22:08 mmisiewicz

Same here, I just added -lintl to the SHLIB_LINK and it worked.

SHLIB_LINK = $(libpq) -lintl

timwmillard avatar Nov 12 '23 18:11 timwmillard