Created attachment 125709 [details]
[PATCH] external: Link PostgreSQL with `-lpthread`
Building LibreOffice 22.214.171.124 fails due to an error in the configure script of the external project `posgresql` .
$ make -j --prefix=…
configure: error: library 'ldap_r' is required for LDAP
/dev/shm/bee-root/libreoffice/libreoffice-126.96.36.199-0/source/external/postgresql/ExternalProject_postgresql.mk:54: recipe for target '/dev/shm/bee-root/libreoffice/libreoffice-188.8.131.52-0/build/workdir/ExternalProject/postgresql/build' failed
make: *** [/dev/shm/bee-root/libreoffice/libreoffice-184.108.40.206-0/build/workdir/ExternalProject/postgresql/build] Error 1
make: *** Waiting for unfinished jobs....
Makefile:244: recipe for target 'build' failed
make: *** [build] Error 2
Adding `-lpthread` to `external/postgresql/ExternalProject_postgresql.mk` fixes that (misleading) error.
Donald: would you be willing to submit the patch to gerrit for review and inclusion? https://wiki.documentfoundation.org/Development/gerrit
(Note the part "Add yourself to the contributor list" in the wiki page).
Created attachment 125762 [details]
[PATCH v2] external: Link PostgreSQL with `-lpthread`
This patch applies cleanly.
(In reply to Paul Menzel from comment #2)
> Created attachment 125762 [details]
> [PATCH v2] external: Link PostgreSQL with `-lpthread`
> This patch applies cleanly.
Can you upload it to gerrit and send your license information to the developer mailing list?
Have you recently tried to build postgresql again with master branch? Does it still fails? if so, could you please submit the fix to gerrit as explained in comment 1?
I have set the bug's status to 'NEEDINFO'. Please change it back to 'UNCONFIRMED' if the bug is still present in the latest version.
Version 5.3.4, 5.3.5 and 5.4.0 built without the patch. I haven’t check the other versions.