Собирал munin на FreeBSD и получил ошибку сборки зависимости libpthread-stubs
—> Installing ‘libpthread-stubs-0.3_3’ from a port (devel/libpthread-stubs)
—> Building ‘/usr/ports/devel/libpthread-stubs’
===> Cleaning for libpthread-stubs-0.3_3
===> License check disabled, port has not defined LICENSE
===> Extracting for libpthread-stubs-0.3_3=> SHA256 Checksum OK for libpthread-stubs-0.3.tar.bz2.
===> Patching for libpthread-stubs-0.3_3
===> Applying FreeBSD patches for libpthread-stubs-0.3_31 out of 1 hunks failed—saving rejects to configure.rej
=> Patch patch-configure-libs failed to apply cleanly.
=> Patch(es) patch-Makefile.in applied cleanly.*** Error code 1
Stop in /usr/ports/devel/libpthread-stubs.
** Command failed [exit code 1]: /usr/bin/script -qa /tmp/portinstall20111206-49541-1rt6v68-0 env make
** Fix the problem and try again.
Устраняем проблему комментированием PTHREAD_LIBS=-lthr в make.conf

- Системный администратор с 2000 года
- Участник Хабр Q&A и cyberforum
- Кейсы