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

(Linux) Build fails on newer Fedora ARM distro (Fedora 39 Asahi Linux for Apple Silicon) #345

Open
jordan-ivpn opened this issue Jan 5, 2024 · 1 comment

Comments

@jordan-ivpn
Copy link

Bug report

"Asahi Linux is a project that ports the Linux kernel and related software to Apple silicon-powered Macs."
https://asahilinux.org/

A customer reports an error using the Raspberry Pi build guide (https://www.ivpn.net/knowledgebase/linux/building-the-ivpn-cli-client-for-linux-on-a-raspberry-pi/) with Asahi Linux on Apple Silicon hardware:

In file included from wifiNotifier/wifiNotifier_linux.go:14:
./iwlib_2_linux.c:7:10: fatal error: iwlib.h: No such file or directory
7 | #include <iwlib.h> // sudo apt-get install libiw-dev
| ^~~~~~~~~
compilation terminated.
ERROR building IVPN Daemon

I looked up online that iwlib has been deprecated. I dont know how to go forward from this. libiw-dev (nor wireless-tools-dev or otherwise) does not show up as an option when I use 'sudo dnf install'

--

Thanks.

stenya added a commit that referenced this issue Jan 5, 2024
…ty (skipping "libiw-dev")

Currently, Wireless Tools (package "libiw-dev") needs to be available on the build machine.
We need it for the WIFI functionality being included in the daemon.

Some users may face issues building daemon due to missing "libiw-dev" on their systems.

So, now there is the possibility to skip using "libiw-dev" and disable WIFI functionality from the daemon build.
Environment variable `IVPN_NO_WIFI` must be defined for that.

Example:
```
  cd desktop-app/daemon/References/Linux/scripts/
  IVPN_NO_WIFI=true ./build-daemon.sh
```

#345
@stenya
Copy link
Member

stenya commented Jan 5, 2024

We currently have no plans to transition away from Wireless Tools ('libiw-dev').

Nevertheless, I have implemented the option to skip it.
Note that the 'Trusted WiFi' functionality will not be applicable in this case!

To bypass the requirement for the 'libiw-dev' package (and 'iwlib.h' header), the environment variable IVPN_NO_WIFI must be defined.

Example:

cd desktop-app/cli/References/Linux/
IVPN_NO_WIFI=true ./build.sh -v $VER

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

No branches or pull requests

2 participants