Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 07 Aug 2001 16:01:17 -0700
From:      Rob <europax@home.com>
To:        John Merryweather Cooper <jmcoopr@webmail.bmi.net>
Cc:        ports@FreeBSD.ORG
Subject:   Re: ports/29519: X11 ports generate undef pthread refs with XFree86-4.10  port
Message-ID:  <3B70733D.AD7BA887@home.com>
References:  <200108072234.f77MYY470658@freefall.freebsd.org> <20010807155025.A50843@johncoop.MSHOME>

next in thread | previous in thread | raw e-mail | index | archive | help
John Merryweather Cooper wrote:
> 
> On Tue, Aug 07, 2001 at 03:34:34PM -0700, Rob wrote:
> >
> > >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:
> > >Keywords:
> > >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
> >
> > eg.
> >
> > Script started on Sat Aug  4 19:11:52 2001
> > ===>  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./../common -I../common -I/usr/local/include/tk8.3/generic -I/usr/local/include/tcl8.3/generic  -I/usr/X11R6/include   -I/usr/X11R6/include   -I./../graphics -DVTK_USE_GRAPHICS -I./../imaging -DVTK_USE_IMAGING -I./../contrib -DVTK_USE_CONTRIB     -L/usr/ports/math/vtk/work/vtk3.2/contrib -lVTKContribTcl -lVTKContrib          -L/usr/ports/math/vtk/work/vtk3.2/imaging -lVTKImagingTcl -lVTKImaging  -L/usr/ports/math/vtk/work/vtk3.2/graphics -lVTKGraphicsTcl -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++ -lgcc -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
> >
> > Stop in /usr/ports/math/vtk/work/vtk3.2/tcl.
> > *** Error code 1
> >
> > Stop in /usr/ports/math/vtk/work/vtk3.2.
> > *** Error code 1
> >
> > Stop in /usr/ports/math/vtk.
> > *** Error code 1
> >
> > Stop in /usr/ports/math/vtk.
> > *** Error code 1
> >
> > Stop in /usr/ports/math/vtk.
> >
> > Script done on Sat Aug  4 19:11:58 2001
> >
> > >How-To-Repeat:
> > go to /usr/ports/math/vtk,   make
> > >Fix:
> > perhaps libGL is not built with -pthreads
> > >Release-Note:
> > >Audit-Trail:
> > >Unformatted:
> >
> > To Unsubscribe: send mail to majordomo@FreeBSD.org
> > with "unsubscribe freebsd-ports" in the body of the message
> >
> 
> 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
> 
>   ------------------------------------------------------------------------
>    Part 1.2Type: application/pgp-signature


Thanks!  I have a much simpler Animabob program that I can try to build
with your suggestions.  Vtk took longer to get to the error point than
the entire X port took to build :)    Rob.

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?3B70733D.AD7BA887>