/usr/bin/ld: cannot open linker script file

I keep on getting the following error during the Make step of installation: Ubuntu 20.04 /Asterisk 20.4.0

astmin@databranch:~/src/asterisk-20.4.0$ make
CC=“cc” CXX=“g++” LD=“” AR=“” RANLIB=“” CFLAGS=“” LDFLAGS=“” make -C menuselect CONFIGURE_SILENT=“–silent” makeopts
make[1]: Entering directory ‘/home/astmin/src/asterisk-20.4.0/menuselect’
make[1]: ‘makeopts’ is up to date.
make[1]: Leaving directory ‘/home/astmin/src/asterisk-20.4.0/menuselect’
[pjproject] Applying user.mak
[LD] chan_audiosocket.o → chan_audiosocket.so
/usr/bin/ld: cannot open linker script file chan_audiosocket.exports: No such file or directory
collect2: error: ld returned 1 exit status
make[1]: *** [/home/astmin/src/asterisk-20.4.0/Makefile.rules:193: chan_audiosocket.so] Error 1
make: *** [Makefile:396: channels] Error 2

I have deselected some channel drivers on the make menuselect and they are properly bypassed but it seems i would have to deselect all the Channel drivers for make to work which is wrong.
What would be the solution?

@penguinpbx @jcolp Any pointers pls? I can’t seem to go beyond that point during installation.

You might try to make all the things, then adjust your /etc/asterisk/modules.conf to only load what you need.

How was Asterisk downloaded? Did you confirm that it was fully successful?

I did that too.

I used wget https://downloads.asterisk.org/pub/telephony/asterisk/asterisk-20-current.tar.gz and I have two other versions (16, 18) just to be sure.

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