Bug 87484

Summary: [patch] devel/boehm-gc does not compile on amd64 with THREADING
Product: Ports & Packages Reporter: Vasil Dimov <vd>
Component: Individual Port(s)Assignee: MANTANI Nobutaka <nobutaka>
Status: Closed FIXED    
Severity: Affects Only Me CC: nobutaka
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
boehm-gc_threads-amd64.diff none

Description Vasil Dimov 2005-10-15 15:10:15 UTC
devel/boehm-gc fails to compile on amd64 when option THREADING is
defined.

Included patch just adds the missing macros. I have not tested it
in other means than: 1. it compiles ok; 2. make check does not
emit errors.

I indulged in adding a check target to aid with testing, fixing the
innocent configure warning and changing HAS_CONFIGURE to GNU_CONFIGURE,
because it is GNU configure we actually have.

How-To-Repeat: 
# uname -m
amd64

/usr/ports/devel/boehm-gc# make clean rmconfig
/usr/ports/devel/boehm-gc# make  (turn on THREADING)
...
cc -DPACKAGE_NAME=\"gc\" -DPACKAGE_TARNAME=\"gc\" -DPACKAGE_VERSION=\"6.6\" "-DPACKAGE_STRING=\"gc 6.6\"" -DPACKAGE_BUGREPORT=\"Hans.Boehm@hp.com\" -DGC_VERSION_MAJOR=6 -DGC_VERSION_MINOR=6 -DPACKAGE=\"gc\" -DVERSION=\"6.6\" -DGC_FREEBSD_THREADS=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DSILENT=1 -DNO_SIGNALS=1 -DNO_EXECUTE_PERMISSION=1 -DALL_INTERIOR_POINTERS=1 -DJAVA_FINALIZATION=1 -DGC_GCJ_SUPPORT=1 -DATOMIC_UNCOLLECTABLE=1 -I./include -pthread -fexceptions -pipe -g -march=athlon64 -fexceptions -MT pthread_support.lo -MD -MP -MF .deps/pthread_support.Tpo -c pthread_support.c  -fPIC -DPIC -o .libs/pthread_support.lo
pthread_support.c: In function `GC_pthread_sigmask':
pthread_support.c:965: error: `SIGRTMIN' undeclared (first use in this function)
pthread_support.c:965: error: (Each undeclared identifier is reported only once
pthread_support.c:965: error: for each function it appears in.)
*** Error code 1

Stop in /usr/ports/devel/boehm-gc/work/gc6.6.
*** Error code 1

Stop in /usr/ports/devel/boehm-gc/work/gc6.6.
*** Error code 1

Stop in /usr/ports/devel/boehm-gc.
Comment 1 Norikatsu Shigemura freebsd_committer freebsd_triage 2005-10-15 15:42:50 UTC
Responsible Changed
From-To: freebsd-ports-bugs->nobutaka

Over to maintainer.
Comment 2 MANTANI Nobutaka freebsd_committer freebsd_triage 2005-10-23 01:01:44 UTC
State Changed
From-To: open->closed

Committed, thanks!