Bug 260486

Summary: net/kamailio: update to 5.5.3
Product: Ports & Packages Reporter: Dustin Marquess <jailbird>
Component: Individual Port(s)Assignee: Fernando Apesteguía <fernape>
Status: Closed FIXED    
Severity: Affects Many People CC: dmitry.wagin, fernape
Priority: --- Flags: bugzilla: maintainer-feedback? (dmitry.wagin)
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
Initial patch
none
kamailio.diff dmitry.wagin: maintainer-approval+

Description Dustin Marquess 2021-12-17 04:37:49 UTC
Created attachment 230192 [details]
Initial patch

The attached patch updates net/kamailio to 5.5.3. I also added SQLite as an option. The new patch that is created (patch-src_Makefile.groups) has been upstreamed, but has not made it to an actual release yet. Once 5.5.4 lands, it can be removed.
Comment 1 Fernando Apesteguía freebsd_committer freebsd_triage 2021-12-22 13:42:26 UTC
^Triage: If there is a changelog or release notes URL available for this version, please add it to the URL field

Thanks!
Comment 2 Dmitry Wagin 2021-12-22 13:51:44 UTC
The attached patch contains several controversial changes, I'm working on a more complex port improvement that will include sqlite.

Also testing the 5.5 branch, I haven't finished yet.
Comment 3 Fernando Apesteguía freebsd_committer freebsd_triage 2021-12-22 16:24:11 UTC
(In reply to Dmitry Wagin from comment #2)
Thanks Dmitry.

I'll wait until there is a new patch available. Feel free to ping me should I not reply.

Changing the state to Open in the meantime.
Comment 4 Dmitry Wagin 2022-01-05 23:07:37 UTC
Created attachment 230745 [details]
kamailio.diff

Update to 5.5.3

Also, removed KEMIX option as already used.
Added EVAPI (Network event broadcast API), JWT (JSON Web Token generation and validation), KAFKA (Produces and sends messages to a Kafka server), LWSC (Websocket client connector using libwebsockets), MQTT (MQTT connector for bi-directional publish-subscribe communication), SECSIPID (Secure SIP/Telephony Identity (STIR/SHAKEN) extensions), and SQLITE (SQLite database support) options.
Comment 5 Fernando Apesteguía freebsd_committer freebsd_triage 2022-01-06 13:24:35 UTC
Fails to build in current amd64 with the following:

LD (cc) [kamailio]              kamailio                                                                                                                                                                                                                   
LD (cc) [M db_sqlite.so]                db_sqlite.so                                                                                                                                                                                                       
ld: error: undefined symbol: yyparse                    
>>> referenced by main.c:2482                                 
>>>               main.o:(main)                                                                                              
                                                              
ld: error: undefined symbol: yylval                                                                                          
>>> referenced by cfg.lex:586 (core/cfg.lex:586)            
>>>               core/lex.yy.o:(yylex)                                                                                      
>>> referenced by cfg.lex:587 (core/cfg.lex:587)                                                                             
>>>               core/lex.yy.o:(yylex)                     
>>> referenced by cfg.lex:588 (core/cfg.lex:588)                                                                             
>>>               core/lex.yy.o:(yylex)                                                                                      
>>> referenced 313 more times                                                                                                
cc: error: linker command failed with exit code 1 (use -v to see invocation)                                                 
gmake[2]: *** [Makefile.rules:191: kamailio] Error 1                                                                         
gmake[2]: *** Waiting for unfinished jobs....                                      

Can you reproduce it?
Comment 6 Dmitry Wagin 2022-01-07 13:27:51 UTC
(In reply to Fernando Apesteguía from comment #5)

On 12-STABLE poudriere testport - ok
On 13-STABLE poudriere testport - ok
On CURRENT not test yet (no build environment).
Comment 7 Dustin Marquess 2022-01-07 22:01:53 UTC
Builds fine under poudriere on HardenedBSD 14-CURRENT also.
Comment 8 Fernando Apesteguía freebsd_committer freebsd_triage 2022-01-08 13:31:48 UTC
(In reply to Dustin Marquess from comment #7)
Still fails for me. Host is main-n252058-5e6a2d6eb22 and jail is 1400046 5e6a2d6eb2.

I'll update both of them and try again.
Comment 9 Fernando Apesteguía freebsd_committer freebsd_triage 2022-01-08 20:04:24 UTC
Committed,

I updated bot host and poudriere to latest current and the port builds fine.

Thanks!
Comment 10 commit-hook freebsd_committer freebsd_triage 2022-01-08 20:04:42 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=981ee3f931b42baa9391a8b7b264f3e05e7a0535

commit 981ee3f931b42baa9391a8b7b264f3e05e7a0535
Author:     Dmitry Wagin <dmitry.wagin@ya.ru>
AuthorDate: 2022-01-06 12:54:38 +0000
Commit:     Fernando Apesteguía <fernape@FreeBSD.org>
CommitDate: 2022-01-08 20:02:00 +0000

    net/kamailio: update to 5.5.3

    ChangeLog: https://www.kamailio.org/pub/kamailio/5.5.3/ChangeLog

    Added multiple options and option KEMIX removed.

    PR:     260486
    Reported by:    jailbird@fdf.net

 net/kamailio/Makefile                        | 52 +++++++++++++------
 net/kamailio/distinfo                        |  6 +--
 net/kamailio/files/patch-src_Makefile.defs   |  2 +-
 net/kamailio/files/patch-src_core_ip__addr.h |  6 +--
 net/kamailio/pkg-plist                       | 78 +++++++++++++++++++++++++---
 5 files changed, 114 insertions(+), 30 deletions(-)