[Csnd] building csound-CVS error (FLTK)
Date | 2010-08-12 21:51 |
From | Aaron Krister Johnson |
Subject | [Csnd] building csound-CVS error (FLTK) |
Hi, I was curious to build FLTK and see if that changed my luck on the weird behavior from an earlier thread. FLTK built well enough, and I did --enable-shared and --enable-threads on the ./configure line Now I'm getting errors rebuilding Csound-CVS. I was thinking it might have been something peculiar to the version of FLTK I was using (1.1.10), but I downgraded to 1.1.9 and still no joy. Here's the last bit of the scons output: g++ -o InOut/FL_graph.os -c -fexceptions -fno-strict-aliasing -fno-strict-aliasing -Wno-format -DGNU_GETTEXT -g -fomit-frame-pointer -freorder-blocks -DLINUX -DPIPES -fno-strict-aliasing -march=i686 -mtune=generic -O2 -pipe -fPIC -DHAVE_LIBSNDFILE=1016 -DHAVE_FLTK -DBETA -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 -D_THREAD_SAFE -D_REENTRANT -I. -IH -I/usr/include/fltk-1.1 -I/usr/local/include -I/usr/include -I/usr/X11R6/include -I/usr/include/freetype2 -IInOut -IInOut/virtual_keyboard InOut/FL_graph.cpp InOut/FL_graph.cpp: In function ‘void add_graph(CSOUND*, WINDAT*)’: InOut/FL_graph.cpp:189: error: ‘memcpy’ was not declared in this scope InOut/FL_graph.cpp:194: error: ‘strcmp’ was not declared in this scope InOut/FL_graph.cpp:214: error: ‘strlen’ was not declared in this scope InOut/FL_graph.cpp:215: error: ‘strcpy’ was not declared in this scope InOut/FL_graph.cpp: In function ‘int ExitGraph_FLTK(CSOUND*)’: InOut/FL_graph.cpp:299: error: ‘strcmp’ was not declared in this scope scons: *** [InOut/FL_graph.os] Error 1 scons: building terminated because of errors. Looks like an include-based error, but to my knowledge, I've not touched anything on my system since last compiling (successfully I might add) from CVS....what's going on? Are there gnomes in my laptop? Anyway, since the GUI via the virtual keyboard was giving me pain, and this is an FLTK-related compile error, I'm thinking something happened where I might have upgraded an FLTK package which broke the way my last compile of Csound was playing nice with all the libs on my system. So any help from here would be most appreciated! -- Best, Aaron Krister Johnson http://www.akjmusic.com http://www.untwelve.org |
Date | 2010-08-12 22:03 |
From | jpff@cs.bath.ac.uk |
Subject | [Csnd] Re: building csound-CVS error (FLTK) |
Ask yourself why |
Date | 2010-08-12 23:22 |
From | Victor.Lazzarini@nuim.ie |
Subject | [Csnd] Re: Re: building csound-CVS error (FLTK) |
Attachments | None |
Date | 2010-08-13 04:38 |
From | Aaron Krister Johnson |
Subject | [Csnd] Re: Re: Re: building csound-CVS error (FLTK) |
Ok, this is really weird. Things were compiling fine. I made an upgrade to FLTK 1.1.10 and then things were broken. But what's weirder is that I downgraded then things were really not working. So, now I can't compile Csound-CVS anymore....(other things seem unaffected) '#include <string.h>' is missing in many of the files where string functions like 'memset' are declared, and I get lots of warnings about 'incompatible implicit declarations of built-in functions', but then how to explain why I *could* compile before? I suppose <string.h> is included in other files which are included, but grepping the H directory for references to <string.h> brings up only 2 files.....is my system somehow broken? But why can I compile other packages? Interestingly, I tried adding '#include <string.h> to a few sample files, like auxfd.c, and ran their relevant compile lines by cut/paste.....no joy.....as if the addition of the include were invisible!!! What's going on in my system? I hate C/C++. So bloody impossible to untangle sometimes. I did a major upgrade later on in the day of my whole system in Arch Linux. Still no joy. I wonder if there is something incompatible in versions, like I'm using a 'too bleeding edge system' now compared to the devs. Here's some relevant info, what I'm using now: gcc version 4.5.0 20100610 (prerelease) (GCC) gcc-libs 4.5.0-6 glibc 2.12-4 fltk 1.1.10-1 If anyone can help ( a C/C++ guru especially), I'd be most appreciative. Help me if you can, I'm feeling down....and I do appreciate yer being 'round! AKJ On Thu, Aug 12, 2010 at 5:22 PM, <Victor.Lazzarini@nuim.ie> wrote: I think there might be a <string.h> in FL sources somehow, which is the wrong one or something like that. I saw that happen with a <math.h> before (which was a hard one to trace actually). Someone had reported similar problems with c headers apparently missing, when building with FLTK in one of the csound lists (and no one had a clue why). A student came to me with a similar error and after banging our heads on the wall we discovered a spurious math.h in FL/. -- Best, Aaron Krister Johnson http://www.akjmusic.com http://www.untwelve.org |
Date | 2010-08-13 07:37 |
From | Jeremy Henty |
Subject | [Csnd] Re: Re: Re: Re: building csound-CVS error (FLTK) |
Attachments | None |
Date | 2010-08-13 10:45 |
From | Victor Lazzarini |
Subject | [Csnd] Re: Re: Re: Re: building csound-CVS error (FLTK) |
Do a search for string.h in your filesystem. You should not have more than one. If there are duplicates, this may be the problem. On 13 Aug 2010, at 04:38, Aaron Krister Johnson wrote: Ok, this is really weird. Things were compiling fine. I made an upgrade to FLTK 1.1.10 and then things were broken. But what's weirder is that I downgraded then things were really not working. So, now I can't compile Csound-CVS anymore....(other things seem unaffected) |
Date | 2010-08-13 17:33 |
From | Aaron Krister Johnson |
Subject | [Csnd] Re: Re: Re: Re: Re: building csound-CVS error (FLTK) |
I was banging my head against the wall.....I did a complete sys reinstall this morning. It took an hour, but it was well worth the effort. Things compile again, and with spaking new versions. Go figure. Computers are complex beasts! AKJ On Fri, Aug 13, 2010 at 4:45 AM, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
-- Best, Aaron Krister Johnson http://www.akjmusic.com http://www.untwelve.org |