mkultra@mkultra:~/Desktop/caesar$ ./configure
loading cache ./config.cache
checking for gcc... (cached) gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for main in -lm... (cached) yes
checking how to run the C preprocessor... (cached) gcc -E
checking for ANSI C header files... (cached) yes
checking for fcntl.h... (cached) yes
checking for sys/ioctl.h... (cached) yes
checking for unistd.h... (cached) yes
checking whether gcc needs -traditional... (cached) no
creating ./config.status
creating Makefile
creating config.h
config.h is unchanged
mkultra@mkultra:~/Desktop/caesar$ make
gcc -I./ -g -O2 -Wall -DHAVE_CONFIG_H -c mfgenlib.c
mfgenlib.c: In function 'create_fundam':
mfgenlib.c:145: error: lvalue required as left operand of assignment
mfgenlib.c: In function 'mapkey':
mfgenlib.c:410: warning: pointer targets in passing argument 2 of 'get_token' differ in signedness
mfgenlib.c:414: warning: pointer targets in passing argument 1 of 'atoi' differ in signedness
mfgenlib.c:428: warning: pointer targets in passing argument 2 of 'get_token' differ in signedness
mfgenlib.c:432: warning: pointer targets in passing argument 1 of 'find_tone' differ in signedness
make: *** [mfgenlib.o] Error 1
im just really looking for a simple tone generator to tune my guitar to 440 with.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I ran the software on This system: Ubuntu 5.4.0, Linux version 4.4.0-66-generic, gcc version 5.4.0
When I first tried to build the software I got the following error
mfgenlib.c: In function ‘createfundam’:
mfgenlib.c:145:20: error: lvalue required as left operand of assignment
if (((fundamt )c=malloc(sizeof(fundamt)))==NULL) return(NULL);
Lines 144 and 145 in mfgenlib.c Changed To:
fundamt *c = malloc(sizeof(fundamt));
if (c==NULL) return(NULL);
this let me build Caesar.
Perhaps because of how my keyboard sends backspaces, or maybe because of some update to how stdin interprets backspace keystrokes since the last release of Caesar, I was getting a segfault whenever I hit my backspace key. Changing the length of the map array solves this, and I no longer get the segfault.
*
typedef struct keymap {
tonet *map[127];
/*causes a segfault when I press backspace*/*
On line 102 of mfgenlib.h
Changed To:
*typedef struct keymap {
tonet *map[128];
Last edit: Al The Phoney 2017-12-22
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
./configure works
make gives me this error
mkultra@mkultra:~/Desktop/caesar$ ./configure
loading cache ./config.cache
checking for gcc... (cached) gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for main in -lm... (cached) yes
checking how to run the C preprocessor... (cached) gcc -E
checking for ANSI C header files... (cached) yes
checking for fcntl.h... (cached) yes
checking for sys/ioctl.h... (cached) yes
checking for unistd.h... (cached) yes
checking whether gcc needs -traditional... (cached) no
creating ./config.status
creating Makefile
creating config.h
config.h is unchanged
mkultra@mkultra:~/Desktop/caesar$ make
gcc -I./ -g -O2 -Wall -DHAVE_CONFIG_H -c mfgenlib.c
mfgenlib.c: In function 'create_fundam':
mfgenlib.c:145: error: lvalue required as left operand of assignment
mfgenlib.c: In function 'mapkey':
mfgenlib.c:410: warning: pointer targets in passing argument 2 of 'get_token' differ in signedness
mfgenlib.c:414: warning: pointer targets in passing argument 1 of 'atoi' differ in signedness
mfgenlib.c:428: warning: pointer targets in passing argument 2 of 'get_token' differ in signedness
mfgenlib.c:432: warning: pointer targets in passing argument 1 of 'find_tone' differ in signedness
make: *** [mfgenlib.o] Error 1
im just really looking for a simple tone generator to tune my guitar to 440 with.
I ran the software on This system: Ubuntu 5.4.0, Linux version 4.4.0-66-generic, gcc version 5.4.0
When I first tried to build the software I got the following error
mfgenlib.c: In function ‘createfundam’:
mfgenlib.c:145:20: error: lvalue required as left operand of assignment
if (((fundamt )c=malloc(sizeof(fundamt)))==NULL) return(NULL);
Lines 144 and 145 in mfgenlib.c
Changed To:
fundamt *c = malloc(sizeof(fundamt));
if (c==NULL) return(NULL);
this let me build Caesar.
Perhaps because of how my keyboard sends backspaces, or maybe because of some update to how stdin interprets backspace keystrokes since the last release of Caesar, I was getting a segfault whenever I hit my backspace key. Changing the length of the map array solves this, and I no longer get the segfault.
*
typedef struct keymap {
tonet *map[127];
/*causes a segfault when I press backspace*/*
On line 102 of mfgenlib.h
Changed To:
*typedef struct keymap {
tonet *map[128];
Last edit: Al The Phoney 2017-12-22