Bug 233905 - devel/ticcutils: fix build with GCC-based architectures
Summary: devel/ticcutils: fix build with GCC-based architectures
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Yuri Victorovich
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-12-10 05:43 UTC by Piotr Kubaj
Modified: 2018-12-10 07:01 UTC (History)
2 users (show)

See Also:
bugzilla: maintainer-feedback? (yuri)


Attachments
patch (415 bytes, patch)
2018-12-10 05:43 UTC, Piotr Kubaj
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Piotr Kubaj freebsd_committer freebsd_triage 2018-12-10 05:43:59 UTC
Created attachment 199999 [details]
patch

This port needs CFLAGS+=-D_THREAD_SAFE to build on GCC architectures.

This is needed because of:
   1771 configure:17261: checking whether pthreads work with -pthread
   1772 configure:17355: gcc7 -o conftest -O2 -pipe  -Wl,-rpath=/usr/local/lib/gcc7 -isystem /usr/local/include -fno-strict-aliasing  -pthread -isystem /usr/lo
cal/include -I/usr/include -I/usr/include  -lboost_regex -Wl,-rpath=/usr/local/lib/gcc7 -L/usr/local/lib/gcc7 -L/usr/local/lib  -L/usr/lib -L/usr/lib conftest.
c  -lz  -lbz2 -ltar >&5
   1773 conftest.c:54:6: error: #error "_THREAD_SAFE must be defined"
   1774  #    error "_THREAD_SAFE must be defined"
   1775       ^~~~~

Tested on powerpc64 and amd64.

Hardware sponsored by IntegriCloud.
Comment 1 Yuri Victorovich freebsd_committer freebsd_triage 2018-12-10 07:01:10 UTC
Committed, thanks!
Comment 2 commit-hook freebsd_committer freebsd_triage 2018-12-10 07:01:47 UTC
A commit references this bug:

Author: yuri
Date: Mon Dec 10 07:01:06 UTC 2018
New revision: 487130
URL: https://svnweb.freebsd.org/changeset/ports/487130

Log:
  devel/ticcutils: fix build with GCC-based architectures

  PR:		233905
  Submitted by:	Piotr Kubaj <pkubaj@anongoth.pl>

Changes:
  head/devel/ticcutils/Makefile