[MacPorts] #49012: Errors compiling gst_ptp_helper 'field has incomplete type 'struct sockaddr'' from if.h

MacPorts noreply at macports.org
Wed Sep 30 06:21:17 PDT 2015


#49012: Errors compiling gst_ptp_helper 'field has incomplete type 'struct
sockaddr'' from if.h
-------------------------------------------------+-------------------------
 Reporter:  andrew.long@…                        |      Owner:  macports-
     Type:  defect                               |  tickets@…
 Priority:  Normal                               |     Status:  new
Component:  ports                                |  Milestone:
 Keywords:  if.h sockaddr sockaddr_storage       |    Version:  2.3.3
  gstreamer1                                     |       Port:
                                                 |  gstreamer1-1.6.0+0
-------------------------------------------------+-------------------------
 Doing 'port upgrade outdated' fails when it gets to building gstreamer1.
 Compiling gst-ptp-helper.c reports 2 comments and 8 errors on included
 file if.h relating to 'struct sockaddr' or 'struct sockaddr_storage'.

 Log extract here:-

 {{{
 :info:build /usr/bin/clang -arch x86_64 -DHAVE_CONFIG_H -I. -I../../..
 -I/opt/local/include -I../../../libs -I../../.. -I../../../libs -I../../..
 -D_REENTRANT -I/opt/local/include/glib-2.0
 -I/opt/local/lib/glib-2.0/include -I/opt/local/include
 -DG_THREADS_MANDATORY -DG_DISABLE_CAST_CHECKS -DG_DISABLE_ASSERT  -Wall
 -Wdeclaration-after-statement -Wvla -Wpointer-arith -Wmissing-declarations
 -Wmissing-prototypes -Wredundant-decls -Wundef -Wwrite-strings -Wformat-
 nonliteral -Wformat-security -Wold-style-definition -Winit-self -Wmissing-
 include-dirs -Waddress -Waggregate-return -Wno-multichar -Wnested-externs
 -g     -pipe -Os -funroll-loops -fstrict-aliasing -fno-common -arch x86_64
 -MT gst_plugin_scanner-gst-plugin-scanner.o -MD -MP -MF .deps
 /gst_plugin_scanner-gst-plugin-scanner.Tpo -c -o gst_plugin_scanner-gst-
 plugin-scanner.o `test -f 'gst-plugin-scanner.c' || echo './'`gst-plugin-
 scanner.c
 :info:build /usr/bin/clang -arch x86_64 -DHAVE_CONFIG_H -I. -I../../..
 -I/opt/local/include -I../../../libs -I../../.. -I../../../libs -I../../..
 -D_REENTRANT -I/opt/local/include/glib-2.0
 -I/opt/local/lib/glib-2.0/include -I/opt/local/include
 -DG_THREADS_MANDATORY -DG_DISABLE_CAST_CHECKS -DG_DISABLE_ASSERT  -Wall
 -Wdeclaration-after-statement -Wvla -Wpointer-arith -Wmissing-declarations
 -Wmissing-prototypes -Wredundant-decls -Wundef -Wwrite-strings -Wformat-
 nonliteral -Wformat-security -Wold-style-definition -Winit-self -Wmissing-
 include-dirs -Waddress -Waggregate-return -Wno-multichar -Wnested-externs
 -g     -D_REENTRANT -I/opt/local/include/glib-2.0
 -I/opt/local/lib/glib-2.0/include -I/opt/local/include  -pipe -Os
 -funroll-loops -fstrict-aliasing -fno-common -arch x86_64 -MT
 gst_ptp_helper-gst-ptp-helper.o -MD -MP -MF .deps/gst_ptp_helper-gst-ptp-
 helper.Tpo -c -o gst_ptp_helper-gst-ptp-helper.o `test -f 'gst-ptp-
 helper.c' || echo './'`gst-ptp-helper.c
 :info:build In file included from gst-ptp-helper.c:40:
 :info:build /usr/include/net/if.h:300:19: error: field has incomplete type
 'struct sockaddr'
 :info:build                 struct  sockaddr ifru_addr;
 :info:build                                  ^
 :info:build /usr/include/net/if.h:300:10: note: forward declaration of
 'struct sockaddr'
 :info:build                 struct  sockaddr ifru_addr;
 :info:build                         ^
 :info:build /usr/include/net/if.h:301:19: error: field has incomplete type
 'struct sockaddr'
 :info:build                 struct  sockaddr ifru_dstaddr;
 :info:build                                  ^
 :info:build /usr/include/net/if.h:300:10: note: forward declaration of
 'struct sockaddr'
 :info:build                 struct  sockaddr ifru_addr;
 :info:build                         ^
 :info:build /usr/include/net/if.h:302:19: error: field has incomplete type
 'struct sockaddr'
 :info:build                 struct  sockaddr ifru_broadaddr;
 :info:build                                  ^
 :info:build /usr/include/net/if.h:300:10: note: forward declaration of
 'struct sockaddr'
 :info:build                 struct  sockaddr ifru_addr;
 :info:build                         ^
 :info:build /usr/include/net/if.h:346:18: error: field has incomplete type
 'struct sockaddr'
 :info:build         struct  sockaddr ifra_addr;
 :info:build                          ^
 :info:build /usr/include/net/if.h:300:10: note: forward declaration of
 'struct sockaddr'
 :info:build                 struct  sockaddr ifru_addr;
 :info:build                         ^
 :info:build /usr/include/net/if.h:347:18: error: field has incomplete type
 'struct sockaddr'
 :info:build         struct  sockaddr ifra_broadaddr;
 :info:build                          ^
 :info:build /usr/include/net/if.h:300:10: note: forward declaration of
 'struct sockaddr'
 :info:build                 struct  sockaddr ifru_addr;
 :info:build                         ^
 :info:build /usr/include/net/if.h:348:18: error: field has incomplete type
 'struct sockaddr'
 :info:build         struct  sockaddr ifra_mask;
 :info:build                          ^
 :info:build /usr/include/net/if.h:300:10: note: forward declaration of
 'struct sockaddr'
 :info:build                 struct  sockaddr ifru_addr;
 :info:build                         ^
 :info:build /usr/include/net/if.h:431:26: error: field has incomplete type
 'struct sockaddr_storage'
 :info:build         struct sockaddr_storage addr;   /* in/out */
 :info:build                                 ^
 :info:build /usr/include/net/if.h:431:9: note: forward declaration of
 'struct sockaddr_storage'
 :info:build         struct sockaddr_storage addr;   /* in/out */
 :info:build                ^
 :info:build /usr/include/net/if.h:432:26: error: field has incomplete type
 'struct sockaddr_storage'
 :info:build         struct sockaddr_storage dstaddr; /* out */
 :info:build                                 ^
 :info:build /usr/include/net/if.h:431:9: note: forward declaration of
 'struct sockaddr_storage'
 :info:build         struct sockaddr_storage addr;   /* in/out */
 :info:build                ^
 :info:build mv -f .deps/gst_plugin_scanner-gst-plugin-scanner.Tpo .deps
 /gst_plugin_scanner-gst-plugin-scanner.Po
 :info:build /bin/sh ../../../libtool  --tag=CC   --mode=link
 /usr/bin/clang -arch x86_64 -I../../../libs -I../../.. -I../../../libs
 -I../../.. -D_REENTRANT -I/opt/local/include/glib-2.0
 -I/opt/local/lib/glib-2.0/include -I/opt/local/include
 -DG_THREADS_MANDATORY -DG_DISABLE_CAST_CHECKS -DG_DISABLE_ASSERT  -Wall
 -Wdeclaration-after-statement -Wvla -Wpointer-arith -Wmissing-declarations
 -Wmissing-prototypes -Wredundant-decls -Wundef -Wwrite-strings -Wformat-
 nonliteral -Wformat-security -Wold-style-definition -Winit-self -Wmissing-
 include-dirs -Waddress -Waggregate-return -Wno-multichar -Wnested-externs
 -g     -pipe -Os -funroll-loops -fstrict-aliasing -fno-common -arch x86_64
 -L/opt/local/lib -Wl,-headerpad_max_install_names -arch x86_64 -o gst-
 plugin-scanner gst_plugin_scanner-gst-plugin-scanner.o
 ../../../gst/libgstreamer-1.0.la -L/opt/local/lib -lgobject-2.0
 -lgmodule-2.0 -lglib-2.0 -lintl  -L/opt/local/lib -lintl -R/opt/local/lib
 -Wl,-framework -Wl,CoreFoundation  -ldl
 :info:build mv -f .deps/gst_completion_helper_1.0-gst-completion-
 helper.Tpo .deps/gst_completion_helper_1.0-gst-completion-helper.Po
 :info:build /bin/sh ../../../libtool  --tag=CC   --mode=link
 /usr/bin/clang -arch x86_64 -I../../../libs -I../../.. -I../../../libs
 -I../../.. -D_REENTRANT -I/opt/local/include/glib-2.0
 -I/opt/local/lib/glib-2.0/include -I/opt/local/include
 -DG_THREADS_MANDATORY -DG_DISABLE_CAST_CHECKS -DG_DISABLE_ASSERT  -Wall
 -Wdeclaration-after-statement -Wvla -Wpointer-arith -Wmissing-declarations
 -Wmissing-prototypes -Wredundant-decls -Wundef -Wwrite-strings -Wformat-
 nonliteral -Wformat-security -Wold-style-definition -Winit-self -Wmissing-
 include-dirs -Waddress -Waggregate-return -Wno-multichar -Wnested-externs
 -g     -pipe -Os -funroll-loops -fstrict-aliasing -fno-common -arch x86_64
 -L/opt/local/lib -Wl,-headerpad_max_install_names -arch x86_64 -o gst-
 completion-helper-1.0 gst_completion_helper_1.0-gst-completion-helper.o
 ../../../gst/libgstreamer-1.0.la -L/opt/local/lib -lgobject-2.0
 -lgmodule-2.0 -lglib-2.0 -lintl  -L/opt/local/lib -lintl -R/opt/local/lib
 -Wl,-framework -Wl,CoreFoundation  -ldl
 :info:build gst-ptp-helper.c:295:2: warning: "Implement something to list
 all network interfaces" [-W#warnings]
 :info:build #warning "Implement something to list all network interfaces"
 :info:build  ^
 :info:build gst-ptp-helper.c:411:2: warning: "Implement something to get
 MAC addresses of network interfaces" [-W#warnings]
 :info:build #warning "Implement something to get MAC addresses of network
 interfaces"
 :info:build  ^
 :info:build 2 warnings and 8 errors generated.
 :info:build make[4]: *** [gst_ptp_helper-gst-ptp-helper.o] Error 1
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/49012>
MacPorts <https://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list