[Cs-dev] Cannot build
Date | 2005-02-22 05:25 |
From | jpff@codemist.co.uk |
Subject | [Cs-dev] Cannot build |
InOut/pmidi.c: In function `OpenMidiInDevice_': InOut/pmidi.c:120: `PM_FILT_REALTIME' undeclared (first use in this function) InOut/pmidi.c:120: (Each undeclared identifier is reported only once InOut/pmidi.c:120: for each function it appears in.) InOut/pmidi.c:120: `PM_FILT_SYSTEMCOMMON' undeclared (first use in this function) ==John ffitch ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net |
Date | 2005-02-22 09:46 |
From | Istvan Varga |
Subject | Re: [Cs-dev] Cannot build |
Attachments | portmidi.h |
jpff@codemist.co.uk wrote: > InOut/pmidi.c: In function `OpenMidiInDevice_': > InOut/pmidi.c:120: `PM_FILT_REALTIME' undeclared (first use in this function) > InOut/pmidi.c:120: (Each undeclared identifier is reported only once > InOut/pmidi.c:120: for each function it appears in.) > InOut/pmidi.c:120: `PM_FILT_SYSTEMCOMMON' undeclared (first use in this function) What version of PortMIDI do you have ? Here is the portmidi.h file I use: |
Date | 2005-02-22 10:15 |
From | jpff@codemist.co.uk |
Subject | Re: [Cs-dev] Cannot build |
I discovered that there had been a new portmidi in November, while I was using the one from June. Does not seem to be a version number anywhere. I am also having a different portmidi problem; I am now building on a 64bit Linux, and after doing something about .../lib as against .../lib64 I did manage to build once. But I now have the error gcc -Wl,-Bdynamic -shared -o libpmidi.so InOut/pmidi.os -L. -L. -L/usr/local/lib64 -L. -L. -L/usr/local/lib/python2.3/config -lportmidi -lporttime -lasound /usr/lib64/gcc-lib/x86_64-suse-linux/3.3.4/../../../../x86_64-suse-linux/bin/ld: /usr/local/lib64/libportmidi.a(portmidi.o): relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC /usr/local/lib64/libportmidi.a: could not read symbols: Bad value collect2: ld returned 1 exit status scons: *** [libpmidi.so] Error 1 I build /usr/local/lib64/libportmidi.a from source this morning on this machine so I am rather confused. This is all recent change as portmidi support was not a module when I last succeeded. I have been rather out of the loop on account of difficulties typing, and teaching. I was hoping to get back into Csound, but it is up hill at the moment. ==John ffitch ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net |
Date | 2005-02-22 12:34 |
From | Istvan Varga |
Subject | Re: [Cs-dev] Cannot build |
jpff@codemist.co.uk wrote: > gcc -Wl,-Bdynamic -shared -o libpmidi.so InOut/pmidi.os -L. -L. -L/usr/local/lib64 -L. -L. -L/usr/local/lib/python2.3/config -lportmidi -lporttime -lasound > /usr/lib64/gcc-lib/x86_64-suse-linux/3.3.4/../../../../x86_64-suse-linux/bin/ld: /usr/local/lib64/libportmidi.a(portmidi.o): relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC > /usr/local/lib64/libportmidi.a: could not read symbols: Bad value > collect2: ld returned 1 exit status > scons: *** [libpmidi.so] Error 1 The message suggests that pmidi.c should be compiled with -fPIC. On my machine, the flag is used, so it may be a problem with SConstruct. ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net |