Created attachment 125709 [details] [PATCH] external: Link PostgreSQL with `-lpthread` Building LibreOffice 5.1.3.2 fails due to an error in the configure script of the external project `posgresql` [1][2]. ``` $ make -j --prefix=… […] configure: error: library 'ldap_r' is required for LDAP [CXX] dbaccess/source/ui/tabledesign/TableUndo.cxx /dev/shm/bee-root/libreoffice/libreoffice-5.1.3.2-0/source/external/postgresql/ExternalProject_postgresql.mk:54: recipe for target '/dev/shm/bee-root/libreoffice/libreoffice-5.1.3.2-0/build/workdir/ExternalProject/postgresql/build' failed make[1]: *** [/dev/shm/bee-root/libreoffice/libreoffice-5.1.3.2-0/build/workdir/ExternalProject/postgresql/build] Error 1 make[1]: *** 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. [1] https://ask.libreoffice.org/en/question/28279/configure-error-library-ldap_r-is-required-for-ldap-make1-usrsrclibreoffice-4142workdirunxlngx6proexternalprojectpostgresqlbuild-cuo-wu-1/ [2] https://ask.libreoffice.org/en/question/48589/make-from-source-ldap-error/ [3] http://pastebin.com/NULYyZ6r
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?
Hello, 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.