[tlbuild] Bug in kpse-icu-flags.m4: a long-standing OpenBSD build failure

Mojca Miklavec mojca.miklavec.lists at gmail.com
Wed Apr 26 10:51:29 CEST 2017


On 25 April 2017 at 23:42, Karl Berry <karl at freefriends.org> wrote:
> Mojca - since you insist, I've theoretically just hacked the Makefiles
> (r44041) so that you can do
>
>   ./Build ICU_LIBS_EXTRA=-lpthreads ...
> (Or maybe env ICU_LIBS_EXTRA=...; seems both should work, but I didn't try.)
>
> ICU_LIBS_EXTRA is supposed to get included after ICU_LIBS, wherever
> ICU_LIBS occurred.  Hope it works.  --karl

Thank you. It gets much further now, but still fails while testing icu
(there are indeed no ICU_LIBS defined there, but configure.ac was
written by Peter):

gmake[5]: Entering directory '/path/to/build/Work/libs/icu'
gcc -DPACKAGE_NAME=\"icu\ \(TeX\ Live\)\"
-DPACKAGE_TARNAME=\"icu--tex-live-\" -DPACKAGE_VERSION=\"58.2\"
-DPACKAGE_STRING=\"icu\ \(TeX\ Live\)\ 58.2\"
-DPACKAGE_BUGREPORT=\"tex-k at tug.org\" -DPACKAGE_URL=\"\"
-DPACKAGE=\"icu--tex-live-\" -DVERSION=\"58.2\" -I.
-I../../../libs/icu  -Iinclude   -g -O2 -MT icutest-icutest.o -MD -MP
-MF .deps/icutest-icutest.Tpo -c -o icutest-icutest.o `test -f
'icutest.c' || echo '../../../libs/icu/'`icutest.c
mv -f .deps/icutest-icutest.Tpo .deps/icutest-icutest.Po
g++  -g -O2   -o icutest icutest-icutest.o icu-build/lib/libicuuc.a
icu-build/lib/libicudata.a
icu-build/lib/libicuuc.a(putil.ao): In function `int_getDefaultCodepage()':
putil.cpp:(.text+0x8f4): warning: warning: strcpy() is almost always
misused, please use strlcpy()
icu-build/lib/libicuuc.a(putil.ao): In function `uprv_getDefaultLocaleID_58':
putil.cpp:(.text+0xa25): warning: warning: strcat() is almost always
misused, please use strlcat()
icu-build/lib/libicuuc.a(umutex.ao): In function
`icu_58::umtx_initImplPostInit(icu_58::UInitOnce&)':
umutex.cpp:(.text+0xb0): undefined reference to `pthread_mutex_lock'
umutex.cpp:(.text+0xc9): undefined reference to `pthread_cond_broadcast'
icu-build/lib/libicuuc.a(umutex.ao): In function
`icu_58::umtx_initImplPreInit(icu_58::UInitOnce&)':
umutex.cpp:(.text+0x1c0): undefined reference to `pthread_mutex_lock'
umutex.cpp:(.text+0x1df): undefined reference to `pthread_cond_wait'
umutex.cpp:(.text+0x1f0): undefined reference to `pthread_mutex_unlock'
umutex.cpp:(.text+0x211): undefined reference to `pthread_mutex_unlock'
icu-build/lib/libicuuc.a(umutex.ao): In function `umtx_lock_58':
umutex.cpp:(.text+0x1f): undefined reference to `pthread_mutex_lock'
icu-build/lib/libicuuc.a(umutex.ao): In function `umtx_condBroadcast_58':
umutex.cpp:(.text+0x31): undefined reference to `pthread_cond_broadcast'
icu-build/lib/libicuuc.a(umutex.ao): In function `umtx_unlock_58':
umutex.cpp:(.text+0x4f): undefined reference to `pthread_mutex_unlock'
icu-build/lib/libicuuc.a(umutex.ao): In function
`icu_58::umtx_initImplPostInit(icu_58::UInitOnce&)':
umutex.cpp:(.text+0xda): undefined reference to `pthread_mutex_unlock'
icu-build/lib/libicuuc.a(umutex.ao): In function `umtx_condWait_58':
umutex.cpp:(.text+0x22f): undefined reference to `pthread_cond_wait'
icu-build/lib/libicuuc.a(umutex.ao): In function `umtx_condSignal_58':
umutex.cpp:(.text+0x241): undefined reference to `pthread_cond_signal'
collect2: ld returned 1 exit status
gmake[5]: *** [Makefile:629: icutest] Error 1

Mojca


More information about the tlbuild mailing list