[yoshimi] Re: Building Yoshimi FreeBSD

  • From: blubee blubeeme <gurenchan@xxxxxxxxx>
  • To: yoshimi@xxxxxxxxxxxxx
  • Date: Thu, 26 Oct 2017 17:30:59 +0800

Do you have a later revision than commit
7150c233f70c51f5136e16a6f1b5eca9705c0498

I'm pulling directly from github to build this package.

On Thu, Oct 26, 2017 at 4:54 PM, Will Godfrey <willgodfrey@xxxxxxxxxxxxxxx>
wrote:

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: