Error building ladspa trigger

I’m using Ubuntu 8.04.1 + Ardour 2.3
When I run the make command for the ladspa trigger I get this error message.

carter@ubuntu:~$ cd /usr/lib/ladspa/ladspa-trigger
carter@ubuntu:/usr/lib/ladspa/ladspa-trigger$ make
cc -I. -Iinclude -Wall -Werror -O3 -fPIC -fno-stack-protector -o src/trigger.o -c src/trigger.c
src/trigger.c:5:19: error: stdio.h: No such file or directory
src/trigger.c:6:20: error: stdlib.h: No such file or directory
src/trigger.c:7:20: error: endian.h: No such file or directory
src/trigger.c:8:20: error: string.h: No such file or directory
src/trigger.c:9:23: error: sys/types.h: No such file or directory
src/trigger.c:10:20: error: unistd.h: No such file or directory
src/trigger.c:11:19: error: fcntl.h: No such file or directory
cc1: warnings being treated as errors
src/trigger.c: In function ‘load_wave’:
src/trigger.c:107: warning: implicit declaration of function ‘open’
src/trigger.c:107: error: ‘O_RDONLY’ undeclared (first use in this function)
src/trigger.c:107: error: (Each undeclared identifier is reported only once
src/trigger.c:107: error: for each function it appears in.)
src/trigger.c:108: warning: implicit declaration of function ‘fprintf’
src/trigger.c:108: warning: incompatible implicit declaration of built-in function ‘fprintf’
src/trigger.c:108: error: ‘stderr’ undeclared (first use in this function)
src/trigger.c:112: warning: implicit declaration of function ‘read’
src/trigger.c:113: warning: incompatible implicit declaration of built-in function ‘fprintf’
src/trigger.c:117: warning: implicit declaration of function ‘strncmp’
src/trigger.c:123: warning: implicit declaration of function ‘printf’
src/trigger.c:123: warning: incompatible implicit declaration of built-in function ‘printf’
src/trigger.c:137: warning: implicit declaration of function ‘malloc’
src/trigger.c:137: warning: incompatible implicit declaration of built-in function ‘malloc’
src/trigger.c:138: warning: incompatible implicit declaration of built-in function ‘fprintf’
src/trigger.c:143: warning: incompatible implicit declaration of built-in function ‘fprintf’
src/trigger.c:147: warning: implicit declaration of function ‘close’
src/trigger.c: In function ‘instantiateTrigger’:
src/trigger.c:160: warning: incompatible implicit declaration of built-in function ‘malloc’
src/trigger.c:177: error: ‘NULL’ undeclared (first use in this function)
src/trigger.c: In function ‘cleanupTrigger’:
src/trigger.c:309: warning: implicit declaration of function ‘free’
src/trigger.c: At top level:
src/trigger.c:319: error: ‘NULL’ undeclared here (not in a function)
src/trigger.c: In function ‘_init’:
src/trigger.c:333: warning: incompatible implicit declaration of built-in function ‘malloc’
src/trigger.c:340: warning: implicit declaration of function ‘strdup’
src/trigger.c:340: warning: incompatible implicit declaration of built-in function ‘strdup’
src/trigger.c:352: warning: implicit declaration of function ‘calloc’
src/trigger.c:352: warning: incompatible implicit declaration of built-in function ‘calloc’
make: *** [plugins/trigger.so] Error 1
carter@ubuntu:/usr/lib/ladspa/ladspa-trigger$

I’ve got to get this up and going. Any ideas on how to get it running?

Hey guys, thanks a bunch. I’ve got it up and working.

Also, while it’s not an error per se, you normally shouldn’t untar and compile stuff in /usr/lib/.
That’s what /usr/src is there for.

Here’s the problem:

carter@ubuntu:/usr/lib/ladspa/ladspa-trigger$ make install
^^^^

You need to do

sudo make install

otherwise you get the permission problems that you have reported.

the fact that

carter@ubuntu:~$ sudo -l

tells you

User carter may run the following commands on this host:
(ALL) ALL

does not mean that you can do anything you like, it just means means that you can
use sudo to do anything you like
.

Try running

man sudo

for a less cryptic explanation than this…

I’ve gotten through the make but when I go to make install i’m getting this error.

  • I’m really new to linux so this could be something extremely simple.
    Thanks!

carter@ubuntu:~$ sudo -l
User carter may run the following commands on this host:
(ALL) ALL
carter@ubuntu:~$ cd /usr/lib/ladspa/ladspa-trigger
carter@ubuntu:/usr/lib/ladspa/ladspa-trigger$ make
make: Nothing to be done for targets'. carter@ubuntu:/usr/lib/ladspa/ladspa-trigger$ make install mkdirhier /usr/lib/ladspa/ \ /usr/include/ \ /usr/local/bin/ \ /usr/share/ladspa/samples/ mkdir: cannot create directory/usr/share/ladspa/samples’: Permission denied
mkdirhier: could not create directory “/usr/share/ladspa/samples/”
make: [install] Error 1 (ignored)
cp plugins/* /usr/lib/ladspa/
cp: cannot create regular file `/usr/lib/ladspa/trigger.so’: Permission denied
make: *** [install] Error 1
carter@ubuntu:/usr/lib/ladspa/ladspa-trigger$

Either you don’t have read access to /usr/include or you don’t have glibc-dev installed

sudo apt-get install build-essential
sudo apt-get build-dep ardour