[Cs-dev] Building with Loris
Date | 2009-12-03 14:45 |
From | Francois PINOT |
Subject | [Cs-dev] Building with Loris |
Attachments | None None |
Hello, I've been building csound from CVS on my linux box (ubuntu) for two years, without any noticeable problem. Yesterday, I updated my linux box to ubuntu 9.10 and I got an error building csound with loris-1.5.4: g++ -o Opcodes/Loris/src/FourierTransform.os -c -fexceptions -fno-strict-aliasing -fno-strict-aliasing -fno-strict-aliasing -Wno-format -O3 -mtune=native -ftree-vectorize -ffast-math -DGNU_GETTEXT -g -fomit-frame-pointer -freorder-blocks -DLINUX -DPIPES -fvisibility=hidden -fno-strict-aliasing -fno-strict-aliasing -DHAVE_FFTW3_H -Wno-comment -Wno-unknown-pragmas -Wno-sign-compare -fno-strict-aliasing -fPIC -DHAVE_LIBSNDFILE=1016 -DHAVE_FLTK -DUSE_DOUBLE -DHAVE_SOCKETS -DHAVE_PTHREAD_BARRIER_INIT -DHAVE_SYNC_LOCK_TEST_AND_SET -DHAVE_FCNTL_H -DHAVE_UNISTD_H -DHAVE_STDINT_H -DHAVE_SYS_TIME_H -DHAVE_SYS_TYPES_H -DHAVE_TERMIOS_H -DHAVE_VALUES_H -DHAVE_SOCKETS -DHAVE_DIRENT_H -I. -IH -I/usr/lib/jvm/java-6-sun/include -I/usr/lib/jvm/java-6-sun/include/linux -I/usr/include/fltk-1.1 -I/usr/local/include -I/usr/include -I/usr/include -I/usr/X11R6/include -IOpcodes/Loris -IOpcodes/Loris/src -I. Opcodes/Loris/src/FourierTransform.C In file included from /usr/include/stdio.h:907, from /usr/include/fftw3.h:50, from Opcodes/Loris/src/FourierTransform.C:137: /usr/include/bits/stdio.h: In function ‘int Loris::fgetc_unlocked(FILE*)’: /usr/include/bits/stdio.h:56: error: invalid use of incomplete type ‘struct _IO_FILE’ /usr/include/stdio.h:45: error: forward declaration of ‘struct _IO_FILE’ The build without loris is ok. It seems that the problem comes from g++-4.4. Did anyone encounter this problem? Any suggestion? Regards Francois Pinot |
Date | 2009-12-03 14:47 |
From | Michael Gogins |
Subject | Re: [Cs-dev] Building with Loris |
I haven't been building with Loris, so I haven't been encountering this problem. However, you should easily be able to patch the Loris sources to fix this by #including stdio and possibly using namespace std. Hope this helps, Mike On 12/3/09, Francois PINOT |
Date | 2009-12-03 14:54 |
From | jpff@cs.bath.ac.uk |
Subject | Re: [Cs-dev] Building with Loris |
I build with Loris on OpendSuSE11.2 and 11.1 On 11.2 I had a number of problems with Loris and the mutating C++ language; I did get it ti compile eventually. ==John ff > Hello, > > I've been building csound from CVS on my linux box (ubuntu) for two years, > without any noticeable problem. Yesterday, I updated my linux box to > ubuntu > 9.10 and I got an error building csound with loris-1.5.4: > > g++ -o Opcodes/Loris/src/FourierTransform.os -c -fexceptions > -fno-strict-aliasing -fno-strict-aliasing -fno-strict-aliasing -Wno-format > -O3 -mtune=native -ftree-vectorize -ffast-math -DGNU_GETTEXT -g > -fomit-frame-pointer -freorder-blocks -DLINUX -DPIPES -fvisibility=hidden > -fno-strict-aliasing -fno-strict-aliasing -DHAVE_FFTW3_H -Wno-comment > -Wno-unknown-pragmas -Wno-sign-compare -fno-strict-aliasing -fPIC > -DHAVE_LIBSNDFILE=1016 -DHAVE_FLTK -DUSE_DOUBLE -DHAVE_SOCKETS > -DHAVE_PTHREAD_BARRIER_INIT -DHAVE_SYNC_LOCK_TEST_AND_SET -DHAVE_FCNTL_H > -DHAVE_UNISTD_H -DHAVE_STDINT_H -DHAVE_SYS_TIME_H -DHAVE_SYS_TYPES_H > -DHAVE_TERMIOS_H -DHAVE_VALUES_H -DHAVE_SOCKETS -DHAVE_DIRENT_H -I. -IH > -I/usr/lib/jvm/java-6-sun/include -I/usr/lib/jvm/java-6-sun/include/linux > -I/usr/include/fltk-1.1 -I/usr/local/include -I/usr/include -I/usr/include > -I/usr/X11R6/include -IOpcodes/Loris -IOpcodes/Loris/src -I. > Opcodes/Loris/src/FourierTransform.C > In file included from /usr/include/stdio.h:907, > from /usr/include/fftw3.h:50, > from Opcodes/Loris/src/FourierTransform.C:137: > /usr/include/bits/stdio.h: In function int Loris::fgetc_unlocked(FILE*): > /usr/include/bits/stdio.h:56: error: invalid use of incomplete type > struct > _IO_FILE > /usr/include/stdio.h:45: error: forward declaration of struct _IO_FILE > > The build without loris is ok. It seems that the problem comes from > g++-4.4. > Did anyone encounter this problem? Any suggestion? > > Regards > > Francois Pinot > ------------------------------------------------------------------------------ > Join us December 9, 2009 for the Red Hat Virtual Experience, > a free event focused on virtualization and cloud computing. > Attend in-depth sessions from your desk. Your couch. Anywhere. > http://p.sf.net/sfu/redhat-sfdev2dev_______________________________________________ > Csound-devel mailing list > Csound-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/csound-devel > ------------------------------------------------------------------------------ Join us December 9, 2009 for the Red Hat Virtual Experience, a free event focused on virtualization and cloud computing. Attend in-depth sessions from your desk. Your couch. Anywhere. http://p.sf.net/sfu/redhat-sfdev2dev _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net |
Date | 2009-12-03 16:03 |
From | Rene Djack |
Subject | Re: [Cs-dev] Building with Loris |
Attachments | None None |
Hi list, I use UbuntuStudio 9.10 and i have the same error with Loris. (?) I had also a compilation problem with STK that i solved by including <stdio.h> in files FileRead.cpp and FileWrite.cpp. Cheers, René 2009/12/3 <jpff@cs.bath.ac.uk> I build with Loris on OpendSuSE11.2 and 11.1 |
Date | 2009-12-03 16:08 |
From | Michael Gogins |
Subject | Re: [Cs-dev] Building with Loris |
That would indeed work, but this would be more in keeping with good C++ style and with the Loris sources: #include |
Date | 2009-12-03 16:31 |
From | Rene Djack |
Subject | Re: [Cs-dev] Building with Loris |
Attachments | None None |
Hi list, I only success to compile Loris if i include <stdio.h> in the file FourierTransform.C. Cheers, René 2009/12/3 Michael Gogins <michael.gogins@gmail.com> That would indeed work, but this would be more in keeping with good |