compiling ... again

View: New views
10 Messages — Rating Filter:   Alert me  

compiling ... again

by Oeyvind Brandtsegg-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I'm still unable to compile, with a problem related to the pthreads library.
"""
Checking for C library pthread... no
The pthread library is required to build Csound 5.
"""

I have the source and prebuilt files of PTHREADS-WIN32 on my system,
and I've included entries in custom.py, like this:
customCPPPATH.append('C:/msys/1.0/source/pthreads/Pre-built.2/include')
customLIBPATH.append('C:/msys/1.0/source/pthreads/Pre-built.2/lib')

Now, as I suspected the compile process might also need to find pthread.h,
I also added:
customLIBPATH.append('C:/msys/1.0/source/pthreads/pthreads.2')
customCPPPATH.append('C:/msys/1.0/source/pthreads/pthreads.2')
(I was not sure if I should add only CPPPATH, or LIBPATH, or both)

I even tried copying pthread.h into the Csound source dir, with the same result.

Any ideas ?

Updated my Csound source from CVS today.

Oeyvind

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Csound-devel mailing list
Csound-devel@...
https://lists.sourceforge.net/lists/listinfo/csound-devel

Parent Message unknown Re: compiling ... again

by Michael Gogins :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

If your problem is about header files, I don't know the answer.

If your problem is about the library, I suggest renaming one of the several pthreads libraries to libpthread.a. The Windows pthread documentation describes the semantics of the different versions of the library.

Hope this helps,
MIke

-----Original Message-----

>From: Oeyvind Brandtsegg <obrandts@...>
>Sent: Jun 30, 2008 8:50 AM
>To: Developer discussions <csound-devel@...>
>Subject: [Cs-dev] compiling ... again
>
>I'm still unable to compile, with a problem related to the pthreads library.
>"""
>Checking for C library pthread... no
>The pthread library is required to build Csound 5.
>"""
>
>I have the source and prebuilt files of PTHREADS-WIN32 on my system,
>and I've included entries in custom.py, like this:
>customCPPPATH.append('C:/msys/1.0/source/pthreads/Pre-built.2/include')
>customLIBPATH.append('C:/msys/1.0/source/pthreads/Pre-built.2/lib')
>
>Now, as I suspected the compile process might also need to find pthread.h,
>I also added:
>customLIBPATH.append('C:/msys/1.0/source/pthreads/pthreads.2')
>customCPPPATH.append('C:/msys/1.0/source/pthreads/pthreads.2')
>(I was not sure if I should add only CPPPATH, or LIBPATH, or both)
>
>I even tried copying pthread.h into the Csound source dir, with the same result.
>
>Any ideas ?
>
>Updated my Csound source from CVS today.
>
>Oeyvind
>
>-------------------------------------------------------------------------
>Check out the new SourceForge.net Marketplace.
>It's the best place to buy or sell services for
>just about anything Open Source.
>http://sourceforge.net/services/buy/index.php
>_______________________________________________
>Csound-devel mailing list
>Csound-devel@...
>https://lists.sourceforge.net/lists/listinfo/csound-devel




-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Csound-devel mailing list
Csound-devel@...
https://lists.sourceforge.net/lists/listinfo/csound-devel

Re: compiling ... again

by Oeyvind Brandtsegg-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Yes, that helps. Thanks a lot.

Now, I get as far as:
Creating library file: libcsound32.a
Top\threads.o(.text+0x23a): In function `csoundWaitThreadLock':
C:/msys/1.0/source/csound5/Top/threads.c:210: undefined reference to
`gettimeofday'
collect2: ld returned 1 exit status
scons: building terminated because of errors.

Is it probable that this has to do with my threading library, or the
Csound source code ?

best
Oeyvind


2008/6/30, Michael Gogins <gogins@...>:

