libmap.conf and ports

Michael Nottebrock michaelnottebrock at gmx.net
Wed Jan 5 02:10:54 PST 2005


On Wednesday, 5. January 2005 10:33, msch at snafu.de wrote:
> Hi all,
>
> I have major problems to compile gpgme-1.0.1 on *some* machines (see
> below).
>
> Before all the compile/link-errors one major question:
>
> What about /etc/libmap.conf and the mapping of libc_r to libpthread?
> It was once recommended and I never heard anything about it.
> Is it still recommended?
> Is it mandatory? Or forbidden?
> Or simply no longer necessary?

Depends. If you have ports installed which still link to libc_r, it's better 
to have the mapping in place. However, it's much preferrable to not have 
anything linking to libc_r left. The easiest method of finding out is simply 
moving libc_r out of /usr/lib. If stuff fails, recompile it. Once your system 
is clean of all references, you can put NOLIBC_R=true into make.conf and 
avoid compiling/installing it during upgrades completely.

> And now for the port:
>
> I get the following errors during the compilation of gpgme-1.0.1 in the
> context of a KDE-upgrade:
>
> **************************************************
>
> t-thread1.o(.text+0x857): In function `main':
> : undefined reference to `pthread_create'
>
> t-thread1.o(.text+0x87a): In function `main':
> : undefined reference to `pthread_create'
>
> t-thread1.o(.text+0x88b): In function `main':
> : undefined reference to `pthread_join'
>
> t-thread1.o(.text+0x89c): In function `main':
> : undefined reference to `pthread_join'

Try experimenting with the PTH option on the machines that give you trouble.

-- 
   ,_,   | Michael Nottebrock               | lofi at freebsd.org
 (/^ ^\) | FreeBSD - The Power to Serve     | http://www.freebsd.org
   \u/   | K Desktop Environment on FreeBSD | http://freebsd.kde.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20050105/c9707fc8/attachment.bin


More information about the freebsd-stable mailing list