Compilation Error while building asterisk

I am getting an error while running make after ./configure

libasteriskpj.exports:1: ignoring invalid character `-’ in script
/usr/bin/ld:libasteriskpj.exports:2155: syntax error in VERSION script
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:297: libasteriskpj.so.2] Error 1
make: *** [Makefile:396: main] Error 2

I am using Asterisk 22 on Raspberry Pi

I found the solution :

find libasteriskpj.exports file using

sudo find / -name libasteriskpj.exports

Ensure the file follows the correct format for a linker version script. Typically, it should look something like this:

{
global:
symbol1;
symbol2;
local:
*;
};

in my case I removed -e from line 1 and line 1255

@somanshueq
What distro and version are you running on the PI?
32 or 64 bit?
What versions of gcc and binutils?

I am using ubuntu 21-64 bit and latest version of gcc and binutils on pi.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.