> If your problem is about header files, I don't know the answer.
>
> If your problem is about the library, I suggest renaming one of the several pthreads libraries to libpthread.a. The Windows pthread documentation describes the semantics of the different versions of the library.
>
> Hope this helps,
> MIke
>
> -----Original Message-----
> >From: Oeyvind Brandtsegg <obrandts@...>
> >Sent: Jun 30, 2008 8:50 AM
> >To: Developer discussions <csound-devel@...>
> >Subject: [Cs-dev] compiling ... again
> >
> >I'm still unable to compile, with a problem related to the pthreads library.
> >"""
> >Checking for C library pthread... no
> >The pthread library is required to build Csound 5.
> >"""
> >
> >I have the source and prebuilt files of PTHREADS-WIN32 on my system,
> >and I've included entries in custom.py, like this:
> >customCPPPATH.append('C:/msys/1.0/source/pthreads/Pre-built.2/include')
> >customLIBPATH.append('C:/msys/1.0/source/pthreads/Pre-built.2/lib')
> >
> >Now, as I suspected the compile process might also need to find pthread.h,
> >I also added:
> >customLIBPATH.append('C:/msys/1.0/source/pthreads/pthreads.2')
> >customCPPPATH.append('C:/msys/1.0/source/pthreads/pthreads.2')
> >(I was not sure if I should add only CPPPATH, or LIBPATH, or both)
> >
> >I even tried copying pthread.h into the Csound source dir, with the same result.
> >
> >Any ideas ?
> >
> >Updated my Csound source from CVS today.
> >
> >Oeyvind
> >
> >-------------------------------------------------------------------------
> >Check out the new SourceForge.net Marketplace.
> >It's the best place to buy or sell services for
> >just about anything Open Source.
> >http://sourceforge.net/services/buy/index.php
> >_______________________________________________
> >Csound-devel mailing list
> >Csound-devel@...
> >https://lists.sourceforge.net/lists/listinfo/csound-devel
>
>
>
>
> -------------------------------------------------------------------------
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services for
> just about anything Open Source.
> http://sourceforge.net/services/buy/index.php
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@...
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Csound-devel mailing list
Csound-devel@...
https://lists.sourceforge.net/lists/listinfo/csound-devel

Parent Message unknown Re: compiling ... again

by Michael Gogins :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

gettimeofday is a UNIX function that doesn't exist on every system.

Grep for it in SConstruct and in the source code. Since it doesn't exist on all systems, SConstruct SHOULD test for it, and define HAVE_GETTIMEOFDAY_H or something, then the sources should #ifdef HAVE_GETTIMEOFDAY.

Better yet, change the code to use only the ANSI C runtime library calls.

Alternatively, it may exist on your system but is not being found. Grep in your system header files as well, and if you find it, add the directory to your custom.py.

Speaking of which, the custom.py usage has changed. There are default mingw-custom.py etc. for different platforms.

Hope this helps,
Mike

-----Original Message-----

>From: Oeyvind Brandtsegg <obrandts@...>
>Sent: Jun 30, 2008 9:28 AM
>To: Developer discussions <csound-devel@...>
>Subject: Re: [Cs-dev] compiling ... again
>
>Yes, that helps. Thanks a lot.
>
>Now, I get as far as:
>Creating library file: libcsound32.a
>Top\threads.o(.text+0x23a): In function `csoundWaitThreadLock':
>C:/msys/1.0/source/csound5/Top/threads.c:210: undefined reference to
>`gettimeofday'
>collect2: ld returned 1 exit status
>scons: building terminated because of errors.
>
>Is it probable that this has to do with my threading library, or the
>Csound source code ?
>
>best
>Oeyvind
>
>
>2008/6/30, Michael Gogins <gogins@...>:
>> If your problem is about header files, I don't know the answer.
>>
>> If your problem is about the library, I suggest renaming one of the several pthreads libraries to libpthread.a. The Windows pthread documentation describes the semantics of the different versions of the library.
>>
>> Hope this helps,
>> MIke
>>
>> -----Original Message-----
>> >From: Oeyvind Brandtsegg <obrandts@...>
>> >Sent: Jun 30, 2008 8:50 AM
>> >To: Developer discussions <csound-devel@...>
>> >Subject: [Cs-dev] compiling ... again
>> >
>> >I'm still unable to compile, with a problem related to the pthreads library.
>> >"""
>> >Checking for C library pthread... no
>> >The pthread library is required to build Csound 5.
>> >"""
>> >
>> >I have the source and prebuilt files of PTHREADS-WIN32 on my system,
>> >and I've included entries in custom.py, like this:
>> >customCPPPATH.append('C:/msys/1.0/source/pthreads/Pre-built.2/include')
>> >customLIBPATH.append('C:/msys/1.0/source/pthreads/Pre-built.2/lib')
>> >
>> >Now, as I suspected the compile process might also need to find pthread.h,
>> >I also added:
>> >customLIBPATH.append('C:/msys/1.0/source/pthreads/pthreads.2')
>> >customCPPPATH.append('C:/msys/1.0/source/pthreads/pthreads.2')
>> >(I was not sure if I should add only CPPPATH, or LIBPATH, or both)
>> >
>> >I even tried copying pthread.h into the Csound source dir, with the same result.
>> >
>> >Any ideas ?
>> >
>> >Updated my Csound source from CVS today.
>> >
>> >Oeyvind
>> >
>> >-------------------------------------------------------------------------
>> >Check out the new SourceForge.net Marketplace.
>> >It's the best place to buy or sell services for
>> >just about anything Open Source.
>> >http://sourceforge.net/services/buy/index.php
>> >_______________________________________________
>> >Csound-devel mailing list
>> >Csound-devel@...
>> >https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>>
>>
>>
>> -------------------------------------------------------------------------
>> Check out the new SourceForge.net Marketplace.
>> It's the best place to buy or sell services for
>> just about anything Open Source.
>> http://sourceforge.net/services/buy/index.php
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@...
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>
>-------------------------------------------------------------------------
>Check out the new SourceForge.net Marketplace.
>It's the best place to buy or sell services for
>just about anything Open Source.
>http://sourceforge.net/services/buy/index.php
>_______________________________________________
>Csound-devel mailing list
>Csound-devel@...
>https://lists.sourceforge.net/lists/listinfo/csound-devel




