Gentoo and remote.c

View: New views
20 Messages — Rating Filter:   Alert me  
< Prev | 1 - 2 | Next >

Gentoo and remote.c

by Brad Fuller-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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 <linux/if.h>
#include <arpa/inet.h>
#endif
#include <net/if.h>

and this works on SuSE, Debian and Fedora (at least).  However on
gentoo the file <linux/if.h> is frankly incomprensible

#ifndef _LINUX_IF_H
# include <net/if.h>
# define _LINUX_IF_H
#endif

#ifndef _LINUX_IF_H
#define _LINUX_IF_H
.....

So as _LINUX_IF_H is not set it reads <net/if.h>, 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 <jpff@...> wrote:

> ....Really this belongs on the csound-dev list but as it started
> here....
>
> In remote.c the code reads
> #ifdef LINUX
> #include <linux/if.h>
> #include <arpa/inet.h>
> #endif
> #include <net/if.h>
>
> and this works on SuSE, Debian and Fedora (at least).  However on
> gentoo the file <linux/if.h> is frankly incomprensible
>
> #ifndef _LINUX_IF_H
> # include <net/if.h>
> # define _LINUX_IF_H
> #endif
>
> #ifndef _LINUX_IF_H
> #define _LINUX_IF_H

my if.h does not have:

#ifndef _LINUX_IF_H
# include <net/if.h>
# 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 <net/if.h>, 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@...
https://lists.sourceforge.net/lists/listinfo/csound-devel

Re: Gentoo and remote.c

by jpff :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Clearly your gentoo files differ from the ones I have.  Makes it
rather hard to debug!
==John ffitch

-------------------------------------------------------------------------
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@...
https://lists.sourceforge.net/lists/listinfo/csound-devel

Re: Gentoo and remote.c

by Brad Fuller-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Sat, Jul 26, 2008 at 9:35 AM, jpff <jpff@...> wrote:
> Clearly your gentoo files differ from the ones I have.  Makes it
> rather hard to debug!

I've attached the file that is in my dir:
/usr/include/gentoo-multilib/amd64/net/

Don't know if this mailer allows attachments. Guess we'll see.


--
Brad Fuller
www.bradfuller.com


-------------------------------------------------------------------------
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@...
https://lists.sourceforge.net/lists/listinfo/csound-devel

Re: Gentoo and remote.c

by Brad Fuller-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I tried:
customCCFLAGS = ['-D__USE_MISC' ' -D_NET_IF_H']
in custom.py, but the result is a double-quote around the definitions.
I don't know if that makes a difference in gcc. I've tried to get rid
of them, but haven't figured out how:

===
gcc -o OOps/remote.o -c -DNOGETTEXT "-D__USE_MISC -D_NET_IF_H" -g
-DLINUX -DPIPES -fPIC -fPIC -DHAVE_LIBSNDFILE=1016 -DHAVE_FLTK -DSDFT
-DBETA -DHAVE_SOCKETS -DHAVE_FCNTL_H -DHAVE_UNISTD_H -DHAVE_STDINT_H
-DHAVE_SYS_TIME_H -DHAVE_SYS_TYPES_H -DHAVE_TERMIOS_H -DHAVE_SOCKETS
-DHAVE_DIRENT_H -D__BUILDING_LIBCSOUND -I. -IH
-I/usr/include/gentoo-multilib/amd64 -I/usr/include/fltk-1.1
-I/usr/local/include -I/usr/include -I/usr/include
-I/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.o] Error 1
scons: building terminated because of errors
===


On Sat, Jul 26, 2008 at 9:35 AM, jpff <jpff@...> wrote:

> Clearly your gentoo files differ from the ones I have.  Makes it
> rather hard to debug!
> ==John ffitch
>
> -------------------------------------------------------------------------
> 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@...
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>



--
Brad Fuller
www.bradfuller.com

-------------------------------------------------------------------------
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@...
https://lists.sourceforge.net/lists/listinfo/csound-devel

