[MacPorts] #49012: Errors compiling gst_ptp_helper 'field has incomplete type 'struct sockaddr'' from if.h
#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
#49012: Errors compiling gst_ptp_helper 'field has incomplete type 'struct sockaddr'' from if.h -------------------------+------------------------------------------------- Reporter: | Owner: macports-tickets@… andrew.long@… | Status: new Type: defect | Milestone: Priority: Normal | Version: 2.3.3 Component: ports | Keywords: if.h sockaddr sockaddr_storage Resolution: | gstreamer1 Port: | gstreamer1-1.6.0+0 | -------------------------+------------------------------------------------- Comment (by andrew.long@…): Should have supplied this info as well:- * 27 inch iMac, late 2009 * Processor 2.8 GHz Intel Core i7 * Memory 16 GB 1067 MHz DDR3 * Graphics ATI Radeon HD 4850 512 MB * Software Mac OS X Lion 10.7.5 (11G63) Regards, Andy -- Ticket URL: <https://trac.macports.org/ticket/49012#comment:1> MacPorts <https://www.macports.org/> Ports system for OS X
#49012: Errors compiling gst_ptp_helper 'field has incomplete type 'struct sockaddr'' from if.h ---------------------------------+-------------------------------- Reporter: andrew.long@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: Port: gstreamer1-1.6.0+0 | ---------------------------------+-------------------------------- Changes (by mf2k@…): * keywords: if.h sockaddr sockaddr_storage gstreamer1 => Comment: Please attach the complete main.log file. -- Ticket URL: <https://trac.macports.org/ticket/49012#comment:2> MacPorts <https://www.macports.org/> Ports system for OS X
#49012: Errors compiling gst_ptp_helper 'field has incomplete type 'struct sockaddr'' from if.h ----------------------------+---------------------- Reporter: andrew.long@… | Owner: devans@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: Port: gstreamer1 | ----------------------------+---------------------- Changes (by devans@…): * status: new => assigned * owner: macports-tickets@… => devans@… * port: gstreamer1-1.6.0+0 => gstreamer1 -- Ticket URL: <https://trac.macports.org/ticket/49012#comment:3> MacPorts <https://www.macports.org/> Ports system for OS X
#49012: gstreamer1 @1.6.0: errors compiling gst_ptp_helper on 10.8 and earlier, 'field has incomplete type 'struct sockaddr'' from if.h ----------------------------+---------------------- Reporter: andrew.long@… | Owner: devans@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: fixed | Keywords: Port: gstreamer1 | ----------------------------+---------------------- Changes (by devans@…): * status: assigned => closed * resolution: => fixed Comment: This issue occurs on 10.8 and earlier. Fix committed in r140712. -- Ticket URL: <https://trac.macports.org/ticket/49012#comment:4> MacPorts <https://www.macports.org/> Ports system for OS X
#49012: gstreamer1 @1.6.0: errors compiling gst_ptp_helper on 10.8 and earlier, 'field has incomplete type 'struct sockaddr'' from if.h ----------------------------+---------------------- Reporter: andrew.long@… | Owner: devans@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: fixed | Keywords: Port: gstreamer1 | ----------------------------+---------------------- Comment (by andrew.long@…): I assume that I don't need to attach the whole log file? Regards, Andy -- Ticket URL: <https://trac.macports.org/ticket/49012#comment:5> MacPorts <https://www.macports.org/> Ports system for OS X
#49012: gstreamer1 @1.6.0: errors compiling gst_ptp_helper on 10.8 and earlier, 'field has incomplete type 'struct sockaddr'' from if.h ----------------------------+---------------------- Reporter: andrew.long@… | Owner: devans@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: fixed | Keywords: Port: gstreamer1 | ----------------------------+---------------------- Comment (by devans@…): Replying to [comment:5 andrew.long@…]:
I assume that I don't need to attach the whole log file?
Regards, Andy
Indeed, but a confirmation of whether this fixes your issue would be appreciated. I don't currently have a 10.7 test platform. -- Ticket URL: <https://trac.macports.org/ticket/49012#comment:6> MacPorts <https://www.macports.org/> Ports system for OS X
#49012: gstreamer1 @1.6.0: errors compiling gst_ptp_helper on 10.8 and earlier, 'field has incomplete type 'struct sockaddr'' from if.h ----------------------------+---------------------- Reporter: andrew.long@… | Owner: devans@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: fixed | Keywords: Port: gstreamer1 | ----------------------------+---------------------- Comment (by andrew.long@…): Port gstreamer1 now builds OK. Thank you, appreciated. Regards, Andy -- Ticket URL: <https://trac.macports.org/ticket/49012#comment:7> MacPorts <https://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts