MacOS High Sierra : Build Error: failed to compile glue.c

Started by Lavalamp, April 19, 2020, 02:52:44

Previous topic - Next topic

Lavalamp


Hi,

On my High Sierra MacOS 10.13.6 (17G10021) I downloaded the latest NG v1.56 r1.21 BMK 3.42 and get the below error building the MODs and cant progress any further.

Build Error: failed to compile (256) /Applications/BlitzMax/mod/pub.mod/enet.mod/glue.c

What have I missed?

Cheers.

Lavalamp

MacOS 13.6

More of the log:

[ 49%] Compiling:jcmainct.c
In file included from /Applications/BlitzMax/mod/pub.mod/enet.mod/glue.c:23:
/Applications/BlitzMax/mod/pub.mod/enet.mod/enet/include/enet.h:4886:13: error: conflicting types for 'clock_gettime'
        int clock_gettime(int X, struct timespec *ts) {
            ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/time.h:177:5: note: previous declaration is here
int clock_gettime(clockid_t __clock_id, struct timespec *__tp);
    ^
[ 49%] Compiling:jcmarker.c
[ 49%] Compiling:jcmaster.c
[ 49%] Compiling:jcomapi.c
[ 50%] Compiling:jcparam.c
1 error generated.
Build Error: failed to compile (256) /Applications/BlitzMax/mod/pub.mod/enet.mod/glue.c
Process complete

Derron

First of all: you do not need to build all the mods, just use mods you want to use - and BMK compiles them for you.
So if your project does not use gnet/enet then it should run without thar error.


Easide of that: seems Brucey needs to check that out so it does not collide with the xcode definition.


bye
Ron

Lavalamp