Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 7 Aug 2001 15:50:25 -0700
From:      John Merryweather Cooper <jmcoopr@webmail.bmi.net>
To:        Rob <europax@home.com>
Cc:        ports@freebsd.org
Subject:   Re: ports/29519: X11 ports generate undef pthread refs with XFree86-4.10 port
Message-ID:  <20010807155025.A50843@johncoop.MSHOME>
In-Reply-To: <200108072234.f77MYY470658@freefall.freebsd.org>; from europax@home.com on Tue, Aug 07, 2001 at 03:34:34PM -0700
References:  <200108072234.f77MYY470658@freefall.freebsd.org>

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

--jI8keyz6grp/JLjh
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Tue, Aug 07, 2001 at 03:34:34PM -0700, Rob wrote:
>=20
> >Number:         29519
> >Category:       ports
> >Synopsis:       X11 ports generate undef pthread refs with XFree86-4.10 =
port
> >Confidential:   no
> >Severity:       non-critical
> >Priority:       low
> >Responsible:    freebsd-ports
> >State:          open
> >Quarter:       =20
> >Keywords:      =20
> >Date-Required:
> >Class:          sw-bug
> >Submitter-Id:   current-users
> >Arrival-Date:   Tue Aug 07 15:40:00 PDT 2001
> >Closed-Date:
> >Last-Modified:
> >Originator:     Rob
> >Release:        4.0-STABLE
> >Organization:
> >Environment:
> FreeBSD c888746-a.bvrtn1.or.home.com 4.3-STABLE FreeBSD 4.3-STABLE #0:
> Wed Jul 25 21:08:48 PDT 2001     rob@c888746-a.bvrtn1.or.home.com:/usr/src
> sys/compile/LAPTOP i386
> >Description:
> ports using Mesa, OpenGL, or Open Motif generate undefined pthread refs
>=20
> eg.=20
>=20
> Script started on Sat Aug  4 19:11:52 2001
> =3D=3D=3D>  Building for vtk-3.2
> cd wrap;        make - all
> cd common;     make - targets.make
> `targets.make' is up to date.
> cd common;     make - all
> cd graphics;   make - targets.make
> `targets.make' is up to date.
> cd graphics;   make - all
> cd imaging;    make - targets.make
> `targets.make' is up to date.
> cd imaging;    make - all
> cd contrib;     make - targets.make
> `targets.make' is up to date.
> cd contrib;     make - all
> cd tcl;        make - vtk
> c++ -o vtk tkAppInit.o  -L. -O2 -D__NO_MATH_INLINES  -fPIC -I.  -I./../co=
mmon -I../common -I/usr/local/include/tk8.3/generic -I/usr/local/include/tc=
l8.3/generic  -I/usr/X11R6/include   -I/usr/X11R6/include   -I./../graphics=
 -DVTK_USE_GRAPHICS -I./../imaging -DVTK_USE_IMAGING -I./../contrib -DVTK_U=
SE_CONTRIB     -L/usr/ports/math/vtk/work/vtk3.2/contrib -lVTKContribTcl -l=
VTKContrib          -L/usr/ports/math/vtk/work/vtk3.2/imaging -lVTKImagingT=
cl -lVTKImaging  -L/usr/ports/math/vtk/work/vtk3.2/graphics -lVTKGraphicsTc=
l -lVTKGraphics       -L../common -lVTKCommonTcl -lVTKCommon  -L/usr/X11R6/=
lib /usr/X11R6/lib/libMesaGL.so   /usr/local/lib/libtk83.so /usr/local/lib/=
libtcl83.so     -L/usr/X11R6/lib -lXext -lXt -lSM -lICE -lX11 -lstdc++ -lgc=
c -lm
> /usr/X11R6/lib/libMesaGL.so: undefined reference to `pthread_getspecific'
> /usr/X11R6/lib/libMesaGL.so: undefined reference to `pthread_key_create'
> /usr/X11R6/lib/libMesaGL.so: undefined reference to `pthread_setspecific'
> *** Error code 1
>=20
> Stop in /usr/ports/math/vtk/work/vtk3.2/tcl.
> *** Error code 1
>=20
> Stop in /usr/ports/math/vtk/work/vtk3.2.
> *** Error code 1
>=20
> Stop in /usr/ports/math/vtk.
> *** Error code 1
>=20
> Stop in /usr/ports/math/vtk.
> *** Error code 1
>=20
> Stop in /usr/ports/math/vtk.
>=20
> Script done on Sat Aug  4 19:11:58 2001
>=20
> >How-To-Repeat:
> go to /usr/ports/math/vtk,   make
> >Fix:
> perhaps libGL is not built with -pthreads
> >Release-Note:
> >Audit-Trail:
> >Unformatted:
>=20
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-ports" in the body of the message
>=20

No, the fix is cleaning up the breakage after Mesa3 went to
-pthreads.  Just about every port with a LIB_DEPENDS on Mesa3
has/will have this problem.

The fix is to liberally append ${PTHREADS_LIBS} to the LIBS
used in the builds, and make the ${PTHREADS_LIBS} visible at
the build-level Makefile.

jmc
--jI8keyz6grp/JLjh
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: PGP 6.5.8

iQEVAwUBO3BwrmGGTW8Cfs9HAQEHbAgAk3sRhYIhzsjPu4PG1Ks3ZwoDpdsOkeo2
90C1/FjVsNH0kKWJSqbWqki6TJaqLKZTy0VqPDJXUn9KPpM0cf8g6gDVA9fMMHx8
zpDQnFAX2Ttlpi+qYhJnmt1iTz9O2P0CkRof0MdEy/GyFKgTYAkySU1kggKLonPL
lqYBKKG4w3O6V4XxR/emIIi7Sj+GAGd7t0AytDwKaMWHqAFDmWcXDa5JaiV9BBJe
50m+VVl3Uw3fAET9A9WLd9XQjt1j1XgHP/FDZdxdtfG+RtOv2m3cxsEIaJTXL8EO
u8V2YZjBBtQZB5Fr4lm+9iVErS5bNa7b94qTG9vTuQN2+QTYWpSeEQ==
=Pxg0
-----END PGP SIGNATURE-----

--jI8keyz6grp/JLjh--

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?20010807155025.A50843>