HPCC Clienttools 5.2.0 compile fails on OS X

Environment

OS X

Description

HPCC Clienttools 5.2.0 compile fails on OS X due to <malloc.h> not found in plugins/timelib which is recently added to platform repository.

It probably should be "include <malloc/malloc.h> on OS X

Do we really need anything from plugins/ for clienttools build?

There is no way to turn off plugins/timelib as others, for example, -DUSE_V8=OFF can turn off V8.

Conclusion

None

Activity

Show:

Gavin Halliday December 10, 2014 at 2:57 PM

I can't think of any reason why it would include malloc.h. I'll look at removing.

Richard Chapman December 10, 2014 at 9:26 AM

That file (eclinclude4.hpp) is used by generated c++ code, so simply confirming that the platform builds with the line commented out is not sufficient. will need to comment on whether generated code will refer to anything from malloc.h that is not covered elsewhere.

Dan Camper December 9, 2014 at 8:20 PM
Edited

I just commented out the malloc.h include within eclinclude4.hpp and the client code compiled fine on OS X. I haven't tested the rest of it, though.

Xiaoming Wang December 9, 2014 at 6:36 PM

cmake options to build clienttools (5.2.0) on OS X:
DCLIENTTOOLS_ONLY=ON -DUSE_BINUTILS=OFF -DUSE_PYTHON=OFF -DUSE_V8=OFF -DUSE_JNI=OFF -DUSE_RINSIDE=OFF -DUSE_MYSQL=OFF -DUSE_SQLITE3=OFF -DUSE_LIBXSLT=OFF -DUSE_CASSANDRA=OFF -DUSE_MEMCACHED=OFF

Richard Chapman December 9, 2014 at 5:02 PM

Hmmm Do you know why eclinclude4.hpp needs to include malloc.h ?

Fixed
Pinned fields
Click on the next to a field label to start pinning.

Details

Components

Assignee

Reporter

Priority

Fix versions

Created December 9, 2014 at 4:25 PM
Updated December 10, 2014 at 3:33 PM
Resolved December 10, 2014 at 3:33 PM

Flag notifications