Hey Daniel, > > "/home/sapdb/maxdb-76/sys/wrk/incl/SAPDB/MemoryDebugger/MemDbg > > _Header.hp\ > > p", line 51: Error: MemDbg_Header::enum is not within the > > range of a lon\ > > g or unsigned long. > [...]
[...] > Replace all the expressions in the enum with constants. Then > add the original expressions one by one. This way, we can see > which expression the compiler doesn't like. FLAG_QUICKCHK is > supicious as a 32bit value is shifted 31 bits. And the error > line is right after it. I did the following (which finally worked): # define SIZE_BITS 14 # define MAX_SIZE (1 << SIZE_BITS) - 1 # define BLKSIZE_SHIFT 23 # define SIZE_OVERFLOW SIZE_BITS - (32 - BLKSIZE_SHIFT) # define FLAG_SHIFT BLKSIZE_SHIFT + SIZE_OVERFLOW # define TRACE_MASK (1<<BLKSIZE_SHIFT) - 1 # define FLAG_MASK -1 << FLAG_SHIFT # define NOLEAK TRACE_MASK # define FLAG_DBKP (1 << FLAG_SHIFT) # define FLAG_FENCE (1 << (FLAG_SHIFT + 1)) # define FLAG_FREECHK (1 << (FLAG_SHIFT + 2)) # define FLAG_QUICKCHK (1UL << (FLAG_SHIFT + 3)) an then replacing all occurences of "MemDbgHeader::<constant name>" with <constant name>. It still issues the warnings MemDbg_Interface.cpp fast "MemDbg_Interface.cpp", line 499: Warning: Shift count is too large. "MemDbg_Interface.cpp", line 637: Warning: Shift count is too large. "MemDbg_Interface.cpp", line 687: Warning: Shift count is too large. "MemDbg_Interface.cpp", line 1048: Warning: Shift count is too large. "MemDbg_Interface.cpp", line 1066: Warning: Shift count is too large. 5 Warning(s) detected. but I was able to build. Don't know if this is right but I assume so. Patches follow subsequently :-) Thanx! Greetz, SIEGENIA-AUBI KG Informationswesen i.A. Markus D�hr SAP-CC/BC, SAPDB-DBA Tel.: +49 6503 917-152 Fax: +49 6503 917-7152 E-Mail: [EMAIL PROTECTED] Internet: http://www.siegenia-aubi.com -- MaxDB Discussion Mailing List For list archives: http://lists.mysql.com/maxdb To unsubscribe: http://lists.mysql.com/[EMAIL PROTECTED]
