Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#49012 closed defect (fixed)

gstreamer1 @1.6.0: errors compiling gst_ptp_helper on 10.8 and earlier, 'field has incomplete type 'struct sockaddr'' from if.h

Reported by: andrew.long@… Owned by: dbevans (David B. Evans)
Priority: Normal Milestone:
Component: ports Version: 2.3.3
Keywords: Cc:
Port: gstreamer1

Description

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

Change History (7)

comment:1 Changed 9 years ago 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

comment:2 Changed 9 years ago by mf2k (Frank Schima)

Keywords: if.h sockaddr sockaddr_storage gstreamer1 removed

Please attach the complete main.log file.

comment:3 Changed 9 years ago by dbevans (David B. Evans)

Owner: changed from macports-tickets@… to devans@…
Port: gstreamer1 added; gstreamer1-1.6.0+0 removed
Status: newassigned

comment:4 Changed 9 years ago by dbevans (David B. Evans)

Resolution: fixed
Status: assignedclosed
Summary: Errors compiling gst_ptp_helper 'field has incomplete type 'struct sockaddr'' from if.hgstreamer1 @1.6.0: errors compiling gst_ptp_helper on 10.8 and earlier, 'field has incomplete type 'struct sockaddr'' from if.h

This issue occurs on 10.8 and earlier. Fix committed in r140712.

comment:5 Changed 9 years ago by andrew.long@…

I assume that I don't need to attach the whole log file?

Regards, Andy

comment:6 in reply to:  5 Changed 9 years ago by dbevans (David B. Evans)

Replying to 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.

comment:7 Changed 9 years ago by andrew.long@…

Port gstreamer1 now builds OK.

Thank you, appreciated.

Regards, Andy

Note: See TracTickets for help on using tickets.