[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: pthread-h: fix link errors with --enable-threads=isoc on AIX

From: Bruno Haible
Subject: Re: pthread-h: fix link errors with --enable-threads=isoc on AIX
Date: Tue, 03 Dec 2019 05:00:36 +0100
User-agent: KMail/5.1.3 (Linux/4.4.0-166-generic; KDE/5.18.0; x86_64; ; )

> 2019-12-01  Bruno Haible  <address@hidden>
>       pthread-h: Fix link errors with --enable-threads=isoc on AIX.

This patch was not entirely correct. With --enable-threads=isoc --with-c++-tests
on AIX, I see a link error:

xlC -q64 -qthreaded -qtls    -L/home/haible/prefix64/lib -o test-pthread-c++ 
test-pthread-c++.o libtests.a ../gllib/libgnu.a libtests.a  -lpthread 
ld: 0711-317 ERROR: Undefined symbol: rpl_pthread_rwlockattr_destroy
ld: 0711-317 ERROR: Undefined symbol: rpl_pthread_rwlockattr_init
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
gmake[4]: *** [test-pthread-c++] Error 8

The attached two patches fix it.

2019-12-02  Bruno Haible  <address@hidden>

        Fix some more link errors with --enable-threads=isoc.
        * modules/pthread-mutex (Depends-on): Test $gl_threads_api differently.
        * modules/pthread-rwlock (Depends-on): Likewise.

2019-12-02  Bruno Haible  <address@hidden>

        Fix mistakes in --enable-threads=isoc fixes from 2019-12-01.
        * m4/pthread-mutex.m4 (gl_PTHREAD_MUTEX): Use LIBPMULTITHREAD, not
        * m4/pthread-rwlock.m4 (gl_PTHREAD_RWLOCK): Likewise.
        * m4/pthread-thread.m4 (gl_PTHREAD_THREAD): Likewise.
        * m4/timer_time.m4 (gl_TIMER_TIME): Likewise. Require gl_PTHREADLIB, not
        * modules/timer-time (Depends-on): Add pthread-h. Remove threadlib.

Attachment: 0001-Fix-some-more-link-errors-with-enable-threads-isoc.patch
Description: Text Data

Attachment: 0002-Fix-mistakes-in-enable-threads-isoc-fixes-from-2019-.patch
Description: Text Data

reply via email to

[Prev in Thread] Current Thread [Next in Thread]