Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Git master fails to build #4

Open
prokoudine opened this issue Jul 21, 2022 · 0 comments
Open

Git master fails to build #4

prokoudine opened this issue Jul 21, 2022 · 0 comments

Comments

@prokoudine
Copy link

Ubuntu 22.04. Any more details about the system you might need?

rm -rf bit-crusher.lv2
mkdir bit-crusher.lv2
gcc -shared -fPIC -DPIC src/bit-crusher.c src/lv2.c -o bit-crusher.lv2/bit-crusher.so
In file included from src/lv2.c:42:
src/instantiate.h: In function 'instantiate_mono':
src/instantiate.h:16:46: warning: implicit declaration of function 'malloc' [-Wimplicit-function-declaration]
   16 |         Plugin_MONO *plugin = (Plugin_MONO *)malloc(sizeof(Plugin_MONO));
      |                                              ^~~~~~
src/instantiate.h:1:1: note: include '<stdlib.h>' or provide a declaration of 'malloc'
  +++ |+#include <stdlib.h>
    1 | /*
src/instantiate.h:16:46: warning: incompatible implicit declaration of built-in function 'malloc' [-Wbuiltin-declaration-mismatch]
   16 |         Plugin_MONO *plugin = (Plugin_MONO *)malloc(sizeof(Plugin_MONO));
      |                                              ^~~~~~
src/instantiate.h:16:46: note: include '<stdlib.h>' or provide a declaration of 'malloc'
src/instantiate.h: In function 'instantiate_stereo':
src/instantiate.h:27:50: warning: incompatible implicit declaration of built-in function 'malloc' [-Wbuiltin-declaration-mismatch]
   27 |         Plugin_STEREO *plugin = (Plugin_STEREO *)malloc(sizeof(Plugin_STEREO));
      |                                                  ^~~~~~
src/instantiate.h:27:50: note: include '<stdlib.h>' or provide a declaration of 'malloc'
In file included from src/lv2.c:69:
src/cleanup.h: In function 'cleanup_mono':
src/cleanup.h:14:9: warning: implicit declaration of function 'free' [-Wimplicit-function-declaration]
   14 |         free( plugin->state );
      |         ^~~~
src/cleanup.h:1:1: note: include '<stdlib.h>' or provide a declaration of 'free'
  +++ |+#include <stdlib.h>
    1 | /*
src/cleanup.h:14:9: warning: incompatible implicit declaration of built-in function 'free' [-Wbuiltin-declaration-mismatch]
   14 |         free( plugin->state );
      |         ^~~~
src/cleanup.h:14:9: note: include '<stdlib.h>' or provide a declaration of 'free'
src/cleanup.h: In function 'cleanup_stereo':
src/cleanup.h:21:9: warning: incompatible implicit declaration of built-in function 'free' [-Wbuiltin-declaration-mismatch]
   21 |         free( plugin->state_l );
      |         ^~~~
src/cleanup.h:21:9: note: include '<stdlib.h>' or provide a declaration of 'free'
src/lv2.c: At top level:
src/lv2.c:77:9: error: 'NULL' undeclared here (not in a function)
   77 |         NULL,
      |         ^~~~
src/lv2.c:70:1: note: 'NULL' is defined in header '<stddef.h>'; did you forget to '#include <stddef.h>'?
   69 | #include "cleanup.h"
  +++ |+#include <stddef.h>
   70 | 
make: *** [Makefile:9: lv2] Error 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant