pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/32173: [Solaris] devel/boehm-gc does not compile with Studio 11



>Number:         32173
>Category:       pkg
>Synopsis:       [Solaris] devel/boehm-gc does not compile with Studio 11
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Nov 27 13:52:00 +0000 2005
>Originator:     NAKAJI Hiroyuki
>Release:        Solaris 10 (x86)
>Organization:
>Environment:
SunOS mokuba.heimat.gr.jp 5.10 Generic_118844-20 i86pc i386 i86pc

>Description:
C++ of Sun Studio 11 does not compile devel/boehm-gc.
(Of cource, g++ can)

 CC -DPACKAGE_NAME=\"gc\" -DPACKAGE_TARNAME=\"gc\" -DPACKAGE_VERSION=\"6.6\" 
"-DPACKAGE_STRING=\"gc 6.6\"" 
-DPACKAGE_BUGREPORT=\"Hans.Boehm%hp.com@localhost\" -DGC_VERSION_MAJOR=6 
-DGC_VERSION_MINOR=6 -DPACKAGE=\"gc\" -DVERSION=\"6.6\" -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. -I./include -O -c gc_cpp.cc  
-KPIC -DPIC -o .libs/gc_cpp.o
"./include/gc_cpp.h", line 216: Error: Default parameters are not allowed for 
operator new(unsigned).
"./include/gc_cpp.h", line 261: Error: Default parameters are not allowed for 
operator new[](unsigned).
"gc_cpp.cc", line 29: Warning (Anachronism): The prior declaration for operator 
new(unsigned) has an exception specification.
"gc_cpp.cc", line 32: Warning (Anachronism): The prior declaration for operator 
delete(void*) has an exception specification.
"gc_cpp.cc", line 37: Warning (Anachronism): The prior declaration for operator 
new[](unsigned) has an exception specification.
"gc_cpp.cc", line 40: Warning (Anachronism): The prior declaration for operator 
delete[](void*) has an exception specification.
2 Error(s) and 4 Warning(s) detected.
gmake[1]: *** [gc_cpp.lo] Error 1
gmake[1]: Leaving directory `/usr/pkgsrc/devel/boehm-gc/work/gc6.6'

>How-To-Repeat:
cd /usr/pkgsrc/devel/boehm-gc
bmake install
>Fix:
Remove the "=0" in "./include/gc_cpp.h", line 216 and 261. But I'm not sure of 
C++ rules.




Home | Main Index | Thread Index | Old Index