[PlanetCCRMA] pd and fedora

Fernando Pablo Lopez-Lezcano nando@ccrma.Stanford.EDU
Wed Dec 3 17:29:01 2003

> kernel and alsa, and it seems fine).  However, there doesn't seem to be
> a pd package yet. 


> package pd doesn't exist.  No problem, I think, Fernando is a busy guy

Yup :-)

> and hasn't put it over yet, so I download the SRPM
> (pd-0.36.0-3.cvs.src.rpm) and try to build my own.  The problem is I get
> a compile error:
> cc -O2 -g -pipe -march=i386 -mcpu=i686 -DPD -DUNIX  -Wall -W
> -Wstrict-prototypes -Werror -Wno-unused -Wno-parentheses -Wno-switch -O6
> -funroll-loops -fomit-frame-pointer -DDL_OPEN -DPA_USE_OSS
> -DPA_LITTLE_ENDIAN              -DUSEAPI_OSS      
> -I../portaudio/pa_common         -I../portaudio/pablio
> -I../portaudio/portmidi-macosx     -Werror -fno-strict-aliasing
> -DINSTALL_PREFIX=\"/usr\" -I. -c -o ../obj/x_misc.o x_misc.c
> x_misc.c: In function `cputime_bang2':
> x_misc.c:232: warning: implicit declaration of function `sysconf'
> x_misc.c:232: error: `_SC_CLK_TCK' undeclared (first use in this
> function)
> x_misc.c:232: error: (Each undeclared identifier is reported only once
> x_misc.c:232: error: for each function it appears in.)
> make: *** [x_misc.o] Error 1

Try this:
==== CUT HERE ====
--- pd-0.37.0-cvs/src/x_misc.c~ 2003-05-09 09:03:45.000000000 -0700
+++ pd-0.37.0-cvs/src/x_misc.c  2003-11-27 16:27:36.000000000 -0800
@@ -10,6 +10,7 @@
 #include <stdio.h>
 #include <string.h>
 #ifdef UNIX
+#include <unistd.h>
 #include <sys/types.h>
 #include <sys/time.h>
 #include <sys/times.h>
==== CUT HERE ====

I have pd 0.37 from cvs already running, I'm working on trying to build
the cvs pd externals collection. A pain. Royal pain :-) Maybe I'll
release a trial 0.37cvs version without all the externals to get

-- Fernando