Subject: Re: pthread problem.
To: Pritesh <shahpritesh_email@excite.com>
From: Lubomir Sedlacik <salo@Xtrmntr.org>
List: tech-pkg
Date: 06/26/2003 21:40:23
--IS0zKkzwUGydFO0o
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

hi,

On Thu, Jun 26, 2003 at 01:42:08PM -0400, Pritesh wrote:
>=20
> I was trying to build a package (mim- viewing mpeg) and when i was
> trying to 'make' - it showed the following:=20
>=20
> gcc: unrecognized option '-pthread'
>=20
> Then i looked at the configure.in which had a part that looked like
> this:
>=20
> if test "$SYSTEM" =3D "freebsd"; then MIMCC=3D"gcc -DLIL_ENDIAN
> -DRTP_LITTLE_ENDIAN -DREENTRANT -Wall" MIMCFLAGS=3D"-pthread"
> MIMLIBS=3D"-lc_r" fi if test "$SYSTEM" =3D "solaris"; then MIMCC=3D"gcc
> -DBIG_ENDIAN -DRTP_BIG_ENDIAN -DREENTRANT -DNEED_INET_NTOP -Wall"
> MIMCFLAGS=3D"" MIMLIBS=3D"-lpthread -lsocket -lnsl" fi if test "$SYSTEM" =
=3D
> "generic"; then MIMCC=3D"gcc -DLIL_ENDIAN -DRTP_LITTLE_ENDIAN
> -DREENTRANT -Wall" MIMCFLAGS=3D"-pthread" MIMLIBS=3D"-pthread" fi
>=20
>=20
> I then added some extra lines for netbsd system test :
>=20
> if test "$SYSTEM" =3D "netbsd"; then MIMCC=3D"gcc -DLIL_ENDIAN
> -DRTP_LITTLE_ENDIAN -DREENTRANT -Wall" MIMCFLAGS=3D""
> MIMLIBS=3D"-lpthread" fi
>=20
> i also made the required changes to configure also and then made
> patches.
>=20
> Now with this its showing the following when i 'make' :
>=20
>                                 ld: cannot find -lpthread
>=20
> I have also installed mit-pthread but it did not help. Can someone
> please help me out.

are you sure you included mk/pthread.buildlink2.mk in your package's
Makefile? =20


regards,

--=20
-- Lubomir Sedlacik <salo@Xtrmntr.org>                   --
--                  <salo@silcnet.org>                   --

--IS0zKkzwUGydFO0o
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (NetBSD)

iD8DBQE++0wniwjDDlS8cmMRAhQ3AJwM/agOuX16IBJclX8QqChAS3kJnQCfcKck
kr1T2GN1SaWD0OfPBi7sJmw=
=bCdX
-----END PGP SIGNATURE-----

--IS0zKkzwUGydFO0o--