GNOME Bugzilla – Bug 725519
Fails to build in gst-uninstalled
Last modified: 2014-11-08 14:05:19 UTC
make[1]: Entering directory `/home/slomo/Projects/gstreamer/head/gstreamer-sharp/sources/glue' /bin/bash ../../libtool --tag=CC --mode=compile clang -DPACKAGE_NAME=\"gstreamer-sharp\" -DPACKAGE_TARNAME=\"gstreamer-sharp\" -DPACKAGE_VERSION=\"0.99.1\" -DPACKAGE_STRING=\"gstreamer-sharp\ 0.99.1\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"gstreamer-sharp\" -DVERSION=\"0.99.1\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -I. -pthread -I/home/slomo/Projects/gstreamer/head/gstreamer -I/home/slomo/Projects/gstreamer/head/gstreamer/libs -I/home/slomo/Projects/gstreamer/head/gst-plugins-base/gst-libs -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I../.. -g -O2 -MT generated.lo -MD -MP -MF .deps/generated.Tpo -c -o generated.lo generated.c libtool: compile: clang -DPACKAGE_NAME=\"gstreamer-sharp\" -DPACKAGE_TARNAME=\"gstreamer-sharp\" -DPACKAGE_VERSION=\"0.99.1\" "-DPACKAGE_STRING=\"gstreamer-sharp 0.99.1\"" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"gstreamer-sharp\" -DVERSION=\"0.99.1\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -I. -pthread -I/home/slomo/Projects/gstreamer/head/gstreamer -I/home/slomo/Projects/gstreamer/head/gstreamer/libs -I/home/slomo/Projects/gstreamer/head/gst-plugins-base/gst-libs -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I../.. -g -O2 -MT generated.lo -MD -MP -MF .deps/generated.Tpo -c generated.c -fPIC -DPIC -o .libs/generated.o In file included from generated.c:6: /home/slomo/Projects/gstreamer/head/gstreamer/gst/libgstreamer_1.0_la-gstregistrychunks.lo:1:3: error: invalid preprocessing directive # libgstreamer_1.0_la-gstregistrychunks.lo - a libtool object file ^ /home/slomo/Projects/gstreamer/head/gstreamer/gst/libgstreamer_1.0_la-gstregistrychunks.lo:2:3: error: invalid preprocessing directive # Generated by libtool (GNU libtool) 2.4.2 Debian-2.4.2-1.7 ^ /home/slomo/Projects/gstreamer/head/gstreamer/gst/libgstreamer_1.0_la-gstregistrychunks.lo:4:3: error: invalid preprocessing directive # Please DO NOT delete this file! ^ /home/slomo/Projects/gstreamer/head/gstreamer/gst/libgstreamer_1.0_la-gstregistrychunks.lo:5:3: error: invalid preprocessing directive # It is necessary for linking the library. ^ /home/slomo/Projects/gstreamer/head/gstreamer/gst/libgstreamer_1.0_la-gstregistrychunks.lo:7:3: error: invalid preprocessing directive # Name of the PIC object. ^ /home/slomo/Projects/gstreamer/head/gstreamer/gst/libgstreamer_1.0_la-gstregistrychunks.lo:8:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] pic_object='.libs/libgstreamer_1.0_la-gstregistrychunks.o' ^~~~~~~~~~ /home/slomo/Projects/gstreamer/head/gstreamer/gst/libgstreamer_1.0_la-gstregistrychunks.lo:8:12: warning: multi-character character constant [-Wmultichar] pic_object='.libs/libgstreamer_1.0_la-gstregistrychunks.o' ^ /home/slomo/Projects/gstreamer/head/gstreamer/gst/libgstreamer_1.0_la-gstregistrychunks.lo:8:12: warning: character constant too long for its type /home/slomo/Projects/gstreamer/head/gstreamer/gst/libgstreamer_1.0_la-gstregistrychunks.lo:10:3: error: invalid preprocessing directive # Name of the non-PIC object ^ /home/slomo/Projects/gstreamer/head/gstreamer/gst/libgstreamer_1.0_la-gstregistrychunks.lo:8:59: error: expected ';' after top level declarator pic_object='.libs/libgstreamer_1.0_la-gstregistrychunks.o' ^ ; In file included from generated.c:7: /home/slomo/Projects/gstreamer/head/gstreamer/gst/libgstreamer_1.0_la-gstbin.lo:1:3: error: invalid preprocessing directive # libgstreamer_1.0_la-gstbin.lo - a libtool object file ^ /home/slomo/Projects/gstreamer/head/gstreamer/gst/libgstreamer_1.0_la-gstbin.lo:2:3: error: invalid preprocessing directive # Generated by libtool (GNU libtool) 2.4.2 Debian-2.4.2-1.7 ^ /home/slomo/Projects/gstreamer/head/gstreamer/gst/libgstreamer_1.0_la-gstbin.lo:4:3: error: invalid preprocessing directive # Please DO NOT delete this file! ^ /home/slomo/Projects/gstreamer/head/gstreamer/gst/libgstreamer_1.0_la-gstbin.lo:5:3: error: invalid preprocessing directive # It is necessary for linking the library. ^ /home/slomo/Projects/gstreamer/head/gstreamer/gst/libgstreamer_1.0_la-gstbin.lo:7:3: error: invalid preprocessing directive # Name of the PIC object. ^ /home/slomo/Projects/gstreamer/head/gstreamer/gst/libgstreamer_1.0_la-gstbin.lo:10:3: error: invalid preprocessing directive # Name of the non-PIC object ^ In file included from generated.c:9: /home/slomo/Projects/gstreamer/head/gstreamer/gst/libgstreamer_1.0_la-gsttaglist.lo:1:3: error: invalid preprocessing directive # libgstreamer_1.0_la-gsttaglist.lo - a libtool object file ^ /home/slomo/Projects/gstreamer/head/gstreamer/gst/libgstreamer_1.0_la-gsttaglist.lo:2:3: error: invalid preprocessing directive # Generated by libtool (GNU libtool) 2.4.2 Debian-2.4.2-1.7 ^ /home/slomo/Projects/gstreamer/head/gstreamer/gst/libgstreamer_1.0_la-gsttaglist.lo:4:3: error: invalid preprocessing directive # Please DO NOT delete this file! ^ /home/slomo/Projects/gstreamer/head/gstreamer/gst/libgstreamer_1.0_la-gsttaglist.lo:5:3: error: invalid preprocessing directive # It is necessary for linking the library. ^ /home/slomo/Projects/gstreamer/head/gstreamer/gst/libgstreamer_1.0_la-gsttaglist.lo:7:3: error: invalid preprocessing directive # Name of the PIC object. ^ /home/slomo/Projects/gstreamer/head/gstreamer/gst/libgstreamer_1.0_la-gsttaglist.lo:8:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] pic_object='.libs/libgstreamer_1.0_la-gsttaglist.o' ^~~~~~~~~~ /home/slomo/Projects/gstreamer/head/gstreamer/gst/libgstreamer_1.0_la-gsttaglist.lo:8:12: warning: multi-character character constant [-Wmultichar] pic_object='.libs/libgstreamer_1.0_la-gsttaglist.o' ^ /home/slomo/Projects/gstreamer/head/gstreamer/gst/libgstreamer_1.0_la-gsttaglist.lo:8:12: warning: character constant too long for its type /home/slomo/Projects/gstreamer/head/gstreamer/gst/libgstreamer_1.0_la-gsttaglist.lo:10:3: error: invalid preprocessing directive # Name of the non-PIC object ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] 6 warnings and 20 errors generated. make[1]: *** [generated.lo] Error 1
Is this now fixed with the recent build changes?
Nope
In file included from generated.c:6: Can you post your includes from generated.c? It seems like those get messed up for some reason.
Might be fixed in e54dfcb65b4acd4082845a42dc71f94bbf27376a. It seems that .lo files are passed to --glue-includes ending up in the generated glue file. In master only header files are added to the includes.
Still fails with latest git master in gst-uninstalled.
Please try with the 1.4 branch and include generated.c from sources/glue
Works for me with gst-uninstalled on branch 1.4 with gst# 1.4 and gtk-sharp master.