-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Csound-devel mailing list
Csound-devel@...
https://lists.sourceforge.net/lists/listinfo/csound-devel

Re: compiling ... again

by root-77 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Gettimeofday is a POSIX function

References in

./Top/threads.c where is is used in #if defined(LINUX) || defined(WIN32)
./Top/csound.c where it is protected with HAVE_GETTIMEOFDAY

==John ff


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Csound-devel mailing list
Csound-devel@...
https://lists.sourceforge.net/lists/listinfo/csound-devel

Re: compiling ... again

by Oeyvind Brandtsegg-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Sorry if I'm being really lame,
but does this mean the error lies in the Csound compile process (on
windows) trying to access a method that does not excist on win, or is
it something I do wrong ?

Oeyvind

2008/6/30, root <root@...>:

> Gettimeofday is a POSIX function
>
> References in
>
> ./Top/threads.c where is is used in #if defined(LINUX) || defined(WIN32)
> ./Top/csound.c where it is protected with HAVE_GETTIMEOFDAY
>
> ==John ff
>
>
> -------------------------------------------------------------------------
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services for
> just about anything Open Source.
> http://sourceforge.net/services/buy/index.php
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@...
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Csound-devel mailing list
Csound-devel@...
https://lists.sourceforge.net/lists/listinfo/csound-devel

Re: compiling ... again

by Victor Lazzarini :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I had re-implemented it on WIN32, because it didn't exist in my
system. I was positive I committed it. Why was the fix removed?

I have committed it again. You should be able to build it now.

WIN32 is not POSIX.

Victor

----- Original Message -----
From: "Oeyvind Brandtsegg" <obrandts@...>
To: "Developer discussions" <csound-devel@...>
Sent: Monday, June 30, 2008 10:14 PM
Subject: Re: [Cs-dev] compiling ... again


> Sorry if I'm being really lame,
> but does this mean the error lies in the Csound compile process (on
> windows) trying to access a method that does not excist on win, or is
> it something I do wrong ?
>
> Oeyvind
>
> 2008/6/30, root <root@...>:
>> Gettimeofday is a POSIX function
>>
>> References in
>>
>> ./Top/threads.c where is is used in #if defined(LINUX) || defined(WIN32)
>> ./Top/csound.c where it is protected with HAVE_GETTIMEOFDAY
>>
>> ==John ff
>>
>>
>> -------------------------------------------------------------------------
>> Check out the new SourceForge.net Marketplace.
>> It's the best place to buy or sell services for
>> just about anything Open Source.
>> http://sourceforge.net/services/buy/index.php
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@...
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>
> -------------------------------------------------------------------------
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services for
> just about anything Open Source.
> http://sourceforge.net/services/buy/index.php
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@...
> https://lists.sourceforge.net/lists/listinfo/csound-devel 


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Csound-devel mailing list
Csound-devel@...
https://lists.sourceforge.net/lists/listinfo/csound-devel

