[PD-dev] compiling under Linux Red Hat 9
michael shiloh
michael at makingthings.com
Wed Dec 24 01:23:29 CET 2003
this might very well be your problem. try downgrading to gcc 2.95.
let me know if that helps.
On Tue, 23 Dec 2003, Julius Smith wrote:
> Hi, sorry for my delay ---
>
> My compiler version is
>
> cc (GCC) 3.2.2 20030222 (Red Hat Linux 3.2.2-5)
>
> and the compiler warning without the change is as follows:
>
> cc -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
> -DUSEAPI_JACK -DINSTALL_PREFIX=\"/usr/local\" -I. -c -o
> ../obj/s_audio_jack.o s_audio_jack.c
> cc1: warnings being treated as errors
> s_audio_jack.c: In function `srate':
> s_audio_jack.c:72: warning: long int format, jack_nframes_t arg (arg 2)
> make: *** [s_audio_jack.o] Error 1
>
> Thanks,
> Julius
>
> At 09:03 AM 12/1/2003 -0800, michael shiloh wrote:
> >what compiler are you using? at work we have many different linux boxes,
> >between rh7.3 and rh9. we have been getting inconsistent handling of longs.
> >i haven't looked in to this fully yet but i wonder if you're using gcc 3.x
> >(i'm on rh9, using gcc 2.95, and i compiled pd with no difficulty).
> >
> >i wonder also if you changed that %ld to %d if it would work.
> >
> >if you have a chance, i'd be most curious to know the compiler warning.
> >
> >michael
> >
> >
> >On Mon, 1 Dec 2003, guenter geiger wrote:
> >
> > > On Wed, 26 Nov 2003, Julius Orion Smith III wrote:
> > > > To get pd 0.37 to compile under Red Hat 9 Linux, I had to make the
> > > > following (guessed) change in s_audio_jack.c:
> > > >
> > > > static int
> > > > srate (jack_nframes_t srate, void *arg)
> > > > {
> > > > //jos: printf ("jack: sample rate %ld/sec\n", srate);
> > > > printf ("jack: sample rate %d/sec\n", srate);
> > > > sys_dacsr = srate;
> > > > return 0;
> > > > }
> > > >
> > > > Otherwise, compilation died on a compiler warning.
> > >
> > > Thanks for reporting, the change is well guessed. In CVS I have removed
> > > the line completely, because with the new media menu it should be
> > > redundant.
> > >
> > > Guenter
> > >
> > >
> > > _______________________________________________
> > > PD-dev mailing list
> > > PD-dev at iem.at
> > > http://iem.at/cgi-bin/mailman/listinfo/pd-dev
> > >
> >
> >
> >_______________________________________________
> >PD-dev mailing list
> >PD-dev at iem.at
> >http://iem.at/cgi-bin/mailman/listinfo/pd-dev
>
> _____________________________
> Julius O. Smith III <jos at ccrma.stanford.edu>
> Assoc. Prof. of Music and (by courtesy) Electrical Engineering
> CCRMA, Stanford University
> http://www-ccrma.stanford.edu/~jos/
>
More information about the Pd-dev
mailing list