cancel
Showing results for 
Search instead for 
Did you mean: 

Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.

Building seabolt: 1.7.4-dev : error: 'TIME_UTC' macro redefined [-Werror,-Wmacro-redefined]

Having a go at a simple application using neo4j and go.
macOS Catalina 10.15.3

make fails with this error:

[ 98%] Building C object CMakeFiles/seabolt-cli.dir/src/seabolt-cli/src/main.c.o

/Users/gidro02/libraries/seabolt-1.7/src/seabolt-cli/src/main.c:47:9: error: 'TIME_UTC' macro redefined [-Werror,-Wmacro-redefined]

#define TIME_UTC 0

^

/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/time.h:197:9: note: previous definition is here

#define TIME_UTC 1 /* time elapsed since epoch */

^

/Users/gidro02/libraries/seabolt-1.7/src/seabolt-cli/src/main.c:49:6: error: conflicting types for 'timespec_get'

void timespec_get(struct timespec *ts, int type)

^

/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/time.h:199:5: note: previous declaration is here

int timespec_get(struct timespec *ts, int base);

^

2 errors generated.

make[2]: *** [CMakeFiles/seabolt-cli.dir/src/seabolt-cli/src/main.c.o] Error 1

make[1]: *** [CMakeFiles/seabolt-cli.dir/all] Error 2

Any ideas?

1 ACCEPTED SOLUTION

Yes, that's a known issue. I have formula for Homebrew that fixes it.

You might want to have a look.

View solution in original post

2 REPLIES 2

Yes, that's a known issue. I have formula for Homebrew that fixes it.

You might want to have a look.

Perfect thank you, this works.

Nodes 2022
Nodes
NODES 2022, Neo4j Online Education Summit

All the sessions of the conference are now available online