Re: Gentoo and remote.c

by jpff :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

It is <linux/if.h> that has the stupid code in my versions.
It looks as is setting USE_MISC might help

commonEnvironment.Prepend(CPPFLAGS = ['-D__USE_MISC'])

==John ffitch

-------------------------------------------------------------------------
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@...
https://lists.sourceforge.net/lists/listinfo/csound-devel

Re: Gentoo and remote.c

by Brad Fuller-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Sat, Jul 26, 2008 at 11:05 AM, jpff <jpff@...> wrote:
> It is <linux/if.h> that has the stupid code in my versions.
> It looks as is setting USE_MISC might help
>
> commonEnvironment.Prepend(CPPFLAGS = ['-D__USE_MISC'])

--
where do I put that in custom.py? I tried it:

if sys.platform[:5] == 'linux':
    platform = 'linux'
    customCPPPATH.append('/usr/include/fltk-1.1')
    customLIBPATH.append('/usr/lib/fltk-1.1')
    commonEnvironment.Prepend(CPPFLAGS = ['-D__USE_MISC'])
--

and at the top of the file

got an error that commondEnvironment is not defined:

--
System platform is 'linux'.
Using options from 'custom.py.'
NameError: name 'commonEnvironment' is not defined:
  File "/home/bfuller/audio/csound5/SConstruct", line 305:
    fileOptions.Update(commonEnvironment)
  File "/usr/lib/scons-0.97/SCons/Options/__init__.py", line 145:
    execfile(filename, values)
  File "custom.py", line 18:
    commonEnvironment.Prepend(CPPFLAGS = ['-D__USE_MISC'])
--

-------------------------------------------------------------------------
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@...
https://lists.sourceforge.net/lists/listinfo/csound-devel

Re: Gentoo and remote.c

by Felipe Sateler :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

El 26/07/08 14:40 Brad Fuller escribió:
> On Sat, Jul 26, 2008 at 11:05 AM, jpff <jpff@...> wrote:
> > It is <linux/if.h> that has the stupid code in my versions.
> > It looks as is setting USE_MISC might help
> >
> > commonEnvironment.Prepend(CPPFLAGS = ['-D__USE_MISC'])
>
> --
> where do I put that in custom.py? I tried it:

customCPPFlags.prepend(...)



Saludos,
Felipe Sateler


-------------------------------------------------------------------------
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@...
https://lists.sourceforge.net/lists/listinfo/csound-devel

signature.asc (204 bytes) Download Attachment

Re: Gentoo and remote.c

by Brad Fuller-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Sat, Jul 26, 2008 at 11:46 AM, Felipe Sateler <fsateler@...> wrote:

> El 26/07/08 14:40 Brad Fuller escribió:
>> On Sat, Jul 26, 2008 at 11:05 AM, jpff <jpff@...> wrote:
>> > It is <linux/if.h> that has the stupid code in my versions.
>> > It looks as is setting USE_MISC might help
>> >
>> > commonEnvironment.Prepend(CPPFLAGS = ['-D__USE_MISC'])
>>
>> --
>> where do I put that in custom.py? I tried it:
>
> customCPPFlags.prepend(...)

thanks, but I don't have that in my custom.py.
but I put the whole line in:

