Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 4 Dec 2002 13:07:02 +0200
From:      Peter Pentchev <roam@ringlet.net>
To:        Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
Cc:        portmgr@FreeBSD.ORG, ports@FreeBSD.ORG
Subject:   Re: [PATCH] PTHREAD_CFLAGS/LIBS on sparc64
Message-ID:  <20021204110702.GP365@straylight.oblivion.bg>
In-Reply-To: <20021203155143.22703.qmail@exxodus.fedaykin.here>
References:  <20021127155317.GG375@straylight.oblivion.bg> <20021203155143.22703.qmail@exxodus.fedaykin.here>

next in thread | previous in thread | raw e-mail | index | archive | help

--+hz2tM55CCA8Ej21
Content-Type: text/plain; charset=windows-1251
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Tue, Dec 03, 2002 at 01:51:21PM -0200, Mario Sergio Fujikawa Ferreira wr=
ote:
> On Wed, Nov 27, 2002 at 05:52:55PM +0200, Peter Pentchev wrote:
> > Hi,
> >=20
> > Since it seems that there is no functioning threads library on sparc64
> > for the present, and there is neither libc_r nor libpthread, could you
> > consider the following patch for bsd.port.mk that will fix ports trying
> > to use PTHREAD_CFLAGS and PTHREAD_LIBS on sparc64?  A prime example is
> > the security/mhash port, which currently fails during the configure
> > stage, as it tries to pass -lc_r to the linker, and belatedly discovers
> > that there is no spoon^Wlibc_r...
> >=20
> > I guess this one might count as a build fix on -CURRENT?
>=20
> 	Well, I apologize if I say something stupid but if a port requires
> pthread support... not linking against it won't make the port work. It mi=
ght
> not even get the port to compile.

This is true in most cases; more than that, this is true for *all* cases
when a port *requires* pthreads support.  However, there are ports that
do not, strictly speaking, require pthreads, but may use the library
when it is available.  The security/mhash port is a prime example: it
works just fine on the Sparc64 arch with either my original bsd.port.mk
patch, or the minimalistic patch I submitted in a response to Kris's
followup.  There may be others, too, which will benefit from the removal
of bogus library specifications without special-casing them for the
sparc64 arch.

G'luck,
Peter

--=20
Peter Pentchev	roam@ringlet.net	roam@FreeBSD.org
PGP key:	http://people.FreeBSD.org/~roam/roam.key.asc
Key fingerprint	FDBA FD79 C26F 3C51 C95E  DF9E ED18 B68D 1619 4553
No language can express every thought unambiguously, least of all this one.

--+hz2tM55CCA8Ej21
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (FreeBSD)

iD8DBQE97eHW7Ri2jRYZRVMRArNIAJ4n3pSEkxkIcM1mk0jpKq9DGCVkKwCeOP1N
zuPBClPXQpWnbVrVCJaT7e8=
=7mkB
-----END PGP SIGNATURE-----

--+hz2tM55CCA8Ej21--

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021204110702.GP365>