On Tue, 4 Dec 2018 16:46:46 +0000
John Gould <[email protected]> wrote:

> Well I have mariadb now builds, thank you. After a long time compiling qt4
> I get a failure from x11/grantlee.

Sorry, I don't know the fix for this one.  My first suggestion is to
delete -Wl,--no-undefined from the compiler flags.

This was a similar failure in the powerpc bulk of 17 Nov:
http://build-failures.rhaalovely.net//powerpc/2018-11-01/x11/grantlee.log

The log shows a shared object being linked like
c++ -fPIC ... -Wl,--no-undefined -shared -o .../myplugin.so ... -lc

OpenBSD's linker doesn't link shared objects to libc.  The flag
-Wl,--no-undefined works in other systems but often causes errors in
OpenBSD, because libc functions like malloc() and strlen() are
undefined.  Someone tried to work around these errors by adding -lc to
link this myplugin.so to libc; but pthread_cancel() isn't in libc.

pthread_cancel() is in libestdc++ (as a weak symbol) or in libpthread.
Builds don't use -lestdc++ because the C++ compiler needs to pick the
correct library (one of libc++, libestdc++, libstdc++).

-- 
George Koehler <[email protected]>

Reply via email to