Opened 13 days ago

#60721 assigned defect

gstreamer1 @1.16.2 controller-enumtypes.c:6:1: error: stray \ in program (due to make >= 4.3)

Reported by: kencu (Ken) Owned by: dbevans (David B. Evans)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: gstreamer1 gstreamer1-gst-plugins-base

Description

I ran into errors building gstreamer and friends on Tiger with the error above. It looks like this in the log:

:info:build controller-enumtypes.c:10: error: stray '\' in program
:info:build controller-enumtypes.c:10: error: stray '#' in program
:info:build controller-enumtypes.c:10: error: expected '=', ',', ';', 'asm' or '__attribute__' before string constant
:info:build controller-enumtypes.c:11: error: stray '\' in program
:info:build controller-enumtypes.c:11: error: stray '#' in program

apparently this construct

:info:build /opt/local/bin/glib-mkenums \
:info:build --fhead "#ifdef HAVE_CONFIG_H\n#include \"config.h\"\n#endif\n\n#include \"controller-enumtypes.h\"\n\n\#include \"gstinterpolationcontrolsource.h\" \n\#include \"gstlfocontrolsource.h\"" \
:info:build --fprod "\n/* enumerations from \"@filename@\" */" \
:info:build --vhead "GType\n@enum_name@_get_type (void)\n{\n  static volatile gsize g_define_type_id__volatile = 0;\n  if (g_once_init_enter (&g_define_type_id__volatile)) {\n    static const G@Type@Value values[] = {"     \
:info:build --vprod "      { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
:info:build --vtail "      { 0, NULL, NULL }\n    };\n    GType g_define_type_id = g_@type@_register_static (\"@EnumName@\", values);\n    g_once_init_leave (&g_define_type_id__volatile, g_define_type_id);\n  }\n  return g_define_type_id__volatile;\n}\n" \
:info:build gstinterpolationcontrolsource.h gstlfocontrolsource.h > controller-enumtypes.c

doesn't work with make versions >= 4.3 <https://bugs.gentoo.org/705974>.

There are patches in that gentoo ticket for the gstreamer* series.

Attachments (1)

gstreamer1-fail-gcc42-ppc.log (311.7 KB) - added by kencu (Ken) 13 days ago.

Download all attachments as: .zip

Change History (1)

Changed 13 days ago by kencu (Ken)

Note: See TracTickets for help on using tickets.