Re: compiling ... again

by Oeyvind Brandtsegg-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Yess. Hooray. It compiles now.
Thanks so much.

Oeyvind


2008/6/30, victor <Victor.Lazzarini@...>:

> I had re-implemented it on WIN32, because it didn't exist in my
> system. I was positive I committed it. Why was the fix removed?
>
> I have committed it again. You should be able to build it now.
>
> WIN32 is not POSIX.
>
> Victor
>
> ----- Original Message -----
> From: "Oeyvind Brandtsegg" <obrandts@...>
> To: "Developer discussions" <csound-devel@...>
> Sent: Monday, June 30, 2008 10:14 PM
> Subject: Re: [Cs-dev] compiling ... again
>
>
> > Sorry if I'm being really lame,
> > but does this mean the error lies in the Csound compile process (on
> > windows) trying to access a method that does not excist on win, or is
> > it something I do wrong ?
> >
> > Oeyvind
> >
> > 2008/6/30, root <root@...>:
> >> Gettimeofday is a POSIX function
> >>
> >> References in
> >>
> >> ./Top/threads.c where is is used in #if defined(LINUX) || defined(WIN32)
> >> ./Top/csound.c where it is protected with HAVE_GETTIMEOFDAY
> >>
> >> ==John ff
> >>
> >>
> >> -------------------------------------------------------------------------
> >> Check out the new SourceForge.net Marketplace.
> >> It's the best place to buy or sell services for
> >> just about anything Open Source.
> >> http://sourceforge.net/services/buy/index.php
> >> _______________________________________________
> >> Csound-devel mailing list
> >> Csound-devel@...
> >> https://lists.sourceforge.net/lists/listinfo/csound-devel
> >>
> >
> > -------------------------------------------------------------------------
> > Check out the new SourceForge.net Marketplace.
> > It's the best place to buy or sell services for
> > just about anything Open Source.
> > http://sourceforge.net/services/buy/index.php
> > _______________________________________________
> > Csound-devel mailing list
> > Csound-devel@...
> > https://lists.sourceforge.net/lists/listinfo/csound-devel
>
>
> -------------------------------------------------------------------------
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services for
> just about anything Open Source.
> http://sourceforge.net/services/buy/index.php
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@...
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Csound-devel mailing list
Csound-devel@...
https://lists.sourceforge.net/lists/listinfo/csound-devel

Parent Message unknown Re: compiling ... again

by Michael Gogins :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

In what file was it implemented?

Regards,
Mike

-----Original Message-----

>From: victor <Victor.Lazzarini@...>
>Sent: Jun 30, 2008 5:30 PM
>To: Developer discussions <csound-devel@...>
>Subject: Re: [Cs-dev] compiling ... again
>
>I had re-implemented it on WIN32, because it didn't exist in my
>system. I was positive I committed it. Why was the fix removed?
>
>I have committed it again. You should be able to build it now.
>
>WIN32 is not POSIX.
>
>Victor
>
>----- Original Message -----
>From: "Oeyvind Brandtsegg" <obrandts@...>
>To: "Developer discussions" <csound-devel@...>
>Sent: Monday, June 30, 2008 10:14 PM
>Subject: Re: [Cs-dev] compiling ... again
>
>
>> Sorry if I'm being really lame,
>> but does this mean the error lies in the Csound compile process (on
>> windows) trying to access a method that does not excist on win, or is
>> it something I do wrong ?
>>
>> Oeyvind
>>
>> 2008/6/30, root <root@...>:
>>> Gettimeofday is a POSIX function
>>>
>>> References in
>>>
>>> ./Top/threads.c where is is used in #if defined(LINUX) || defined(WIN32)
>>> ./Top/csound.c where it is protected with HAVE_GETTIMEOFDAY
>>>
>>> ==John ff
>>>
>>>
>>> -------------------------------------------------------------------------
>>> Check out the new SourceForge.net Marketplace.
>>> It's the best place to buy or sell services for
>>> just about anything Open Source.
>>> http://sourceforge.net/services/buy/index.php
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@...
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>
>>
>> -------------------------------------------------------------------------
>> Check out the new SourceForge.net Marketplace.
>> It's the best place to buy or sell services for
>> just about anything Open Source.
>> http://sourceforge.net/services/buy/index.php
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@...
>> https://lists.sourceforge.net/lists/listinfo/csound-devel 
>
>
>-------------------------------------------------------------------------
>Check out the new SourceForge.net Marketplace.
>It's the best place to buy or sell services for
>just about anything Open Source.
>http://sourceforge.net/services/buy/index.php
>_______________________________________________
>Csound-devel mailing list
>Csound-devel@...
>https://lists.sourceforge.net/lists/listinfo/csound-devel




