Subject: Re: pkg/30255
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: Jeremy C. Reed <reed@reedmedia.net>
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" <reed@reedmedia.net>
To: Joerg Sonnenberger <joerg@britannica.bec.de>
Cc: gnats-bugs@netbsd.org
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/libqt-mt.so: 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 libqt-mt.la, 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)'
NEEDED libc_r.so.5
NEEDED libc.so.6
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
http://www.bsdnewsletter.com/