Trouble building on NixOS

OL
Owen Lynch
Thu, Dec 21, 2017 2:28 PM

Hello,

I am having trouble building pjsip on NixOS. ./configure and make dep work fine, but make errors with "undefined reference to __dso_handle" when building pjsua-test-x86_64-unknown-linux-gnu (linking with ld). It also gives a warning that it can't find symbol _start. I read online that people get this error when they link c++ code with ld instead of g++, and it's recommended to link c++ code with g++. Is there a way to either get this to work with ld or change ld for g++ in a simple way?

Thank you,

-Owen

Hello, I am having trouble building pjsip on NixOS. ./configure and make dep work fine, but make errors with "undefined reference to __dso_handle" when building pjsua-test-x86_64-unknown-linux-gnu (linking with ld). It also gives a warning that it can't find symbol _start. I read online that people get this error when they link c++ code with ld instead of g++, and it's recommended to link c++ code with g++. Is there a way to either get this to work with ld or change ld for g++ in a simple way? Thank you, -Owen