---
if sys.platform[:5] == 'linux':
    platform = 'linux'
    customCPPPATH.append('/usr/include/fltk-1.1')
    customLIBPATH.append('/usr/lib/fltk-1.1')
    customCPPFlags.prepend(CPPFLAGS = ['-D__USE_MISC'
---


I get the same kind of error:

System platform is 'linux'.
Using options from 'custom.py.'
NameError: name 'customCPPFlags' is not defined:
  File "/home/bfuller/audio/csound5/SConstruct", line 305:
    fileOptions.Update(commonEnvironment)
  File "/usr/lib/scons-0.97/SCons/Options/__init__.py", line 145:
    execfile(filename, values)
  File "custom.py", line 23:
    customCPPFlags.prepend(CPPFLAGS = ['-D__USE_MISC'])
-------------------------------------------------------------------------
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@...
https://lists.sourceforge.net/lists/listinfo/csound-devel

Re: Gentoo and remote.c

by Brad Fuller-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

> ---
> if sys.platform[:5] == 'linux':
>    platform = 'linux'
>    customCPPPATH.append('/usr/include/fltk-1.1')
>    customLIBPATH.append('/usr/lib/fltk-1.1')
>    customCPPFlags.prepend(CPPFLAGS = ['-D__USE_MISC'

oppss.. that's:
    customCPPFlags.prepend(CPPFLAGS = ['-D__USE_MISC'])

-------------------------------------------------------------------------
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@...
https://lists.sourceforge.net/lists/listinfo/csound-devel

Re: Gentoo and remote.c

by Felipe Sateler :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

El 26/07/08 14:51 Brad Fuller escribió:

> On Sat, Jul 26, 2008 at 11:46 AM, Felipe Sateler <fsateler@...> wrote:
> > El 26/07/08 14:40 Brad Fuller escribió:
> >> On Sat, Jul 26, 2008 at 11:05 AM, jpff <jpff@...> wrote:
> >> > It is <linux/if.h> that has the stupid code in my versions.
> >> > It looks as is setting USE_MISC might help
> >> >
> >> > commonEnvironment.Prepend(CPPFLAGS = ['-D__USE_MISC'])
> >>
> >> --
> >> where do I put that in custom.py? I tried it:
> >
> > customCPPFlags.prepend(...)
>
> thanks, but I don't have that in my custom.py.
> but I put the whole line in:
>
> ---
> if sys.platform[:5] == 'linux':
>     platform = 'linux'
>     customCPPPATH.append('/usr/include/fltk-1.1')
>     customLIBPATH.append('/usr/lib/fltk-1.1')
>     customCPPFlags.prepend(CPPFLAGS = ['-D__USE_MISC'
> ---
>
>
> I get the same kind of error:
>
> System platform is 'linux'.
> Using options from 'custom.py.'
> NameError: name 'customCPPFlags' is not defined:
Ummh, seems CPPFlags is not exported. Use customCCFLAGS instead.

Saludos,
Felipe Sateler


-------------------------------------------------------------------------
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@...
https://lists.sourceforge.net/lists/listinfo/csound-devel

signature.asc (204 bytes) Download Attachment

Re: Gentoo and remote.c

by Brad Fuller-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Sat, Jul 26, 2008 at 11:57 AM, Felipe Sateler <fsateler@...> wrote:

> El 26/07/08 14:51 Brad Fuller escribió:
>> On Sat, Jul 26, 2008 at 11:46 AM, Felipe Sateler <fsateler@...> wrote:
>> > El 26/07/08 14:40 Brad Fuller escribió:
>> >> On Sat, Jul 26, 2008 at 11:05 AM, jpff <jpff@...> wrote:
>> >> > It is <linux/if.h> that has the stupid code in my versions.
>> >> > It looks as is setting USE_MISC might help
>> >> >
>> >> > commonEnvironment.Prepend(CPPFLAGS = ['-D__USE_MISC'])
>> >>
>> >> --
>> >> where do I put that in custom.py? I tried it:
>> >
>> > customCPPFlags.prepend(...)
>>
>> thanks, but I don't have that in my custom.py.
>> but I put the whole line in:
>>
>> ---
>> if sys.platform[:5] == 'linux':
>>     platform = 'linux'
>>     customCPPPATH.append('/usr/include/fltk-1.1')
>>     customLIBPATH.append('/usr/lib/fltk-1.1')
>>     customCPPFlags.prepend(CPPFLAGS = ['-D__USE_MISC'
>> ---
>>
>>
>> I get the same kind of error:
>>
>> System platform is 'linux'.
>> Using options from 'custom.py.'
>> NameError: name 'customCPPFlags' is not defined:
>
> Ummh, seems CPPFlags is not exported. Use customCCFLAGS instead.

That's where we started!
-------------------------------------------------------------------------
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@...
https://lists.sourceforge.net/lists/listinfo/csound-devel

Re: Gentoo and remote.c

by Felipe Sateler :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

El 26/07/08 14:58 Brad Fuller escribió:
> On Sat, Jul 26, 2008 at 11:57 AM, Felipe Sateler <fsateler@...> wrote:

> > Ummh, seems CPPFlags is not exported. Use customCCFLAGS instead.
>
> That's where we started!

I may be reading wrong the thread, but I don't see where you tried that...


Saludos,
Felipe Sateler


-------------------------------------------------------------------------
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@...
https://lists.sourceforge.net/lists/listinfo/csound-devel

signature.asc (204 bytes) Download Attachment

Re: Gentoo and remote.c

by Brad Fuller-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Sat, Jul 26, 2008 at 12:15 PM, Felipe Sateler <fsateler@...> wrote:
> El 26/07/08 14:58 Brad Fuller escribió:
>> On Sat, Jul 26, 2008 at 11:57 AM, Felipe Sateler <fsateler@...> wrote:
>
>> > Ummh, seems CPPFlags is not exported. Use customCCFLAGS instead.
>>
>> That's where we started!
>
> I may be reading wrong the thread, but I don't see where you tried that...

it's the 4th message (chronological) in this thread
-------------------------------------------------------------------------
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@...
https://lists.sourceforge.net/lists/listinfo/csound-devel

Re: Gentoo and remote.c

by root-77 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I think you need

customCCFLAGS.append('-D__USE_MISC')

but I m not sure -- I do not speak python

==John

On Sat, 26 Jul 2008, Brad Fuller wrote:

> On Sat, Jul 26, 2008 at 11:05 AM, jpff <jpff@...> wrote:
>> It is <linux/if.h> that has the stupid code in my versions.
>> It looks as is setting USE_MISC might help
>>
>> commonEnvironment.Prepend(CPPFLAGS = ['-D__USE_MISC'])
>
> --
> where do I put that in custom.py? I tried it:
>
> if sys.platform[:5] == 'linux':
>    platform = 'linux'
>    customCPPPATH.append('/usr/include/fltk-1.1')
>    customLIBPATH.append('/usr/lib/fltk-1.1')
>    commonEnvironment.Prepend(CPPFLAGS = ['-D__USE_MISC'])
> --
>
> and at the top of the file
>
> got an error that commondEnvironment is not defined:
>
> --
> System platform is 'linux'.
> Using options from 'custom.py.'
> NameError: name 'commonEnvironment' is not defined:
>  File "/home/bfuller/audio/csound5/SConstruct", line 305:
>    fileOptions.Update(commonEnvironment)
>  File "/usr/lib/scons-0.97/SCons/Options/__init__.py", line 145:
>    execfile(filename, values)
>  File "custom.py", line 18:
>    commonEnvironment.Prepend(CPPFLAGS = ['-D__USE_MISC'])
> --
>
> -------------------------------------------------------------------------
> 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@...
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
>
>

-------------------------------------------------------------------------
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@...
https://lists.sourceforge.net/lists/listinfo/csound-devel

Re: Gentoo and remote.c

by Felipe Sateler :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Doh, I somehow missed this message.

El 26/07/08 13:06 Brad Fuller escribió:
> I tried:
> customCCFLAGS = ['-D__USE_MISC' ' -D_NET_IF_H']

There is a comma missing here:
customCCFLAGS = ['-D__USE_MISC', '-D_NET_IF_H']

> in custom.py, but the result is a double-quote around the definitions.
> I don't know if that makes a difference in gcc. I've tried to get rid
> of them, but haven't figured out how:
>
> ===
> gcc -o OOps/remote.o -c -DNOGETTEXT "-D__USE_MISC -D_NET_IF_H" -g

Which is why you get those quotes, and the defines shouldn't be making any
effect.

> -DLINUX -DPIPES -fPIC -fPIC -DHAVE_LIBSNDFILE=1016 -DHAVE_FLTK -DSDFT
> -DBETA -DHAVE_SOCKETS -DHAVE_FCNTL_H -DHAVE_UNISTD_H -DHAVE_STDINT_H
> -DHAVE_SYS_TIME_H -DHAVE_SYS_TYPES_H -DHAVE_TERMIOS_H -DHAVE_SOCKETS
> -DHAVE_DIRENT_H -D__BUILDING_LIBCSOUND -I. -IH
> -I/usr/include/gentoo-multilib/amd64 -I/usr/include/fltk-1.1
> -I/usr/local/include -I/usr/include -I/usr/include
> -I/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.o] Error 1
> scons: building terminated because of errors
> ===
>
> On Sat, Jul 26, 2008 at 9:35 AM, jpff <jpff@...> wrote:
> > Clearly your gentoo files differ from the ones I have.  Makes it
> > rather hard to debug!
> > ==John ffitch
> >
> > -------------------------------------------------------------------------
> > 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@...
> > https://lists.sourceforge.net/lists/listinfo/csound-devel


Saludos,
Felipe Sateler


-------------------------------------------------------------------------
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@...
https://lists.sourceforge.net/lists/listinfo/csound-devel

signature.asc (204 bytes) Download Attachment

Re: Gentoo and remote.c

by Brad Fuller-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Sat, Jul 26, 2008 at 12:27 PM, Felipe Sateler <fsateler@...> wrote:
> Doh, I somehow missed this message.
>
> El 26/07/08 13:06 Brad Fuller escribió:
>> I tried:
>> customCCFLAGS = ['-D__USE_MISC' ' -D_NET_IF_H']
>
> There is a comma missing here:
> customCCFLAGS = ['-D__USE_MISC', '-D_NET_IF_H']

When I do that I get:

===
System platform is 'linux'.
Using options from 'custom.py.'
TypeError: append() takes exactly one argument (2 given):
  File "/home/bfuller/audio/csound5/SConstruct", line 305:
    fileOptions.Update(commonEnvironment)
  File "/usr/lib/scons-0.97/SCons/Options/__init__.py", line 145:
    execfile(filename, values)
  File "custom.py", line 23:
    customCCFLAGS.append('-D__USE_MISC', '-D_NET_IF_H')
===

BUT, I can do it twice:

===
if sys.platform[:5] == 'linux':
    platform = 'linux'
    customCPPPATH.append('/usr/include/fltk-1.1')
    customLIBPATH.append('/usr/lib/fltk-1.1')
    customCCFLAGS.append('-D__USE_MISC')
    customCCFLAGS.append('-D_NET_IF_H')
===

and it works and includes the #defines correctly. Or, at least I think
it does. Unfortunately, I still get the original compiler error that
we are trying to fix in the first place. remote.c still doesn't
compile:

---
gcc -o OOps/remote.o -c -DNOGETTEXT -D__USE_MISC -D_NET_IF_H -g
-DLINUX -DPIPES -fPIC -fPIC -DHAVE_LIBSNDFILE=1016 -DHAVE_FLTK -DSDFT
-DBETA -DHAVE_SOCKETS -DHAVE_FCNTL_H -DHAVE_UNISTD_H -DHAVE_STDINT_H
-DHAVE_SYS_TIME_H -DHAVE_SYS_TYPES_H -DHAVE_TERMIOS_H -DHAVE_SOCKETS
-DHAVE_DIRENT_H -D__BUILDING_LIBCSOUND -I. -IH
-I/usr/include/gentoo-multilib/amd64 -I/usr/include/fltk-1.1
-I/usr/local/include -I/usr/include -I/usr/include
-I/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.o] Error 1
scons: building terminated because of errors.
---
-------------------------------------------------------------------------
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@...
https://lists.sourceforge.net/lists/listinfo/csound-devel

Re: Gentoo and remote.c

by jpff :: Rate this Message:

Reply to Author