Skip to content

Can't compile on Mac OS 11 (BIG SUR) #5

Description

@Sam20060720

caiyousheng@caiyoushengdeMacBook-Pro  ~/Downloads/bb-osx-master 
 make  2 ↵  1129  6.05G RAM  1.62 L  20:42:26
gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -I/usr/local/Cellar/aalib/1.4rc5_1/include -D SOUNDDIR="/usr/local/share/bb" -c autopilo.c
gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -I/usr/local/Cellar/aalib/1.4rc5_1/include -D SOUNDDIR="/usr/local/share/bb" -c backconv.c
gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -I/usr/local/Cellar/aalib/1.4rc5_1/include -D SOUNDDIR="/usr/local/share/bb" -c bb.c
gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -I/usr/local/Cellar/aalib/1.4rc5_1/include -D SOUNDDIR="/usr/local/share/bb" -c credits.c
gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -I/usr/local/Cellar/aalib/1.4rc5_1/include -D SOUNDDIR="/usr/local/share/bb" -c credits2.c
credits2.c:79:11: warning: initializing 'char ' with an expression of type 'unsigned char ' converts between pointers to integer types with different sign [-Wpointer-sign]
char c = context->imagebuffer + aa_imgwidth(context) * 2 * YSTART;
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning generated.
gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -I/usr/local/Cellar/aalib/1.4rc5_1/include -D SOUNDDIR="/usr/local/share/bb" -c ctrl87.c
ctrl87.c:50:1: warning: non-void function does not return a value [-Wreturn-type]
} /
_control87 /
^
1 warning generated.
gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -I/usr/local/Cellar/aalib/1.4rc5_1/include -D SOUNDDIR="/usr/local/share/bb" -c fk1.c
gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -I/usr/local/Cellar/aalib/1.4rc5_1/include -D SOUNDDIR="/usr/local/share/bb" -c fk2.c
gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -I/usr/local/Cellar/aalib/1.4rc5_1/include -D SOUNDDIR="/usr/local/share/bb" -c fk3.c
gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -I/usr/local/Cellar/aalib/1.4rc5_1/include -D SOUNDDIR="/usr/local/share/bb" -c fk4.c
gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -I/usr/local/Cellar/aalib/1.4rc5_1/include -D SOUNDDIR="/usr/local/share/bb" -c formulas.c
formulas.c:424:2: warning: incompatible pointer types initializing 'int (
)(number_t, number_t, number_t, number_t) attribute((regparm (3)))' (aka 'int (
)(double, double, double, double) attribute((regparm (3)))') with an expression of type
'int (number_t, number_t, number_t, number_t)' (aka 'int (double, double, double, double)') [-Wincompatible-pointer-types]
mand_calc,
^~~~~~~~~
formulas.c:445:2: warning: incompatible pointer types initializing 'int (
)(number_t, number_t, number_t, number_t) attribute((regparm (3)))' (aka 'int (*)(double, double, double, double) attribute((regparm (3)))') with an expression of type
'int (number_t, number_t, number_t, number_t)' (aka 'int (double, double, double, double)') [-Wincompatible-pointer-types]
mand3_calc,
^~~~~~~~~~
2 warnings generated.
gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -I/usr/local/Cellar/aalib/1.4rc5_1/include -D SOUNDDIR="/usr/local/share/bb" -c hh1.c
gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -I/usr/local/Cellar/aalib/1.4rc5_1/include -D SOUNDDIR="/usr/local/share/bb" -c hh2.c
gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -I/usr/local/Cellar/aalib/1.4rc5_1/include -D SOUNDDIR="/usr/local/share/bb" -c hh3.c
gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -I/usr/local/Cellar/aalib/1.4rc5_1/include -D SOUNDDIR="/usr/local/share/bb" -c hh4.c
gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -I/usr/local/Cellar/aalib/1.4rc5_1/include -D SOUNDDIR="/usr/local/share/bb" -c image.c
image.c:88:13: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign]
imgdata = image->decompressed;
^ ~~~~~~~~~~~~~~~~~~~
image.c:110:43: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign]
fastcscale(imgdata + x1 + imgwidth * y1, c->imagebuffer + xx1 + yy1 * width, x2 - x1, xx2 - xx1, y2 - y1, yy2 - yy1, imgwidth, aa_imgwidth(c));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
image.c:31:40: note: passing argument to parameter 'b2' here
static void fastcscale(char *b1, char *b2, int x1, int x2, int y1, int y2, int width1, int width2)
^
image.c:114:43: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign]
fastcscale(imgdata + x1 + imgwidth * y1, c->imagebuffer, x2 - x1, aa_imgwidth(c), y2 - y1, aa_imgheight(c), imgwidth, aa_imgwidth(c));
^~~~~~~~~~~~~~
image.c:31:40: note: passing argument to parameter 'b2' here
static void fastcscale(char *b1, char *b2, int x1, int x2, int y1, int y2, int width1, int width2)
^
image.c:135:13: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign]
imgdata = image->decompressed;
^ ~~~~~~~~~~~~~~~~~~~
image.c:157:43: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign]
fastcscale(imgdata + x1 + imgwidth * y1, c->imagebuffer + width * dualmode + xx1 + yy1 * width, x2 - x1, xx2 - xx1, y2 - y1, yy2 - yy1, imgwidth, aa_imgwidth(c));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
image.c:31:40: note: passing argument to parameter 'b2' here
static void fastcscale(char *b1, char *b2, int x1, int x2, int y1, int y2, int width1, int width2)
^
image.c:161:43: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign]
fastcscale(imgdata + x1 + imgwidth * y1, c->imagebuffer + width * dualmode, x2 - x1, aa_imgwidth(c) / 2, y2 - y1, aa_imgheight(c), imgwidth, aa_imgwidth(c));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
image.c:31:40: note: passing argument to parameter 'b2' here
static void fastcscale(char *b1, char *b2, int x1, int x2, int y1, int y2, int width1, int width2)
^
image.c:174:52: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign]
r = lzo1x_decompress(image->data, image->size, data, &size, NULL);
^~~~
./minilzo.h:68:43: note: passing argument to parameter 'dst' here
lzo_byte *dst, lzo_uint *dst_len,
^
image.c:174:58: warning: passing 'int *' to parameter of type 'lzo_uint *' (aka 'unsigned int *') converts between pointers to integer types with different sign [-Wpointer-sign]
r = lzo1x_decompress(image->data, image->size, data, &size, NULL);
^~~~~
./minilzo.h:68:58: note: passing argument to parameter 'dst_len' here
lzo_byte *dst, lzo_uint *dst_len,
^
image.c:179:25: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign]
image->decompressed = data;
^ ~~~~
9 warnings generated.
gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -I/usr/local/Cellar/aalib/1.4rc5_1/include -D SOUNDDIR="/usr/local/share/bb" -c julia.c
gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -I/usr/local/Cellar/aalib/1.4rc5_1/include -D SOUNDDIR="/usr/local/share/bb" -c kt1.c
gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -I/usr/local/Cellar/aalib/1.4rc5_1/include -D SOUNDDIR="/usr/local/share/bb" -c kt2.c
gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -I/usr/local/Cellar/aalib/1.4rc5_1/include -D SOUNDDIR="/usr/local/share/bb" -c kt3.c
gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -I/usr/local/Cellar/aalib/1.4rc5_1/include -D SOUNDDIR="/usr/local/share/bb" -c kt4.c
gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -I/usr/local/Cellar/aalib/1.4rc5_1/include -D SOUNDDIR="/usr/local/share/bb" -c main.c
main.c:76:1: warning: non-void function does not return a value [-Wreturn-type]
}
^
1 warning generated.
gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -I/usr/local/Cellar/aalib/1.4rc5_1/include -D SOUNDDIR="/usr/local/share/bb" -c messager.c
messager.c:117:20: warning: initializing 'unsigned char *' with an expression of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign]
unsigned char *b1 = bckup, *b2 = bckup1;
^ ~~~~~
messager.c:117:33: warning: initializing 'unsigned char *' with an expression of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign]
unsigned char *b1 = bckup, *b2 = bckup1;
^ ~~~~~~
messager.c:155:22: error: implicitly declaring library function 'malloc' with type 'void *(unsigned long)' [-Werror,-Wimplicit-function-declaration]
bckup = (char *) malloc(aa_imgwidth(context) * aa_imgheight(context));
^
messager.c:155:22: note: include the header <stdlib.h> or explicitly provide a declaration for 'malloc'
messager.c:162:5: error: implicit declaration of function 'free' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
free(bckup);
^
2 warnings and 2 errors generated.
make: *** [messager.o] Error 1
caiyousheng@caiyoushengdeMacBook-Pro  ~/Downloads/bb-osx-master 
  2 ↵  1130  5.94G RAM  1.66 L  20:42:33

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions