[PD-dev] trying to compile PD-extended on 64bit ubuntu

Kasper Jordaens kasper.jordaens at gmail.com
Thu Apr 23 11:20:11 CEST 2009


Hi all,

I've been trying to compile 64bit PD-extended on my unbuntu hardy 
machine. 32bit PD is not an option as it segfaults on trying to connect 
to jackd. I largely succeeded allready, meaning many externals compile 
fine. I check the list archives for pointers, and got stuck on other places. 

Here is what I've done so far:


   get source
   install deps listed here  http://puredata.info/docs/developer/Debian
   sudo apt-get install  ia32-libs lib32z1-dev lib32bz2-dev  (for the "stub-32h error")
   cd /packages/linux_make
   make install && make package
   notice Gem is missing
   wget http://puredata.info/community/projects/software/gem/releases/0.91.3/gem-0.91-3.tar.gz
   untar
   mv gem-0.91-3 Pd-0.40.3-extended/Gem
   compile again
   notice lamelibs are missing
   apt-get install  libmp3lame0 libmp3lame-dev

after that I get these errors.... dunno how to deal with those...

   12.5-darcs\" -I. -I/usr/X11R6/include  -I../include -I../../include
   -I/home/kaos/Pd-0.40.3-extended/pd/src   -o pdp_convert.o -c
   pdp_convert.c
   gcc -DPD -Wall -W -Wstrict-prototypes -Wno-unused -Wno-parentheses
   -Wno-switch -fPIC -O2 -funroll-loops -fomit-frame-pointer
   -ffast-math   -DPDP_VERSION=\"0.12.5-darcs\" -I.
   -I/usr/X11R6/include  -I../include -I../../include
   -I/home/kaos/Pd-0.40.3-extended/pd/src   -o pdp_udp_send.o -c
   pdp_udp_send.c
   gcc -DPD -Wall -W -Wstrict-prototypes -Wno-unused -Wno-parentheses
   -Wno-switch -fPIC -O2 -funroll-loops -fomit-frame-pointer
   -ffast-math   -DPDP_VERSION=\"0.12.5-darcs\" -I.
   -I/usr/X11R6/include  -I../include -I../../include
   -I/home/kaos/Pd-0.40.3-extended/pd/src   -o pdp_udp_receive.o -c
   pdp_udp_receive.c
   gcc -DPD -Wall -W -Wstrict-prototypes -Wno-unused -Wno-parentheses
   -Wno-switch -fPIC -O2 -funroll-loops -fomit-frame-pointer
   -ffast-math   -DPDP_VERSION=\"0.12.5-darcs\" -I.
   -I/usr/X11R6/include  -I../include -I../../include
   -I/home/kaos/Pd-0.40.3-extended/pd/src   -o pdp_rawin.o -c pdp_rawin.c
   gcc -DPD -Wall -W -Wstrict-prototypes -Wno-unused -Wno-parentheses
   -Wno-switch -fPIC -O2 -funroll-loops -fomit-frame-pointer
   -ffast-math   -DPDP_VERSION=\"0.12.5-darcs\" -I.
   -I/usr/X11R6/include  -I../include -I../../include
   -I/home/kaos/Pd-0.40.3-extended/pd/src   -o pdp_rawout.o -c pdp_rawout.c
   pdp_rawout.c: In function ârawout_dspâ:
   pdp_rawout.c:245: warning: cast from pointer to integer of different
   size
   In function âopenâ,
       inlined from ârawout_threadâ at pdp_rawout.c:141:
   /usr/include/bits/fcntl2.h:51: error: call to â__open_missing_modeâ
   declared with attribute error: open with O_CREAT in second argument
   needs 3 arguments
   make[5]: *** [pdp_rawout.o] Error 1
   make[5]: Leaving directory
   `/home/kaos/Pd-0.40.3-extended/externals/pdp/modules/generic'
   make[4]: *** [current] Error 2
   make[4]: Leaving directory
   `/home/kaos/Pd-0.40.3-extended/externals/pdp/modules'

Ideas?

I looked up all referenced sourcecode:

	pdp_rawout.c:245: warning: cast from pointer to integer of different size
 		args[0] = (int)x; 
	
	pdp_rawout.c:141:
 		if (-1 == (pipefd = open(x->x_pipe->s_name, O_WRONLY|O_CREAT))){
            	perror(me);
            	goto exit;
        	}
	
	/usr/include/bits/fcntl2.h:51:
 		
		if ((__oflag & O_CREAT) != 0 && __va_arg_pack_len () < 1)
       	 	{
          	__open_missing_mode ();
          	return __open_2 (__path, __oflag);
       		}



Thanks

Kasper





More information about the Pd-dev mailing list