| 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
>Sent: Jun 30, 2008 9:28 AM
>To: Developer discussions
>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 :
>> 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
>> >Sent: Jun 30, 2008 8:50 AM
>> >To: Developer discussions
>> >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@lists.sourceforge.net
>> >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@lists.sourceforge.net
>> 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@lists.sourceforge.net
>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@lists.sourceforge.net |