Bug 243742 - graphics/gstreamer1-plugins-gl : Fails to build on FreeBSD 12.1-RELEASE-p1 powerpc 32 bit: syntax error, unexpected '^' in 'int atexit_b(void (^ )(void));' at '^'
Summary: graphics/gstreamer1-plugins-gl : Fails to build on FreeBSD 12.1-RELEASE-p1 po...
Status: Closed Unable to Reproduce
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: powerpc Any
: --- Affects Only Me
Assignee: freebsd-multimedia (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-01-30 21:05 UTC by canardo
Modified: 2022-10-15 11:04 UTC (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description canardo 2020-01-30 21:05:47 UTC
Problem found when building graphics/gstreamer1-plugins-gl on FreeBSD 12.1-RELEASE-p1 powerpc 32 bit, running on Apple Powerbook 17".



/usr/ports/graphics/gstreamer1-plugins-gl # make -DBATCH install clean
===>  Building for gstreamer1-plugins-gl-1.16.2
.....
.....
.....
--output GstVideo-1.0.gir \
	./colorbalance.h ./colorbalancechannel.h ./navigation.h ./video.h ./video-prelude.h ./video-anc.h ./video-event.h ./video-format.h ./video-chroma.h ./video-color.h ./video-converter.h ./video-dither.h ./video-info.h ./video-frame.h ./video-scaler.h ./video-tile.h ./gstvideoaggregator.h ./gstvideosink.h ./gstvideofilter.h ./gstvideometa.h ./gstvideoaffinetransformationmeta.h ./gstvideopool.h ./videodirection.h ./videoorientation.h ./videooverlay.h ./gstvideodecoder.h ./gstvideoencoder.h ./gstvideoutils.h ./video-resampler.h ./video-blend.h ./video-overlay-composition.h ./video-multiview.h ./gstvideotimecode.h ./video-enumtypes.h \
	./colorbalance.c ./colorbalancechannel.c ./navigation.c ./video.c ./video-anc.c ./video-event.c ./video-format.c ./video-chroma.c ./video-color.c ./video-converter.c ./video-dither.c ./video-info.c ./video-frame.c ./video-scaler.c ./video-tile.c ./gstvideoaggregator.c ./gstvideosink.c ./gstvideofilter.c ./convertframe.c ./gstvideoaffinetransformationmeta.c ./gstvideometa.c ./gstvideopool.c ./videodirection.c ./videoorientation.c ./videooverlay.c ./gstvideodecoder.c ./gstvideoencoder.c ./gstvideoutils.c ./gstvideoutilsprivate.c ./video-resampler.c ./video-blend.c ./video-overlay-composition.c ./video-multiview.c ./gstvideotimecode.c ./video-enumtypes.c
/usr/include/stdlib.h:258: syntax error, unexpected '^' in 'int atexit_b(void (^ )(void));' at '^'
/usr/include/stdlib.h:260: syntax error, unexpected '^' in '     size_t, int (^ )(const void *, const void *));' at '^'
/usr/include/stdlib.h:260: syntax error, unexpected ',', expecting identifier or '(' in '     size_t, int (^ )(const void *, const void *));' at ','
/usr/include/stdlib.h:260: syntax error, unexpected ')', expecting identifier or '(' in '     size_t, int (^ )(const void *, const void *));' at ')'
/usr/include/stdlib.h:289: syntax error, unexpected '^' in '     int (^ )(const void *, const void *));' at '^'
/usr/include/stdlib.h:289: syntax error, unexpected ',', expecting identifier or '(' in '     int (^ )(const void *, const void *));' at ','
/usr/include/stdlib.h:289: syntax error, unexpected ')', expecting identifier or '(' in '     int (^ )(const void *, const void *));' at ')'
/usr/include/stdlib.h:291: syntax error, unexpected '^' in '     int (^ )(const void *, const void *));' at '^'
/usr/include/stdlib.h:291: syntax error, unexpected ',', expecting identifier or '(' in '     int (^ )(const void *, const void *));' at ','
/usr/include/stdlib.h:291: syntax error, unexpected ')', expecting identifier or '(' in '     int (^ )(const void *, const void *));' at ')'
/usr/include/stdlib.h:296: syntax error, unexpected '^' in 'int mergesort_b(void *, size_t, size_t, int (^)(const void *, const void *));' at '^'
/usr/include/stdlib.h:296: syntax error, unexpected ',', expecting identifier or '(' in 'int mergesort_b(void *, size_t, size_t, int (^)(const void *, const void *));' at ','
/usr/include/stdlib.h:296: syntax error, unexpected ')', expecting identifier or '(' in 'int mergesort_b(void *, size_t, size_t, int (^)(const void *, const void *));' at ')'
/usr/include/dirent.h:130: syntax error, unexpected '^' in '     int (^)(const struct dirent *),' at '^'
/usr/include/dirent.h:130: syntax error, unexpected ')', expecting identifier or '(' in '     int (^)(const struct dirent *),' at ')'
/usr/include/dirent.h:131: syntax error, unexpected ',', expecting identifier or '(' in '     int (^)(const struct dirent **, const struct dirent **));' at ','
/usr/include/dirent.h:131: syntax error, unexpected ')', expecting identifier or '(' in '     int (^)(const struct dirent **, const struct dirent **));' at ')'
g-ir-scanner: link: /bin/sh ../../../libtool --mode=link --tag=CC cc -std=gnu99 -o /usr/ports/graphics/gstreamer1-plugins-gl/work/gst-plugins-base-1.16.2/gst-libs/gst/video/tmp-introspect775oluwo/GstVideo-1.0 -export-dynamic -I/usr/local/include -O2 -pipe -Wno-format -fstack-protector-strong -fno-strict-aliasing /usr/ports/graphics/gstreamer1-plugins-gl/work/gst-plugins-base-1.16.2/gst-libs/gst/video/tmp-introspect775oluwo/GstVideo-1.0.o -L. libgstvideo-1.0.la -L/usr/local/lib -lgio-2.0 -Wl,--export-dynamic -lgmodule-2.0 -pthread -lglib-2.0 -lgstbase-1.0 -lgstreamer-1.0 -lgobject-2.0 -lglib-2.0 -lintl -lpthread -L/usr/local/lib -fstack-protector-strong
libtool: link: cc -std=gnu99 -o /usr/ports/graphics/gstreamer1-plugins-gl/work/gst-plugins-base-1.16.2/gst-libs/gst/video/tmp-introspect775oluwo/.libs/GstVideo-1.0 -I/usr/local/include -O2 -pipe -Wno-format -fstack-protector-strong -fno-strict-aliasing /usr/ports/graphics/gstreamer1-plugins-gl/work/gst-plugins-base-1.16.2/gst-libs/gst/video/tmp-introspect775oluwo/GstVideo-1.0.o -Wl,--export-dynamic -pthread -fstack-protector-strong -Wl,--export-dynamic  -L. ./.libs/libgstvideo-1.0.so -L/usr/local/lib -lgio-2.0 -lgmodule-2.0 -lgstbase-1.0 -lgstreamer-1.0 -lgobject-2.0 -lglib-2.0 -lintl -lpthread -pthread -Wl,-rpath -Wl,/usr/local/lib
Invalid GType function: 'gst_video_ancillary_did_get_type'
Failed to find symbol 'gst_video_ancillary_did_get_type'
Command '['/usr/ports/graphics/gstreamer1-plugins-gl/work/gst-plugins-base-1.16.2/gst-libs/gst/video/tmp-introspect775oluwo/GstVideo-1.0', '--introspect-dump=/usr/ports/graphics/gstreamer1-plugins-gl/work/gst-plugins-base-1.16.2/gst-libs/gst/video/tmp-introspect775oluwo/functions.txt,/usr/ports/graphics/gstreamer1-plugins-gl/work/gst-plugins-base-1.16.2/gst-libs/gst/video/tmp-introspect775oluwo/dump.xml']' returned non-zero exit status 1.
gmake[2]: *** [Makefile:1706: GstVideo-1.0.gir] Error 1
gmake[2]: Leaving directory '/usr/ports/graphics/gstreamer1-plugins-gl/work/gst-plugins-base-1.16.2/gst-libs/gst/video'
gmake[1]: *** [Makefile:841: all] Error 2
gmake[1]: Leaving directory '/usr/ports/graphics/gstreamer1-plugins-gl/work/gst-plugins-base-1.16.2/gst-libs/gst/video'
*** Error code 2

Stop.
make: stopped in /usr/ports/graphics/gstreamer1-plugins-gl
Comment 1 Walter Schwarzenfeld freebsd_triage 2020-01-30 22:30:59 UTC
I have not tested it, but try also add to the Makefile:
USES=           compiler:c++14-lang
Comment 2 Alexey Dokuchaev freebsd_committer freebsd_triage 2020-01-31 04:57:54 UTC
(In reply to Walter Schwarzenfeld from comment #1)
> USES=compiler:c++14-lang
From the build log, it looks like a C, not C++ piece of software, why are you suggesting C++14 standard?  Even if you want to say "use modern compiler", it should be spelled as compiler:c11, not c++whatever.
Comment 3 Piotr Kubaj freebsd_committer freebsd_triage 2020-04-05 15:56:28 UTC
It looks like I already fixed it. Can you test whether it works?
Comment 4 canardo 2020-04-06 09:44:49 UTC
(In reply to Piotr Kubaj from comment #3)

I tried this morning with everything updated AFAIK.

Version is the same
===>  Building for gstreamer1-plugins-gl-1.16.2
and I still get the same error

Is there a way to check your fix is present in my system ?