-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Csound-devel mailing list
Csound-devel@...
https://lists.sourceforge.net/lists/listinfo/csound-devel

Re: compiling ... again

by Victor Lazzarini :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

threads.c
----- Original Message -----
From: "Michael Gogins" <gogins@...>
To: "Developer discussions" <csound-devel@...>
Sent: Monday, June 30, 2008 11:18 PM
Subject: Re: [Cs-dev] compiling ... again


> In what file was it implemented?
>
> Regards,
> Mike
>
> -----Original Message-----
>>From: victor <Victor.Lazzarini@...>
>>Sent: Jun 30, 2008 5:30 PM
>>To: Developer discussions <csound-devel@...>
>>Subject: Re: [Cs-dev] compiling ... again
>>
>>I had re-implemented it on WIN32, because it didn't exist in my
>>system. I was positive I committed it. Why was the fix removed?
>>
>>I have committed it again. You should be able to build it now.
>>
>>WIN32 is not POSIX.
>>
>>Victor
>>
>>----- Original Message -----
>>From: "Oeyvind Brandtsegg" <obrandts@...>
>>To: "Developer discussions" <csound-devel@...>
>>Sent: Monday, June 30, 2008 10:14 PM
>>Subject: Re: [Cs-dev] compiling ... again
>>
>>
>>> Sorry if I'm being really lame,
>>> but does this mean the error lies in the Csound compile process (on
>>> windows) trying to access a method that does not excist on win, or is
>>> it something I do wrong ?
>>>
>>> Oeyvind
>>>
>>> 2008/6/30, root <root@...>:
>>>> Gettimeofday is a POSIX function
>>>>
>>>> References in
>>>>
>>>> ./Top/threads.c where is is used in #if defined(LINUX) ||
>>>> defined(WIN32)
>>>> ./Top/csound.c where it is protected with HAVE_GETTIMEOFDAY
>>>>
>>>> ==John ff
>>>>
>>>>
>>>> -------------------------------------------------------------------------
>>>> Check out the new SourceForge.net Marketplace.
>>>> It's the best place to buy or sell services for
>>>> just about anything Open Source.
>>>> http://sourceforge.net/services/buy/index.php
>>>> _______________________________________________
>>>> Csound-devel mailing list
>>>> Csound-devel@...
>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>
>>>
>>> -------------------------------------------------------------------------
>>> Check out the new SourceForge.net Marketplace.
>>> It's the best place to buy or sell services for
>>> just about anything Open Source.
>>> http://sourceforge.net/services/buy/index.php
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@...
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>>
>>-------------------------------------------------------------------------
>>Check out the new SourceForge.net Marketplace.
>>It's the best place to buy or sell services for
>>just about anything Open Source.
>>http://sourceforge.net/services/buy/index.php
>>_______________________________________________
>>Csound-devel mailing list
>>Csound-devel@...
>>https://lists.sourceforge.net/lists/listinfo/csound-devel
>
>
>
>
> -------------------------------------------------------------------------
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services for
> just about anything Open Source.
> http://sourceforge.net/services/buy/index.php
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@...
> https://lists.sourceforge.net/lists/listinfo/csound-devel 


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Csound-devel mailing list
Csound-devel@...
https://lists.sourceforge.net/lists/listinfo/csound-devel
LightInTheBox - Buy quality products at wholesale price