I thought I'd bring this up here, since John pointed out that it should belong here. I'm not a developer anymore, but I'd like to get this straightened out. Basically it started with this: =========================================== Trying to build C5.08 on gentoo so that I can build the java wrapper (to try AVSynthesis). Rcv'd the following error. Google turns up only one search that didn't help. usr/X11R6/include OOps/remote.c OOps/remote.c: In function 'getIpAddress': OOps/remote.c:70: error: storage size of 'ifr' isn't known scons: *** [OOps/remote.os] Error 1 scons: building terminated because of errors. =========================================== And it's been pointed out that it's most likely a gentoo configuration issue. For some reason, gentoo include the ifreq struct, located in net/if.h. First, for gcc to find the right directory (gentoo dist.) I had to edit the custom.py file: customCPPPATH = ['-I/usr/include/gentoo-multilib/amd64/'] That included the file, but still I received the same error. Here's the latest thread from John and then my reply. Please ask questions of what I've missed to tell you about this issue. =========================================== ....Really this belongs on the csound-dev list but as it started here.... In remote.c the code reads #ifdef LINUX #include #include #endif #include and this works on SuSE, Debian and Fedora (at least). However on gentoo the file is frankly incomprensible #ifndef _LINUX_IF_H # include # define _LINUX_IF_H #endif #ifndef _LINUX_IF_H #define _LINUX_IF_H ..... So as _LINUX_IF_H is not set it reads , and then sets the variable so it ignores the rest of the file. I really suspect that the first #ifndef should use _NET_IF_H but it does not. I cannot see how one can use thee headers. ==John ffitch On Fri, Jul 25, 2008 at 3:16 AM, jpff wrote: > ....Really this belongs on the csound-dev list but as it started > here.... > > In remote.c the code reads > #ifdef LINUX > #include > #include > #endif > #include > > and this works on SuSE, Debian and Fedora (at least). However on > gentoo the file is frankly incomprensible > > #ifndef _LINUX_IF_H > # include > # define _LINUX_IF_H > #endif > > #ifndef _LINUX_IF_H > #define _LINUX_IF_H my if.h does not have: #ifndef _LINUX_IF_H # include # define _LINUX_IF_H #endif but it does have: #ifndef _NET_IF_H #define _NET_IF_H 1 but that's the only place it shows up on if.h. It's not used in the rest of the file. > ..... > > So as _LINUX_IF_H is not set it reads , and then sets the > variable so it ignores the rest of the file. > I really suspect that the first #ifndef should use _NET_IF_H but it > does not. I cannot see how one can use thee headers. Why would it ignore the rest of the file? It only defines '_LINUX_IF_H', and nothing more. there is no else after the definition. It looks like '#ifdef __USE_MISC' is the culprit as struct ifreq is included in this #define. I don't know what __USE_MISC is. brad ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net