From owner-freebsd-ports Mon Jun 10 8: 0:29 2002 Delivered-To: freebsd-ports@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 1896D37B407 for ; Mon, 10 Jun 2002 08:00:13 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g5AF0D552161; Mon, 10 Jun 2002 08:00:13 -0700 (PDT) (envelope-from gnats) Received: from goldrake.psitrust.com (adsl203-148-081.mclink.it [213.203.148.81]) by hub.freebsd.org (Postfix) with ESMTP id 43CE537B400 for ; Mon, 10 Jun 2002 07:52:23 -0700 (PDT) Received: from gundam.psitrust.com (gundam.psitrust.com [10.1.1.21]) by goldrake.psitrust.com (8.11.3/8.11.3) with ESMTP id g5AErDv01923 for ; Mon, 10 Jun 2002 16:53:13 +0200 (CEST) (envelope-from sandro@goldrake.psitrust.com) Received: from gundam.psitrust.com (localhost.psitrust.com [127.0.0.1]) by gundam.psitrust.com (8.12.3/8.12.3) with ESMTP id g5AEqJG8065974 for ; Mon, 10 Jun 2002 16:52:19 +0200 (CEST) (envelope-from sandro@gundam.psitrust.com) Received: (from sandro@localhost) by gundam.psitrust.com (8.12.3/8.12.3/Submit) id g5AEqIpS065973; Mon, 10 Jun 2002 16:52:18 +0200 (CEST) Message-Id: <200206101452.g5AEqIpS065973@gundam.psitrust.com> Date: Mon, 10 Jun 2002 16:52:18 +0200 (CEST) From: Sandro Tolaini Reply-To: Sandro Tolaini To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: ports/39107: _REENTRANT not defined in PTHREAD_CFLAGS Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 39107 >Category: ports >Synopsis: _REENTRANT not defined in PTHREAD_CFLAGS >Confidential: no >Severity: serious >Priority: high >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Jun 10 08:00:12 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Sandro Tolaini >Release: FreeBSD 4.6-PRERELEASE i386 >Organization: >Environment: System: FreeBSD gundam.psitrust.com 4.6-PRERELEASE FreeBSD 4.6-PRERELEASE #0: Thu May 9 11:19:04 CEST 2002 root@gundam.psitrust.com:/usr/obj/usr/src/sys/INTELLISTATION i386 >Description: bsd.ports.mk defines a PTHREAD_CFLAGS variable with -D_THREAD_SAFE value. Unfortunately, some software (notably, STLpoort) requires -D_REENTRANT to be defined, too. Even math.h include file requires this. On many platforms, gcc autagically defines -D_REENTRANT when -pthread flag is given, but this is not the case with stock gcc found on FreeBSD (and with gcc295 and gcc31 ports). STLport build relies on _REENTRANT to determine if the default allocators should use locking. Lack of _REENTRANT produces a non thread safe string class, for example. >How-To-Repeat: >Fix: Add -D_REENTRANT to PTHREAD_CFLAGS. >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message