[asterisk-bugs] [JIRA] (ASTERISK-25873) res_pjsip: Bundled pjproject: compile error, cannot find -lasteriskpj

abelbeck (JIRA) noreply at issues.asterisk.org
Wed Mar 30 16:46:56 CDT 2016


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

abelbeck commented on ASTERISK-25873:
-------------------------------------

I am seeing a related regression cross-compiling 13.8.0 with "cannot find -lasteriskssl".  This patch fixes the problem...
{code}
--- asterisk-13.8.0/main/Makefile.orig	2016-03-30 12:32:58.000000000 -0500
+++ asterisk-13.8.0/main/Makefile	2016-03-30 12:33:23.000000000 -0500
@@ -226,9 +226,8 @@
 	$(ECHO_PREFIX) echo "   [LN] $< -> $@"
 ifneq ($(LDCONFIG),)
 	$(CMD_PREFIX) $(LDCONFIG) $(LDCONFIG_FLAGS) . 2>/dev/null
-else
-	$(CMD_PREFIX) $(LN) -sf $< $@
 endif
+	$(CMD_PREFIX) $(LN) -sf $< $@
 
 else # Darwin
 ASTSSL_LIB:=libasteriskssl.dylib
{code}

Something similar could be done for -lasteriskpj in main/Makefile .

Note: my autoconf generates LDCONFIG=':'

> res_pjsip: Bundled pjproject: compile error, cannot find -lasteriskpj
> ---------------------------------------------------------------------
>
>                 Key: ASTERISK-25873
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-25873
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Resources/res_pjsip/Bundling
>    Affects Versions: 13.8.0
>         Environment: Linux vps 4.4.0-0.bpo.1-amd64 #1 SMP Debian 4.4.6-1~bpo8+1 (2016-03-20) x86_64 GNU/Linux
> gcc version 4.9.2 (Debian 4.9.2-10)
>            Reporter: Hans van Eijsden
>            Assignee: George Joseph
>              Labels: asterisk
>
> While building Asterisk 13.8.0 with the new --pjproject-bundled option, Asterisk doesn't build.
> While linking, it stops at this error:
> /usr/bin/ld.bfd.real: cannot find -lasteriskpj
> collect2: error: ld returned 1 exit status
> The complete log is on Pastebin (http://pastebin.com/ikXAsjMF), attached to this report.
> TL;DR:
> $ contrib/scripts/get_mp3_source.sh
> $ ./bootstrap.sh
> $ ./configure CFLAGS="-DPJ_HAS_IPV6=1 -fPIC -O3 -march=native" CXXFLAGS="-fPIC -O3 -march=native" --with-pjproject-bundled --with-srtp --with-ssl --with-crypto
> $ make menuselect
> $ make
> [...]
> /usr/bin/ld.bfd.real: cannot find -lasteriskpj
> collect2: error: ld returned 1 exit status
> Makefile:334: recept voor doel 'asterisk' is mislukt
> make[1]: *** [asterisk] Fout 1
> Makefile:398: recept voor doel 'main' is mislukt
> make: *** [main] Fout 2
> Just let me know if you need more info. Thanks.



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



More information about the asterisk-bugs mailing list