ANNOUNCEMENT: Live Wireshark University & Allegro Packets online APAC Wireshark Training Session
April 17th, 2024 | 14:30-16:00 SGT (UTC+8) | Online

Wireshark-bugs: [Wireshark-bugs] [Bug 3963] New: Fails while compiling packet-dect.c

Date: Sat, 29 Aug 2009 11:27:20 -0700 (PDT)
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=3963

           Summary: Fails while compiling packet-dect.c
           Product: Wireshark
           Version: 1.2.1
          Platform: x86
        OS/Version: OpenBSD
            Status: NEW
          Severity: Normal
          Priority: Low
         Component: Wireshark
        AssignedTo: wireshark-bugs@xxxxxxxxxxxxx
        ReportedBy: kurt@xxxxxxxxxxxx


Build Information:
FTBFS (Fails to build from source). I'm guessing the interesting line is:

packet-dect.c:1113:43: macro "setbit" passed 3 arguments, but takes just 2

--
So using gmake on OpenBSD 4.6 it starts compiling but fails, here is the final
set of errors (with some extra so you can probably ignore the first few lines,
I just include them to ensure I didn't miss anything):

/bin/sh ../../libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I../..
-I./../.. -I./.. -I/usr/local/include -I/usr/local/include 
-I/usr/local/include '-DPLUGIN_DIR="/usr/local/lib/wireshark/plugins/1.2.1"' 
-DINET6 -D_U_="__attribute__((unused))" -g -O2 -Wall -W -Wendif-labels
-Wpointer-arith -Wcast-align -Wformat-security -I/usr/local/include
-I/usr/local/include/gtk-2.0 -I/usr/local/lib/gtk-2.0/include
-I/usr/local/include/pango-1.0 -I/usr/X11R6/include -I/usr/local/include/cairo
-I/usr/local/include/atk-1.0 -I/usr/X11R6/include/pixman-1 -I/usr/local/include
-I/usr/local/include/libpng -I/usr/X11R6/include/freetype2 -pthread
-I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -MT
libdissectors_la-packet-dec-dnart.lo -MD -MP -MF
.deps/libdissectors_la-packet-dec-dnart.Tpo -c -o
libdissectors_la-packet-dec-dnart.lo `test -f 'packet-dec-dnart.c' || echo
'./'`packet-dec-dnart.c

gcc -DHAVE_CONFIG_H -I. -I../.. -I./../.. -I./.. -I/usr/local/include
-I/usr/local/include -I/usr/local/include
-DPLUGIN_DIR=\"/usr/local/lib/wireshark/plugins/1.2.1\" -DINET6
"-D_U_=__attribute__((unused))" -g -O2 -Wall -W -Wendif-labels -Wpointer-arith
-Wcast-align -Wformat-security -I/usr/local/include
-I/usr/local/include/gtk-2.0 -I/usr/local/lib/gtk-2.0/include
-I/usr/local/include/pango-1.0 -I/usr/X11R6/include -I/usr/local/include/cairo
-I/usr/local/include/atk-1.0 -I/usr/X11R6/include/pixman-1 -I/usr/local/include
-I/usr/local/include/libpng -I/usr/X11R6/include/freetype2 -pthread
-I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -MT
libdissectors_la-packet-dec-dnart.lo -MD -MP -MF
.deps/libdissectors_la-packet-dec-dnart.Tpo -c packet-dec-dnart.c  -fPIC -DPIC
-o .libs/libdissectors_la-packet-dec-dnart.o

mv -f .deps/libdissectors_la-packet-dec-dnart.Tpo
.deps/libdissectors_la-packet-dec-dnart.Plo


/bin/sh ../../libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I../..
-I./../.. -I./.. -I/usr/local/include -I/usr/local/include 
-I/usr/local/include '-DPLUGIN_DIR="/usr/local/lib/wireshark/plugins/1.2.1"' 
-DINET6 -D_U_="__attribute__((unused))" -g -O2 -Wall -W -Wendif-labels
-Wpointer-arith -Wcast-align -Wformat-security -I/usr/local/include
-I/usr/local/include/gtk-2.0 -I/usr/local/lib/gtk-2.0/include
-I/usr/local/include/pango-1.0 -I/usr/X11R6/include -I/usr/local/include/cairo
-I/usr/local/include/atk-1.0 -I/usr/X11R6/include/pixman-1 -I/usr/local/include
-I/usr/local/include/libpng -I/usr/X11R6/include/freetype2 -pthread
-I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -MT
libdissectors_la-packet-dect.lo -MD -MP -MF
.deps/libdissectors_la-packet-dect.Tpo -c -o libdissectors_la-packet-dect.lo
`test -f 'packet-dect.c' || echo './'`packet-dect.c

 gcc -DHAVE_CONFIG_H -I. -I../.. -I./../.. -I./.. -I/usr/local/include
-I/usr/local/include -I/usr/local/include
-DPLUGIN_DIR=\"/usr/local/lib/wireshark/plugins/1.2.1\" -DINET6
"-D_U_=__attribute__((unused))" -g -O2 -Wall -W -Wendif-labels -Wpointer-arith
-Wcast-align -Wformat-security -I/usr/local/include
-I/usr/local/include/gtk-2.0 -I/usr/local/lib/gtk-2.0/include
-I/usr/local/include/pango-1.0 -I/usr/X11R6/include -I/usr/local/include/cairo
-I/usr/local/include/atk-1.0 -I/usr/X11R6/include/pixman-1 -I/usr/local/include
-I/usr/local/include/libpng -I/usr/X11R6/include/freetype2 -pthread
-I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -MT
libdissectors_la-packet-dect.lo -MD -MP -MF
.deps/libdissectors_la-packet-dect.Tpo -c packet-dect.c  -fPIC -DPIC -o
.libs/libdissectors_la-packet-dect.o

packet-dect.c:1113:43: macro "setbit" passed 3 arguments, but takes just 2
packet-dect.c:1114: error: syntax error before '{' token
packet-dect.c:55: warning: `scrt' defined but not used
packet-dect.c:80: warning: `proto_dect' defined but not used
packet-dect.c:87: warning: `ett_dect' defined but not used
packet-dect.c:88: warning: `ett_afield' defined but not used
packet-dect.c:89: warning: `ett_ahead' defined but not used
packet-dect.c:90: warning: `ett_atail' defined but not used
packet-dect.c:91: warning: `ett_aqt' defined but not used
packet-dect.c:92: warning: `ett_bfield' defined but not used
packet-dect.c:94: warning: `hf_dect_transceivermode' defined but not used
packet-dect.c:95: warning: `hf_dect_preamble' defined but not used
packet-dect.c:96: warning: `hf_dect_type' defined but not used
packet-dect.c:97: warning: `hf_dect_channel' defined but not used
packet-dect.c:98: warning: `hf_dect_framenumber' defined but not used
packet-dect.c:99: warning: `hf_dect_rssi' defined but not used
packet-dect.c:100: warning: `hf_dect_slot' defined but not used
packet-dect.c:101: warning: `hf_dect_A' defined but not used
packet-dect.c:102: warning: `hf_dect_A_Head' defined but not used
packet-dect.c:103: warning: `hf_dect_A_Head_TA_FP' defined but not used
packet-dect.c:104: warning: `hf_dect_A_Head_TA_PP' defined but not used
packet-dect.c:105: warning: `hf_dect_A_Head_Q1' defined but not used
packet-dect.c:106: warning: `hf_dect_A_Head_BA' defined but not used
packet-dect.c:107: warning: `hf_dect_A_Head_Q2' defined but not used
packet-dect.c:108: warning: `hf_dect_A_Tail' defined but not used
packet-dect.c:109: warning: `hf_dect_A_Tail_Nt' defined but not used
packet-dect.c:110: warning: `hf_dect_A_Tail_Qt_Qh' defined but not used
packet-dect.c:111: warning: `hf_dect_A_Tail_Qt_0_Sn' defined but not used
packet-dect.c:112: warning: `hf_dect_A_Tail_Qt_0_Nr' defined but not used
packet-dect.c:113: warning: `hf_dect_A_Tail_Qt_0_Sp' defined but not used
packet-dect.c:114: warning: `hf_dect_A_Tail_Qt_0_Esc' defined but not used
packet-dect.c:115: warning: `hf_dect_A_Tail_Qt_0_Txs' defined but not used
packet-dect.c:116: warning: `hf_dect_A_Tail_Qt_0_Mc' defined but not used
packet-dect.c:117: warning: `hf_dect_A_Tail_Qt_0_Spr1' defined but not used
packet-dect.c:118: warning: `hf_dect_A_Tail_Qt_0_Cn' defined but not used
packet-dect.c:119: warning: `hf_dect_A_Tail_Qt_0_Spr2' defined but not used
packet-dect.c:120: warning: `hf_dect_A_Tail_Qt_0_PSCN' defined but not used
packet-dect.c:121: warning: `hf_dect_A_Tail_Qt_3_A12' defined but not used
packet-dect.c:122: warning: `hf_dect_A_Tail_Qt_3_A13' defined but not used
packet-dect.c:123: warning: `hf_dect_A_Tail_Qt_3_A14' defined but not used
packet-dect.c:124: warning: `hf_dect_A_Tail_Qt_3_A15' defined but not used
packet-dect.c:125: warning: `hf_dect_A_Tail_Qt_3_A16' defined but not used
packet-dect.c:126: warning: `hf_dect_A_Tail_Qt_3_A17' defined but not used
packet-dect.c:127: warning: `hf_dect_A_Tail_Qt_3_A18' defined but not used
packet-dect.c:128: warning: `hf_dect_A_Tail_Qt_3_A19' defined but not used
packet-dect.c:129: warning: `hf_dect_A_Tail_Qt_3_A20' defined but not used
packet-dect.c:130: warning: `hf_dect_A_Tail_Qt_3_A21' defined but not used
packet-dect.c:131: warning: `hf_dect_A_Tail_Qt_3_A22' defined but not used
packet-dect.c:132: warning: `hf_dect_A_Tail_Qt_3_A23' defined but not used
packet-dect.c:133: warning: `hf_dect_A_Tail_Qt_3_A24' defined but not used
packet-dect.c:134: warning: `hf_dect_A_Tail_Qt_3_A25' defined but not used
packet-dect.c:135: warning: `hf_dect_A_Tail_Qt_3_A26' defined but not used
packet-dect.c:136: warning: `hf_dect_A_Tail_Qt_3_A27' defined but not used
packet-dect.c:137: warning: `hf_dect_A_Tail_Qt_3_A28' defined but not used
packet-dect.c:138: warning: `hf_dect_A_Tail_Qt_3_A29' defined but not used
packet-dect.c:139: warning: `hf_dect_A_Tail_Qt_3_A30' defined but not used
packet-dect.c:140: warning: `hf_dect_A_Tail_Qt_3_A31' defined but not used
packet-dect.c:141: warning: `hf_dect_A_Tail_Qt_3_A32' defined but not used
packet-dect.c:142: warning: `hf_dect_A_Tail_Qt_3_A33' defined but not used
packet-dect.c:143: warning: `hf_dect_A_Tail_Qt_3_A34' defined but not used
packet-dect.c:144: warning: `hf_dect_A_Tail_Qt_3_A35' defined but not used
packet-dect.c:145: warning: `hf_dect_A_Tail_Qt_3_A36' defined but not used
packet-dect.c:146: warning: `hf_dect_A_Tail_Qt_3_A37' defined but not used
packet-dect.c:147: warning: `hf_dect_A_Tail_Qt_3_A38' defined but not used
packet-dect.c:148: warning: `hf_dect_A_Tail_Qt_3_A39' defined but not used
packet-dect.c:149: warning: `hf_dect_A_Tail_Qt_3_A40' defined but not used
packet-dect.c:150: warning: `hf_dect_A_Tail_Qt_3_A41' defined but not used
packet-dect.c:151: warning: `hf_dect_A_Tail_Qt_3_A42' defined but not used
packet-dect.c:152: warning: `hf_dect_A_Tail_Qt_3_A43' defined but not used
packet-dect.c:153: warning: `hf_dect_A_Tail_Qt_3_A44' defined but not used
packet-dect.c:154: warning: `hf_dect_A_Tail_Qt_3_A45' defined but not used
packet-dect.c:155: warning: `hf_dect_A_Tail_Qt_3_A46' defined but not used
packet-dect.c:156: warning: `hf_dect_A_Tail_Qt_3_A47' defined but not used
packet-dect.c:157: warning: `hf_dect_A_Tail_Qt_4_CRFPHops' defined but not used
packet-dect.c:158: warning: `hf_dect_A_Tail_Qt_4_CRFPEnc' defined but not used
packet-dect.c:159: warning: `hf_dect_A_Tail_Qt_4_REFHops' defined but not used
packet-dect.c:160: warning: `hf_dect_A_Tail_Qt_4_REPCap' defined but not used
packet-dect.c:161: warning: `hf_dect_A_Tail_Qt_4_Sync' defined but not used
packet-dect.c:162: warning: `hf_dect_A_Tail_Qt_4_A20' defined but not used
packet-dect.c:163: warning: `hf_dect_A_Tail_Qt_4_MACSusp' defined but not used
packet-dect.c:164: warning: `hf_dect_A_Tail_Qt_4_MACIpq' defined but not used
packet-dect.c:165: warning: `hf_dect_A_Tail_Qt_4_A23' defined but not used
packet-dect.c:166: warning: `hf_dect_A_Tail_Qt_4_A24' defined but not used
packet-dect.c:167: warning: `hf_dect_A_Tail_Qt_4_A25' defined but not used
packet-dect.c:168: warning: `hf_dect_A_Tail_Qt_4_A26' defined but not used
packet-dect.c:169: warning: `hf_dect_A_Tail_Qt_4_A27' defined but not used
packet-dect.c:170: warning: `hf_dect_A_Tail_Qt_4_A28' defined but not used
packet-dect.c:171: warning: `hf_dect_A_Tail_Qt_4_A29' defined but not used
packet-dect.c:172: warning: `hf_dect_A_Tail_Qt_4_A30' defined but not used
packet-dect.c:173: warning: `hf_dect_A_Tail_Qt_4_A31' defined but not used
packet-dect.c:174: warning: `hf_dect_A_Tail_Qt_4_A32' defined but not used
packet-dect.c:175: warning: `hf_dect_A_Tail_Qt_4_A33' defined but not used
packet-dect.c:176: warning: `hf_dect_A_Tail_Qt_4_A34' defined but not used
packet-dect.c:177: warning: `hf_dect_A_Tail_Qt_4_A35' defined but not used
packet-dect.c:178: warning: `hf_dect_A_Tail_Qt_4_A36' defined but not used
packet-dect.c:179: warning: `hf_dect_A_Tail_Qt_4_A37' defined but not used
packet-dect.c:180: warning: `hf_dect_A_Tail_Qt_4_A38' defined but not used
packet-dect.c:181: warning: `hf_dect_A_Tail_Qt_4_A39' defined but not used
packet-dect.c:182: warning: `hf_dect_A_Tail_Qt_4_A40' defined but not used
packet-dect.c:183: warning: `hf_dect_A_Tail_Qt_4_A41' defined but not used
packet-dect.c:184: warning: `hf_dect_A_Tail_Qt_4_A42' defined but not used
packet-dect.c:185: warning: `hf_dect_A_Tail_Qt_4_A43' defined but not used
packet-dect.c:186: warning: `hf_dect_A_Tail_Qt_4_A44' defined but not used
packet-dect.c:187: warning: `hf_dect_A_Tail_Qt_4_A45' defined but not used
packet-dect.c:188: warning: `hf_dect_A_Tail_Qt_4_A46' defined but not used
packet-dect.c:189: warning: `hf_dect_A_Tail_Qt_4_A47' defined but not used
packet-dect.c:190: warning: `hf_dect_A_Tail_Qt_6_Spare' defined but not used
packet-dect.c:191: warning: `hf_dect_A_Tail_Qt_6_Mfn' defined but not used
packet-dect.c:192: warning: `hf_dect_A_Tail_Mt_Mh' defined but not used
packet-dect.c:193: warning: `hf_dect_A_Tail_Mt_Mh_fmid' defined but not used
packet-dect.c:194: warning: `hf_dect_A_Tail_Mt_Mh_pmid' defined but not used
packet-dect.c:195: warning: `hf_dect_A_Tail_Mt_BasicConCtrl' defined but not
used
packet-dect.c:196: warning: `hf_dect_A_Tail_Mt_Encr_Cmd1' defined but not used
packet-dect.c:197: warning: `hf_dect_A_Tail_Mt_Encr_Cmd2' defined but not used
packet-dect.c:198: warning: `hf_dect_A_Tail_Pt_ExtFlag' defined but not used
packet-dect.c:199: warning: `hf_dect_A_Tail_Pt_SDU' defined but not used
packet-dect.c:200: warning: `hf_dect_A_Tail_Pt_InfoType' defined but not used
packet-dect.c:201: warning: `hf_dect_A_Tail_Pt_Fill_Fillbits' defined but not
used
packet-dect.c:202: warning: `hf_dect_A_Tail_Pt_Bearer_Sn' defined but not used
packet-dect.c:203: warning: `hf_dect_A_Tail_Pt_Bearer_Cn' defined but not used
packet-dect.c:204: warning: `hf_dect_A_Tail_Pt_Bearer_Sp' defined but not used
packet-dect.c:205: warning: `hf_dect_A_RCRC' defined but not used
packet-dect.c:206: warning: `hf_dect_B' defined but not used
packet-dect.c:207: warning: `hf_dect_B_Data' defined but not used
packet-dect.c:208: warning: `hf_dect_B_fn' defined but not used
packet-dect.c:209: warning: `hf_dect_B_XCRC' defined but not used
packet-dect.c:1102: warning: `getbit' defined but not used
gmake[4]: *** [libdissectors_la-packet-dect.lo] Error 1
gmake[4]: Leaving directory `/usr/local/src/wireshark-1.2.1/epan/dissectors'
gmake[3]: *** [all] Error 2
gmake[3]: Leaving directory `/usr/local/src/wireshark-1.2.1/epan/dissectors'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory `/usr/local/src/wireshark-1.2.1/epan'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/usr/local/src/wireshark-1.2.1'
gmake: *** [all] Error 2


-- 
Configure bugmail: https://bugs.wireshark.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.