[asterisk-bugs] [JIRA] (ASTERISK-29719) I'm unable to compile Asterisk 18.8.0

Jon Westgate (JIRA) noreply at issues.asterisk.org
Fri Nov 5 10:43:50 CDT 2021


    [ https://issues.asterisk.org/jira/browse/ASTERISK-29719?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=256778#comment-256778 ] 

Jon Westgate commented on ASTERISK-29719:
-----------------------------------------

This is using the same version of gcc.
Asterisk's 18.0 and 18.8 are just in different folders.

I've just spun up another box and oddly I can compile 18.8.0 on another box with the same versions of gcc binutils etc.
I wish I knew more about what happens behind the scenes when you run make.
It's linking that's failing or the generation of the exports file.


> I'm unable to compile Asterisk 18.8.0
> -------------------------------------
>
>                 Key: ASTERISK-29719
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-29719
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: pjproject/pjsip
>    Affects Versions: 18.8.0
>         Environment: Linux (Debian 11)
> gcc version 11.2.0 (Debian 11.2.0-10)
>            Reporter: Jon Westgate
>            Assignee: Jon Westgate
>            Severity: Major
>
> When compiling I get the following error:
> [LD] libasteriskpj.o -> libasteriskpj.so.2
> /usr/bin/ld:libasteriskpj.exports:1: ignoring invalid character `-' in script
> /usr/bin/ld:libasteriskpj.exports:2022: syntax error in VERSION script
> collect2: error: ld returned 1 exit status
> make[1]: *** [Makefile:295: libasteriskpj.so.2] Error 1
> make: *** [Makefile:388: main] Error 2
> I've build asterisk loads of times and never had an error like this before :(
> Steps to reproduce this:
> Download and unpack asterisk code. (18.8.0)
> Run ./contrib/scripts/install_prereq install
> ./configure --prefix=/usr
> make menuselect
> make -j4
> I'm not sure if I'm doing something wrong here.
> Asterisk 18.0.0 builds fine.



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list