[yoshimi] Re: Building Yoshimi FreeBSD

  • From: Will Godfrey <willgodfrey@xxxxxxxxxxxxxxx>
  • To: yoshimi@xxxxxxxxxxxxx
  • Date: Thu, 26 Oct 2017 09:54:02 +0100

On Thu, 26 Oct 2017 08:44:11 +0400
Andrew Deryabin <andrew@xxxxxxxx> wrote:

Hi blubee,


In freebsd there is no srandom_r family of functions, only srandom, 
random etc., i.e. without '_r' postfix. Difference between them is 
critical to multi-threaded code, because *bsd versions use global 
variable to store state unlike '_r' glibc functions. In yoshimi all 
generation is executed in one thread, so I think it should be safe to 
replace these by ordinal versions. You can try to make changes to your 
copy of code. Hope that this is the only error, that is not compatible 
with *bsd :).


Regards,

Andrew

In the latest build of 'master' this has been dealt with in CMakeLists.txt
This was as a fix for the musl libc which also doesn't have random_r. It should
work for BSD too.

If you don't want to grab the whole of 'master' I'm pretty sure just the cmake
file is compatible with 1.5.x

-- 
Will J Godfrey
http://www.musically.me.uk
Say you have a poem and I have a tune.
Exchange them and we can both have a poem, a tune, and a song.
Yoshimi source code is available from either: 
https://sourceforge.net/projects/yoshimi
Or: https://github.com/Yoshimi/yoshimi
Our list archive is at: https://www.freelists.org/archive/yoshimi
To post, email to yoshimi@xxxxxxxxxxxxx

Other related posts: