Compiling pgAudit for PostgreSQL 14

69 views Asked by At

I am working on enabling pgAudit in PostgreSQL 14 by following the steps outlined in the "Build pgAudit against a binary installation of PostgreSQL." However, I am encountering multiple errors during the generation of pgaudit.dll.

Here's a summary of the steps I've taken:

  • Installed PostgreSQL 14 in "D:\Program Files\PostgreSQL"
  • Installed Microsoft Visual Studio 2017 in "C:\Program Files\Microsoft Visual Studio\2017"
  • Downloaded pgAudit-16.0
  • Created a Build folder
  • Copied pgaudit.c to the Build Folder (attached)
  • Created pgaudit.def file in the Build Folder (attached)
  • Created compile_response_file.txt in the Build Folder (attached)
  • Created link_response_file.txt in the Build Folder (attached)

Used the following to compile:

cl /c @.\compile_response_file.txt .\pgaudit.c
link.exe @.\link_response_file.txt /OUT:".\pgaudit.dll" .\pgaudit.obj

enter image description here

Download the Build Folder: https://1drv.ms/f/s!AsE8HLBpjnjdrW3S_9TYxh5nufpy?e=PZ6MRa

0

There are 0 answers