Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build Fail on FreeBSD 12.2 #752

Closed
dj-bauer opened this issue Dec 30, 2020 · 3 comments
Closed

Build Fail on FreeBSD 12.2 #752

dj-bauer opened this issue Dec 30, 2020 · 3 comments
Labels
bug next release fixed in develop branch and will be part of the next release

Comments

@dj-bauer
Copy link

Description
I just tried to build snapcast in a fresh freebsd jail.
I followed the general and for freebsd specifical guidelines.
But When I try to gmake, I get a compilation Error when trying to compile streamreader/pipe_stream.cpp

streamreader/pipe_stream.cpp: In member function 'virtual void streamreader::PipeStream::do_connect()':
streamreader/pipe_stream.cpp:61:27: error: 'F_GETPIPE_SZ' was not declared in this scope
   61 |     pipe_size = fcntl(fd, F_GETPIPE_SZ);

Steps to Reproduce

  1. pkg install git
  2. git clone https://github.com/badaix/snapcast.git
  3. cd snapcast/externals
  4. git submodule update --init --recursive
  5. cd ../server
  6. pkg install gmake gcc bash avahi libogg libvorbis opus flac libsoxr
  7. gmake TARGET=FREEBSD

Environment details

  • OS: FreeBSD 12.2-RELEASE
  • Snapcast version: Latest git commit (bf7f986)
  • Installation Method: Self compiling

I hope I am not doing something obvious wrong, and thanks for your help

@dj-bauer dj-bauer added the bug label Dec 30, 2020
badaix added a commit that referenced this issue Dec 31, 2020
@badaix
Copy link
Owner

badaix commented Dec 31, 2020

Should be fixed with f254d59, can you please retry using the develop branch?

@dj-bauer
Copy link
Author

Yeah, this works now.
When I now run 'gmake TARGET=FREEBSD install'
it throws the error

install -g wheel -o root -m 644 etc/index.html -Dt /usr/share/snapserver/
install: target directory `/usr/share/snapserver/' does not exist

when I manually create the directory, it fails at the same make step

install -g wheel -o root -m 644 etc/index.html -Dt /usr/share/snapserver/
install: -Dt: No such file or directory
gmake: *** [Makefile:128: install] Error 71

@badaix
Copy link
Owner

badaix commented Dec 31, 2020

This is related to #720 (difference between Linux and Unix/BSD like commands).
As I don't have a BSD or macos available, it would be great if someone could fix it and make a PR.

@badaix badaix added the next release fixed in develop branch and will be part of the next release label Dec 31, 2020
@badaix badaix closed this as completed Jan 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug next release fixed in develop branch and will be part of the next release
Projects
None yet
Development

No branches or pull requests

2 participants