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

FreeBSD build with plugins fails #344

Open
link2xt opened this issue Apr 29, 2018 · 9 comments
Open

FreeBSD build with plugins fails #344

link2xt opened this issue Apr 29, 2018 · 9 comments

Comments

@link2xt
Copy link
Contributor

link2xt commented Apr 29, 2018

There are multiple issues, starting with configure script.

Shebang in configure script is #!/bin/bash. On FreeBSD, bash is installed in /usr/local/bin/bash. It should be replaced with either #!/usr/bin/env bash or #!/bin/sh.

Then, getopt utility is used to parse long options. FreeBSD getopt does not support long options. Getopt with GNU-style options can be installed from ports, but it is installed in /usr/local/bin/getopt which goes after /usr/bin/getopt in PATH by default.

After replacing getopt with /usr/local/bin/getopt, I can run configure --help and such.

Then, even if I disable OMEMO plugin, it fails with /usr/bin/ld: cannot find -lgcrypt, so I have to add GCrypt to plugins/omemo/CMakeLists.txt.

Now I get error error: Package 'libgcrypt' not found in specified Vala API directories or GObject-Introspection GIR directories, don't know how to fix it.

@link2xt
Copy link
Contributor Author

link2xt commented Apr 29, 2018

PR #335 seems related

@link2xt
Copy link
Contributor Author

link2xt commented May 2, 2018

With PR #350 and disabling all plugins it builds.

@link2xt link2xt changed the title FreeBSD build fails FreeBSD build with plugins fails May 2, 2018
@nwhitehorn
Copy link

A patch that fixes the CMake problems is at http://people.freebsd.org/~nwhitehorn/dino.diff.

@link2xt
Copy link
Contributor Author

link2xt commented May 2, 2018

@nwhitehorn Thanks, works for me. Will you submit a PR?

@bodems
Copy link

bodems commented Jun 18, 2018

I also confirm that it builds now on FreeBSD 12. Thanks for your patch @nwhitehorn !

@Echolon
Copy link
Contributor

Echolon commented Mar 27, 2020

@link2xt, @bodems This thread can be closed?

@link2xt
Copy link
Contributor Author

link2xt commented Mar 27, 2020

@Echolon the patch hasn't been merged into this repository it seems. Do you expect freebsd users to keep patching the source?

I have checked, plugins/signal-protocol/CMakeLists.txt has not changed.

@Echolon
Copy link
Contributor

Echolon commented Mar 27, 2020

Hi link2xt,
no expectations, just asking.

@link2xt
Copy link
Contributor Author

link2xt commented Mar 27, 2020

A patch that fixes the CMake problems is at http://people.freebsd.org/~nwhitehorn/dino.diff.

Could you merge the linked patch first?

I don't have freebsd around anymore, so can't test, but the patch does reasonable things: replaces some hardcoded library names with variables.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants