[Bug 264680] net/belle-sip: build fails if devel/antlr3 is installed

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 15 Jun 2022 11:39:45 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=264680

            Bug ID: 264680
           Summary: net/belle-sip: build fails if devel/antlr3 is
                    installed
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: vvd@unislabs.com
                CC: bofh@freebsd.org, takumiiinn@gmail.com
                CC: bofh@freebsd.org, takumiiinn@gmail.com

net/belle-sip grab /usr/local/bin/antlr3 (from devel/antlr3 version is 3.5.2)
instead required 3.4 (antlr-3.4-complete.jar in distinfo).

Part of build log with installed devel/antlr3:
===>  Building for belle-sip-1.6.3
[  2% 2/47] cd /tmp/work/usr/ports/net/belle-sip/work/.build/src &&
/usr/local/bin/antlr3 -make -Xmultithreaded -Xconversiontimeout 10000 -fo
/tmp/work/usr/ports/net/belle-sip/work/.build/src/grammars
/tmp/work/usr/ports/net/belle-sip/work/belle-sip-1.6.3-0/src/grammars/belle_sdp.g
two-threaded DFA conversion
warning(24):  template error: context [/outputFile /parser] 1:1 could not pass
through undefined attribute filterMode
warning(24):  template error: context [/outputFile /parser /genericParser
/_sub165 /ruleAttributeScopeFuncMacro] 1:4 no such property or can't access:
null.attributes
warning(24):  template error: context [/outputFile /parser /genericParser
/_sub165 /ruleAttributeScopeFuncMacro] 1:4 no such property or can't access:
null.attributes
... a lot of lines with same warnings ...
warning(24):  template error: context [/headerFile /_sub141
/ruleAttributeScopeDecl] 1:4 no such property or can't access: null.
attributes
two-threaded DFA conversion
warning(24):  template error: context [/outputFile /lexer /lexerRule
/ruleDeclarations] 4:1 no such property or can't access: null.attributes
warning(24):  template error: context [/outputFile /lexer /lexerRule
/ruleDeclarations] 4:1 no such property or can't access: null.attributes
... a lot of lines with same warnings ...
... cut ...
FAILED: src/CMakeFiles/bellesip.dir/grammars/belle_sdpParser.c.o 
/usr/bin/cc -DBELLESIP_EXPORTS -DHAVE_CONFIG_H -Dbellesip_EXPORTS
-I/tmp/work/usr/ports/net/belle-sip/work/belle-sip-1.6.3-0/include
-I/tmp/work/usr/ports/net/belle-sip/work/belle-sip-1.6.3-0/src
-I/tmp/work/usr/ports/net/belle-sip/work/.build
-I/tmp/work/usr/ports/net/belle-sip/work/.build/src -isystem /usr/local/include
-O2 -pipe -march=core2  -fstack-protector-strong -fno-strict
-aliasing -O2 -pipe -march=core2  -fstack-protector-strong -fno-strict-aliasing
-fPIC -std=gnu99  -Wall -Wuninitialized -Wno-error=deprecated-declarations
-Wno-error=unknown-warning-option -Qunused-arguments -Wno-tautological-compare
-Wno-builtin-requires-header -Wno-unused-function -Wno-gnu-designator
-Wno-array-bounds -Wno-strict-prototypes -Wno-error=sign-compare -MD -MT
src/CMakeFiles/bellesip.dir/grammars/belle_sdpParser.c.o -MF
src/CMakeFiles/bellesip.dir/grammars/belle_sdpParser.c.o.d -o
src/CMakeFiles/bellesip.dir/grammars/belle_sdpParser.c.o -c
/tmp/work/usr/ports/net/belle-sip/work/.build/src/grammars/belle_sdpParser.c
/tmp/work/usr/ports/net/belle-sip/work/.build/src/grammars/belle_sdpParser.c:3696:5:
error: use of undeclared identifier '_empty'
    _empty, _empty, dfa1_T4, dfa1_T8, dfa1_T13, dfa1_T17, dfa1_T10, dfa1_T8, 
    ^
/tmp/work/usr/ports/net/belle-sip/work/.build/src/grammars/belle_sdpParser.c:3696:13:
error: use of undeclared identifier '_empty'
    _empty, _empty, dfa1_T4, dfa1_T8, dfa1_T13, dfa1_T17, dfa1_T10, dfa1_T8, 
            ^
/tmp/work/usr/ports/net/belle-sip/work/.build/src/grammars/belle_sdpParser.c:4027:5:
error: use of undeclared identifier '_empty'
    _empty, _empty, dfa2_T6, dfa2_T12, dfa2_T11, dfa2_T14, dfa2_T4, dfa2_T12, 
    ^
/tmp/work/usr/ports/net/belle-sip/work/.build/src/grammars/belle_sdpParser.c:4027:13:
error: use of undeclared identifier '_empty'
    _empty, _empty, dfa2_T6, dfa2_T12, dfa2_T11, dfa2_T14, dfa2_T4, dfa2_T12, 
            ^
/tmp/work/usr/ports/net/belle-sip/work/.build/src/grammars/belle_sdpParser.c:4358:14:
error: use of undeclared identifier '_empty'
    dfa3_T8, _empty, _empty, dfa3_T6, dfa3_T0, dfa3_T13, dfa3_T17, dfa3_T11, 
             ^
/tmp/work/usr/ports/net/belle-sip/work/.build/src/grammars/belle_sdpParser.c:4358:22:
error: use of undeclared identifier '_empty'
    dfa3_T8, _empty, _empty, dfa3_T6, dfa3_T0, dfa3_T13, dfa3_T17, dfa3_T11,
... a lot of lines with same errors ...


Correct build look like:
===>  Building for belle-sip-1.6.3
[  2% 2/47] cd /tmp/work/usr/ports/net/belle-sip/work/.build/src &&
/usr/local/bin/java -Xmx384m -jar
/tmp/work/usr/ports/net/belle-sip/work/antlr3.jar -make -Xmultithreaded
-Xconversiontimeout 10000 -fo
/tmp/work/usr/ports/net/belle-sip/work/.build/src/grammars
/tmp/work/usr/ports/net/belle-sip/work/belle-sip-1.6.3-0/src/grammars/belle_sdp.g
two-threaded DFA conversion
two-threaded DFA conversion
[  4% 2/47] cd /tmp/work/usr/ports/net/belle-sip/work/.build/src &&
/usr/local/bin/java -Xmx384m -jar
/tmp/work/usr/ports/net/belle-sip/work/antlr3.jar -make -Xmultithreaded
-Xconversiontimeout 10000 -fo
/tmp/work/usr/ports/net/belle-sip/work/.build/src/grammars
/tmp/work/usr/ports/net/belle-sip/work/belle-sip-1.6.3-0/src/grammars/belle_sip_message.g
two-threaded DFA conversion
two-threaded DFA conversion
... cut ...

Parts of:
diff -u belle_sdpParser.c.bad belle_sdpParser.c.good
@@ -3693,7 +3713,7 @@
 {
     dfa1_T18, dfa1_T11, dfa1_T11, dfa1_T9, dfa1_T1, dfa1_T12, dfa1_T5,
dfa1_T19, 
     dfa1_T16, dfa1_T1, dfa1_T0, dfa1_T3, dfa1_T7, dfa1_T2, dfa1_T2, dfa1_T6, 
-    _empty, _empty, dfa1_T4, dfa1_T8, dfa1_T13, dfa1_T17, dfa1_T10, dfa1_T8, 
+    NULL, NULL, dfa1_T4, dfa1_T8, dfa1_T13, dfa1_T17, dfa1_T10, dfa1_T8, 
     dfa1_T8, dfa1_T8, dfa1_T8, dfa1_T8, dfa1_T14, dfa1_T3, dfa1_T3, dfa1_T3, 
     dfa1_T15
 };
@@ -4024,7 +4064,7 @@
 {
     dfa2_T15, dfa2_T13, dfa2_T13, dfa2_T0, dfa2_T3, dfa2_T7, dfa2_T8,
dfa2_T19, 
     dfa2_T18, dfa2_T3, dfa2_T2, dfa2_T1, dfa2_T10, dfa2_T5, dfa2_T5, dfa2_T9, 
-    _empty, _empty, dfa2_T6, dfa2_T12, dfa2_T11, dfa2_T14, dfa2_T4, dfa2_T12, 
+    NULL, NULL, dfa2_T6, dfa2_T12, dfa2_T11, dfa2_T14, dfa2_T4, dfa2_T12, 
     dfa2_T12, dfa2_T12, dfa2_T12, dfa2_T12, dfa2_T16, dfa2_T1, dfa2_T1, 
     dfa2_T1, dfa2_T17
 };
A lot of same differences.


BTW, maybe we can update it to 5.0.1?
https://gitlab.linphone.org/BC/public/belle-sip/-/blob/master/CHANGELOG.md

-- 
You are receiving this mail because:
You are the assignee for the bug.