Solaris, compile warning: "_FILE_OFFSET_BITS" redefined and core dump

I'm trying to get tor-0.2.8.5-rc running, but compile warnings and core dumps. ( tor-0.2.7.6 works )

Environment: Solaris 10, Intel 32bit, gcc 5.2.0

When compiling I get the warnings like these:

"... In file included from src/test/test-child.c:5:0: ./orconfig.h:689:0: warning: "_FILE_OFFSET_BITS" redefined

#define _FILE_OFFSET_BITS 64

In file included from /usr/include/stdio.h:21:0,

from src/test/test-child.c:4:

/opt/csw/lib/gcc/i386-pc-solaris2.10/5.2.0/include-fixed/sys/feature_[tests.h:196:0 tests.h:196:0]: note: this is the location of the previous definition

#define _FILE_OFFSET_BITS 32

..."

The binary gets build, but when I run: gmake test or gmake install and start tor, it dies with a core dump.

tor-0.2.7.6 runs fine

Please help getting the issue fixed, any help is appreciated!

Thanks.

Regards Rainer

Trac:
Username: RainerSchmidt