Compile Fails on Solaris 10 (gcc)
---------------------------------
Key: TS-778
URL: https://issues.apache.org/jira/browse/TS-778
Project: Traffic Server
Issue Type: Bug
Affects Versions: 2.1.8
Environment: Solaris 10 x86 / gcc 4.4.2
Reporter: Igor Brezac
g++ -DHAVE_CONFIG_H -DMGMT_USE_SYSLOG -I. -I../../lib/ts -I../../proxy/hdrs
-D_LARGEFILE64_SOURCE=1 -D_COMPILE64BIT_SOURCE=1 -D_GNU_SOURCE -D_REENTRANT
-Dsolaris -I/usr/local/include -O3 -m64 -g -pipe -Wall -Werror
-feliminate-unused-debug-symbols -fno-strict-aliasing -Wno-invalid-offsetof -MT
IPRange.o -MD -MP -MF .deps/IPRange.Tpo -c -o IPRange.o IPRange.cc
In file included from ../../lib/ts/Map.h:31,
from ../../lib/ts/libts.h:96,
from IPRange.h:27,
from IPRange.cc:44:
../../lib/ts/Vec.h: In member function 'void Vec<C, A, S>::addx()':
../../lib/ts/Vec.h:627: error: there are no arguments to '__assert' that depend
on a template parameter, so a declaration of '__assert' must be available
../../lib/ts/Vec.h:627: note: (if you use '-fpermissive', G++ will accept your
code, but allowing the use of an undeclared name is deprecated)
In file included from ../../lib/ts/libts.h:96,
from IPRange.h:27,
from IPRange.cc:44:
../../lib/ts/Map.h: In constructor 'MapElem<K, C>::MapElem(uintptr_t)':
../../lib/ts/Map.h:57: error: there are no arguments to '__assert' that depend
on a template parameter, so a declaration of '__assert' must be available
make[2]: *** [IPRange.o] Error 1
make[2]: Leaving directory `/src/trafficserver-2.1.8-unstable/mgmt/preparse'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/src/trafficserver-2.1.8-unstable/mgmt'
make: *** [all-recursive] Error 1
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira