Closed AlphaJosh closed 2 years ago
First of all, thank you for even trying to build this project. The setup is rater complex and I may miss some important points, so pelase ask if you see any troubles.
Regarding the pjsip
the problem: it is likely in some recent changes made by nixpkgs
authors. The nix upstream started to diverge from tg2sip
's expectations some time ago, so I had to downgrade pjsip version. Looking at your error I think that they probably introduced more changes wich is not compatible with pjsip-2.9
which is only acceptable by tg2sip
.
I see 2 options how to fix it:
nixpkgs
. Last time I checked, the following commit worked: https://github.com/NixOS/nixpkgs/commit/3e55f1df9d5d156dbcaa37fe452d7c765d41981d You may need to know how to use standalone nixpkgs
trees instead of pre-installed by nix-channels (adjusting NIX_PATH
, etc - check the Nix manual or ask here) update: or try changing the very first line of ./default.nix to something like pkgs ? import /path/to/your/nixpkgs {}
This option is probably the most promising.Note that rather than running run.sh
, you can build pjsip
and other components one-by-one like this
$ nix-build -A pjsip default.nix
...
/nix/store/srf9p5nw1hkjmxbns1fa26wwwfzxv09k-pjsip+opus-2.9
fix-aarch64.patch
BTW, are you trying to build everything for ARM?
No, on Debian 10 x64.
Thats the silly part, the patch looks like it is for ARM. I dont know NixOS so this is quite a learning curve.
No, on Debian 10 x64.
Thats the silly part, the patch looks like it is for ARM. I dont know NixOS so this is quite a learning curve.
OK then. I've checked my version of nixpkgs -it also has this patch. Nix applies it unconditionally to fix something related to ARM. In my nixpkgs
it works fine. Probably, you have a newer nixpkgs
which comes with a newer patch which is no longer compatible with the pjsip version I pinned manually. I've added a line which disables all the patches, it should help.
Boom baby! Compiled, thank you.
I have a couple more questions but I will open them up as different issue
I am running ./run.sh as my non-root user and I am getting the following error:
Any help would be appreciated