Subject: Re: pkg/30255
To: None <,,>
From: Jeremy C. Reed <>
List: pkgsrc-bugs
Date: 08/24/2005 16:17:02
The following reply was made to PR pkg/30255; it has been noted by GNATS.

From: "Jeremy C. Reed" <>
To: Joerg Sonnenberger <>
Subject: Re: pkg/30255
Date: Wed, 24 Aug 2005 09:16:06 -0700 (PDT)

 On Wed, 24 Aug 2005, Joerg Sonnenberger wrote:
 >> /home/reed/pkg/qt3/lib/ undefined reference to `pthread_create'
 > Can you check whether lyx-qt uses libtool for linking or not? In the
 > former case, it should pick up the -pthread from, otherwise
 > it has to be specified explicitly.
 It does use the libtool.
 I made the configure script skip its check for libqt-mt and the rest of 
 the build worked fine and it ran fine. Thanks for the hint.
 I used CONFIGURE_ENV+= qt_cv_libname=-lqt-mt
 I see the lyx binary doesn't link with libpthread but does have:
 objdump -x ~/pkg/bin/lyx | egrep 'NEEDED.*(thread|libc)'
 I had saw some old messages somewhere at gobase about qt3-libs using 
 packages failing unless -pthreads was added so I wonder if libqt-mt should 
 be linked.
 I will contact the lyx-devel list to suggest that their configure script 
 check for threads before checking for libqt-mt.
   Jeremy C. Reed
   	  	 	 BSD News, BSD tutorials, BSD links