pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/46882: databases/postgresql91-server configure error (with quick hack patch)

>Number:         46882
>Category:       pkg
>Synopsis:       databases/postgresql91-server configure error (with quick hack 
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Aug 31 04:45:00 +0000 2012
>Originator:     Toshiaki NOZAWA
>Release:        6.0_RC1
NetBSD mebinoz 6.0_RC1 NetBSD 6.0_RC1 (GENERIC) #17: Tue Aug 21 14:23:00 JST 
2012  tos@mebinoz:/usr/obj/sys/arch/amd64/compile/GENERIC amd64
It happens error at "make configure".

> make configure
checking thread safety of required library functions... no
configure: error: thread test program failed
This platform is not thread-safe.  Check the file 'config.log' or compile
and run src/test/thread/thread_test for the exact reason.
Use --disable-thread-safety to disable thread safety.
*** Error code 1

make: stopped in /usr/pkgsrc/databases/postgresql91-server
WARNING: Please add USE_TOOLS+=perl to the package Makefile.
*** Error code 1


cd /usr/pkgsrc/databases/postgresql91-server
make configure
It has "-lpthreads" option but it looks like lacking "-lpthread" for NetBSD.
It should correct original configure file perhaps, but I changed pkgsrc's 
Makefile for quick hack.

Following patch will complete "make && make install".

> cvs diff databases/postgresql91-server/Makefile
Index: databases/postgresql91-server/Makefile
RCS file: /cvsroot/pkgsrc/databases/postgresql91-server/Makefile,v
retrieving revision 1.3
diff -u -r1.3 Makefile
--- databases/postgresql91-server/Makefile      1 Jul 2012 19:49:25 -0000      
+++ databases/postgresql91-server/Makefile      31 Aug 2012 04:42:34 -0000
@@ -22,6 +22,7 @@
 LIBS.SunOS+=   -lintl
+LIBS.NetBSD+=  -lpthread
 # PostgreSQL has loadable server-side language modules.

Home | Main Index | Thread Index | Old Index