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 
>patch)
>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
>Organization:
>Environment:
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
>Description:
It happens error at "make configure".

> make configure
(snip)
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

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

Stop.



>How-To-Repeat:
cd /usr/pkgsrc/databases/postgresql91-server
make configure
>Fix:
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      
1.3
+++ databases/postgresql91-server/Makefile      31 Aug 2012 04:42:34 -0000
@@ -22,6 +22,7 @@
 BUILD_DIRS+=   ${INSTALL_DIRS}
 
 LIBS.SunOS+=   -lintl
+LIBS.NetBSD+=  -lpthread
 
 # PostgreSQL has loadable server-side language modules.
 #
--------------------



Home | Main Index | Thread Index | Old Index