{"action":"created","issue":{"url":"https://api.github.com/repos/AVnu/Open-AVB/issues/220","labels_url":"https://api.github.com/repos/AVnu/Open-AVB/issues/220/labels{/name}","comments_url":"https://api.github.com/repos/AVnu/Open-AVB/issues/220/comments","events_url":"https://api.github.com/repos/AVnu/Open-AVB/issues/220/events","html_url":"https://github.com/AVnu/Open-AVB/issues/220","id":81421568,"number":220,"title":"Gstreamer plugin build issue","user":{"login":"bharaths16","id":12606731,"avatar_url":"https://avatars.githubusercontent.com/u/12606731?v=3","gravatar_id":"","url":"https://api.github.com/users/bharaths16","html_url":"https://github.com/bharaths16","followers_url":"https://api.github.com/users/bharaths16/followers","following_url":"https://api.github.com/users/bharaths16/following{/other_user}","gists_url":"https://api.github.com/users/bharaths16/gists{/gist_id}","starred_url":"https://api.github.com/users/bharaths16/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bharaths16/subscriptions","organizations_url":"https://api.github.com/users/bharaths16/orgs","repos_url":"https://api.github.com/users/bharaths16/repos","events_url":"https://api.github.com/users/bharaths16/events{/privacy}","received_events_url":"https://api.github.com/users/bharaths16/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/AVnu/Open-AVB/labels/question","name":"question","color":"cc317c"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-05-27T12:05:13Z","updated_at":"2015-08-13T05:17:43Z","closed_at":"2015-08-11T08:54:16Z","body":"Hi,\r\nI am working on \"open-avb-next\" branch code and trying to compile the gstreamer plugin in it.\r\nI am trying to build for TALKER side and following the procedure in the README file of \"next-Open-avb/examples/gstreamer-avb-plugins\".\r\nPlease find below error logs:bharath@EMMYS1124:/media/bharath/d_drive/Work/AVB/next-Open-avb/examples/gstreamer-avb-plugins/gst-plugin$ LDFLAGS='-L/media/bharath/d_drive/Work/AVB/next-Open-avb/lib/igb' CPPFLAGS='-I/media/bharath/d_drive/Work/AVB/next-Open-avb/lib/igb' LIBS='-ligb -lpci -lrt -lpthread -lm' ./configure\r\nchecking for a BSD-compatible install... /usr/bin/install -c\r\nchecking whether build environment is sane... yes\r\nchecking for a thread-safe mkdir -p... /bin/mkdir -p\r\nchecking for gawk... no\r\nchecking for mawk... mawk\r\nchecking whether make sets $(MAKE)... yes\r\nchecking whether make supports nested variables... yes\r\nchecking whether to enable maintainer-specific portions of Makefiles... yes\r\nchecking for gcc... gcc\r\nchecking whether the C compiler works... yes\r\nchecking for C compiler default output file name... a.out\r\nchecking for suffix of executables... \r\nchecking whether we are cross compiling... no\r\nchecking for suffix of object files... o\r\nchecking whether we are using the GNU C compiler... yes\r\nchecking whether gcc accepts -g... yes\r\nchecking for gcc option to accept ISO C89... none needed\r\nchecking whether gcc understands -c and -o together... yes\r\nchecking for style of include used by make... GNU\r\nchecking dependency style of gcc... gcc3\r\nchecking build system type... x86_64-unknown-linux-gnu\r\nchecking host system type... x86_64-unknown-linux-gnu\r\nchecking how to print strings... printf\r\nchecking for a sed that does not truncate output... /bin/sed\r\nchecking for grep that handles long lines and -e... /bin/grep\r\nchecking for egrep... /bin/grep -E\r\nchecking for fgrep... /bin/grep -F\r\nchecking for ld used by gcc... /usr/bin/ld\r\nchecking if the linker (/usr/bin/ld) is GNU ld... yes\r\nchecking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B\r\nchecking the name lister (/usr/bin/nm -B) interface... BSD nm\r\nchecking whether ln -s works... yes\r\nchecking the maximum length of command line arguments... 1572864\r\nchecking whether the shell understands some XSI constructs... yes\r\nchecking whether the shell understands \"+=\"... yes\r\nchecking how to convert x86_64-unknown-linux-gnu file names to x86_64-unknown-linux-gnu format... func_convert_file_noop\r\nchecking how to convert x86_64-unknown-linux-gnu file names to toolchain format... func_convert_file_noop\r\nchecking for /usr/bin/ld option to reload object files... -r\r\nchecking for objdump... objdump\r\nchecking how to recognize dependent libraries... pass_all\r\nchecking for dlltool... no\r\nchecking how to associate runtime and link libraries... printf %s\\n\r\nchecking for ar... ar\r\nchecking for archiver @FILE support... @\r\nchecking for strip... strip\r\nchecking for ranlib... ranlib\r\nchecking command to parse /usr/bin/nm -B output from gcc object... ok\r\nchecking for sysroot... no\r\nchecking for mt... mt\r\nchecking if mt is a manifest tool... no\r\nchecking how to run the C preprocessor... gcc -E\r\nchecking for ANSI C header files... yes\r\nchecking for sys/types.h... yes\r\nchecking for sys/stat.h... yes\r\nchecking for stdlib.h... yes\r\nchecking for string.h... yes\r\nchecking for memory.h... yes\r\nchecking for strings.h... yes\r\nchecking for inttypes.h... yes\r\nchecking for stdint.h... yes\r\nchecking for unistd.h... yes\r\nchecking for dlfcn.h... yes\r\nchecking for objdir... .libs\r\nchecking if gcc supports -fno-rtti -fno-exceptions... no\r\nchecking for gcc option to produce PIC... -fPIC -DPIC\r\nchecking if gcc PIC flag -fPIC -DPIC works... yes\r\nchecking if gcc static flag -static works... yes\r\nchecking if gcc supports -c -o file.o... yes\r\nchecking if gcc supports -c -o file.o... (cached) yes\r\nchecking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes\r\nchecking whether -lc should be explicitly linked in... no\r\nchecking dynamic linker characteristics... GNU/Linux ld.so\r\nchecking how to hardcode library paths into programs... immediate\r\nchecking whether stripping libraries is possible... yes\r\nchecking if libtool supports shared libraries... yes\r\nchecking whether to build shared libraries... yes\r\nchecking whether to build static libraries... yes\r\nchecking for pkg-config...  \r\nchecking for pkg-config... /usr/bin/pkg-config\r\nchecking pkg-config is at least version 0.9.0... yes\r\nchecking for GST... yes\r\nchecking to see if compiler understands -Wall... yes\r\nchecking that generated files are newer than configure... done\r\nconfigure: creating ./config.status\r\nconfig.status: creating Makefile\r\nconfig.status: creating src/Makefile\r\nconfig.status: creating config.h\r\nconfig.status: config.h is unchanged\r\nconfig.status: executing depfiles commands\r\nconfig.status: executing libtool commands\r\n\r\n\r\nbharath@EMMYS1124:/media/bharath/d_drive/Work/AVB/next-Open-avb/examples/gstreamer-avb-plugins/gst-plugin$ LDFLAGS='-L/media/bharath/d_drive/Work/AVB/next-Open-avb/lib/igb' CPPFLAGS='-I/media/bharath/d_drive/Work/AVB/next-Open-avb/lib/igb' LIBS='-ligb -lpci -lrt -lpthread -lm' ./autogen.sh\r\nautoreconf: Entering directory `.'\r\nautoreconf: configure.ac: not using Gettext\r\nautoreconf: running: aclocal --force \r\nautoreconf: configure.ac: tracing\r\nautoreconf: running: libtoolize --copy --force\r\nlibtoolize: putting auxiliary files in `.'.\r\nlibtoolize: copying file `./ltmain.sh'\r\nlibtoolize: Consider adding `AC_CONFIG_MACRO_DIR([m4])' to configure.ac and\r\nlibtoolize: rerunning libtoolize, to keep the correct libtool macros in-tree.\r\nlibtoolize: Consider adding `-I m4' to ACLOCAL_AMFLAGS in Makefile.am.\r\nautoreconf: running: /usr/bin/autoconf --force\r\nautoreconf: running: /usr/bin/autoheader --force\r\nautoreconf: running: automake --add-missing --copy --force-missing\r\nsrc/Makefile.am:23: warning: source file '../../../common/avb.c' is in a subdirectory,\r\nsrc/Makefile.am:23: but option 'subdir-objects' is disabled\r\nautomake: warning: possible forward-incompatibility.\r\nautomake: At least a source file is in a subdirectory, but the 'subdir-objects'\r\nautomake: automake option hasn't been enabled.  For now, the corresponding output\r\nautomake: object file(s) will be placed in the top-level directory.  However,\r\nautomake: this behaviour will change in future Automake versions: they will\r\nautomake: unconditionally cause object files to be placed in the same subdirectory\r\nautomake: of the corresponding sources.\r\nautomake: You are advised to start using 'subdir-objects' option throughout your\r\nautomake: project, to avoid future incompatibilities.\r\nautoreconf: running: ./config.status --recheck\r\nrunning CONFIG_SHELL=/bin/bash /bin/bash ./configure LDFLAGS=-L/media/bharath/d_drive/Work/AVB/next-Open-avb/lib/igb LIBS=-ligb -lpci -lrt -lpthread -lm CPPFLAGS=-I/media/bharath/d_drive/Work/AVB/next-Open-avb/lib/igb --no-create --no-recursion\r\nchecking for a BSD-compatible install... /usr/bin/install -c\r\nchecking whether build environment is sane... yes\r\nchecking for a thread-safe mkdir -p... /bin/mkdir -p\r\nchecking for gawk... no\r\nchecking for mawk... mawk\r\nchecking whether make sets $(MAKE)... yes\r\nchecking whether make supports nested variables... yes\r\nchecking whether to enable maintainer-specific portions of Makefiles... yes\r\nchecking for gcc... gcc\r\nchecking whether the C compiler works... yes\r\nchecking for C compiler default output file name... a.out\r\nchecking for suffix of executables... \r\nchecking whether we are cross compiling... no\r\nchecking for suffix of object files... o\r\nchecking whether we are using the GNU C compiler... yes\r\nchecking whether gcc accepts -g... yes\r\nchecking for gcc option to accept ISO C89... none needed\r\nchecking whether gcc understands -c and -o together... yes\r\nchecking for style of include used by make... GNU\r\nchecking dependency style of gcc... gcc3\r\nchecking build system type... x86_64-unknown-linux-gnu\r\nchecking host system type... x86_64-unknown-linux-gnu\r\nchecking how to print strings... printf\r\nchecking for a sed that does not truncate output... /bin/sed\r\nchecking for grep that handles long lines and -e... /bin/grep\r\nchecking for egrep... /bin/grep -E\r\nchecking for fgrep... /bin/grep -F\r\nchecking for ld used by gcc... /usr/bin/ld\r\nchecking if the linker (/usr/bin/ld) is GNU ld... yes\r\nchecking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B\r\nchecking the name lister (/usr/bin/nm -B) interface... BSD nm\r\nchecking whether ln -s works... yes\r\nchecking the maximum length of command line arguments... 1572864\r\nchecking whether the shell understands some XSI constructs... yes\r\nchecking whether the shell understands \"+=\"... yes\r\nchecking how to convert x86_64-unknown-linux-gnu file names to x86_64-unknown-linux-gnu format... func_convert_file_noop\r\nchecking how to convert x86_64-unknown-linux-gnu file names to toolchain format... func_convert_file_noop\r\nchecking for /usr/bin/ld option to reload object files... -r\r\nchecking for objdump... objdump\r\nchecking how to recognize dependent libraries... pass_all\r\nchecking for dlltool... no\r\nchecking how to associate runtime and link libraries... printf %s\\n\r\nchecking for ar... ar\r\nchecking for archiver @FILE support... @\r\nchecking for strip... strip\r\nchecking for ranlib... ranlib\r\nchecking command to parse /usr/bin/nm -B output from gcc object... ok\r\nchecking for sysroot... no\r\nchecking for mt... mt\r\nchecking if mt is a manifest tool... no\r\nchecking how to run the C preprocessor... gcc -E\r\nchecking for ANSI C header files... yes\r\nchecking for sys/types.h... yes\r\nchecking for sys/stat.h... yes\r\nchecking for stdlib.h... yes\r\nchecking for string.h... yes\r\nchecking for memory.h... yes\r\nchecking for strings.h... yes\r\nchecking for inttypes.h... yes\r\nchecking for stdint.h... yes\r\nchecking for unistd.h... yes\r\nchecking for dlfcn.h... yes\r\nchecking for objdir... .libs\r\nchecking if gcc supports -fno-rtti -fno-exceptions... no\r\nchecking for gcc option to produce PIC... -fPIC -DPIC\r\nchecking if gcc PIC flag -fPIC -DPIC works... yes\r\nchecking if gcc static flag -static works... yes\r\nchecking if gcc supports -c -o file.o... yes\r\nchecking if gcc supports -c -o file.o... (cached) yes\r\nchecking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes\r\nchecking whether -lc should be explicitly linked in... no\r\nchecking dynamic linker characteristics... GNU/Linux ld.so\r\nchecking how to hardcode library paths into programs... immediate\r\nchecking whether stripping libraries is possible... yes\r\nchecking if libtool supports shared libraries... yes\r\nchecking whether to build shared libraries... yes\r\nchecking whether to build static libraries... yes\r\nchecking for pkg-config...  \r\nchecking for pkg-config... /usr/bin/pkg-config\r\nchecking pkg-config is at least version 0.9.0... yes\r\nchecking for GST... yes\r\nchecking to see if compiler understands -Wall... yes\r\nchecking that generated files are newer than configure... done\r\nconfigure: creating ./config.status\r\nautoreconf: running: ./config.status\r\nconfig.status: creating Makefile\r\nconfig.status: creating src/Makefile\r\nconfig.status: creating config.h\r\nconfig.status: config.h is unchanged\r\nconfig.status: executing depfiles commands\r\nconfig.status: executing libtool commands\r\nautoreconf: running: make\r\nmake  all-recursive\r\nmake[1]: Entering directory `/media/bharath/d_drive/Work/AVB/next-Open-avb/examples/gstreamer-avb-plugins/gst-plugin'\r\nMaking all in src\r\nmake[2]: Entering directory `/media/bharath/d_drive/Work/AVB/next-Open-avb/examples/gstreamer-avb-plugins/gst-plugin/src'\r\n/bin/bash ../libtool  --tag=CC --tag=disable-static  --mode=link gcc -pthread -I/usr/include/gstreamer-1.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include   -Wall  -g -O2 -Wall -module -avoid-version -export-symbols-regex _*\\(gst_\\|Gst\\|GST_\\).* -L/media/bharath/d_drive/Work/AVB/next-Open-avb/lib/igb -L/media/bharath/d_drive/Work/AVB/next-Open-avb/lib/igb -o libgstplugin.la -rpath /usr/local/lib/gstreamer-1.0 libgstplugin_la-gstavbsink.lo libgstplugin_la-avb.lo -lgstbase-1.0 -lgstcontroller-1.0 -lgstreamer-1.0 -lgobject-2.0 -lglib-2.0     -ligb -lpci -lrt -lpthread -lm\r\nlibtool: link: rm -fr  .libs/libgstplugin.exp .libs/libgstplugin.ver\r\nlibtool: link: /usr/bin/nm -B  .libs/libgstplugin_la-gstavbsink.o .libs/libgstplugin_la-avb.o   | sed -n -e 's/^.*[\t ]\\([ABCDGIRSTW][ABCDGIRSTW]*\\)[\t ][\t ]*\\([_A-Za-z][_A-Za-z0-9]*\\)$/\\1 \\2 \\2/p' | sed '/ __gnu_lto/d' | /bin/sed 's/.* //' | sort | uniq > .libs/libgstplugin.exp\r\nlibtool: link: /bin/grep -E -e \"_*(gst_|Gst|GST_).*\" \".libs/libgstplugin.exp\" > \".libs/libgstplugin.expT\"\r\nlibtool: link: mv -f \".libs/libgstplugin.expT\" \".libs/libgstplugin.exp\"\r\nlibtool: link: echo \"{ global:\" > .libs/libgstplugin.ver\r\nlibtool: link:  cat .libs/libgstplugin.exp | sed -e \"s/\\(.*\\)/\\1;/\" >> .libs/libgstplugin.ver\r\nlibtool: link:  echo \"local: *; };\" >> .libs/libgstplugin.ver\r\nlibtool: link:  gcc -shared  -fPIC -DPIC  .libs/libgstplugin_la-gstavbsink.o .libs/libgstplugin_la-avb.o   -L/media/bharath/d_drive/Work/AVB/next-Open-avb/lib/igb -lgstbase-1.0 -lgstcontroller-1.0 -lgstreamer-1.0 -lgobject-2.0 -lglib-2.0 -ligb -lpci -lrt -lpthread -lm  -pthread -O2   -pthread -Wl,-soname -Wl,libgstplugin.so -Wl,-version-script -Wl,.libs/libgstplugin.ver -o .libs/libgstplugin.so\r\n/usr/bin/ld: /media/bharath/d_drive/Work/AVB/next-Open-avb/lib/igb/libigb.a(igb.o): relocation R_X86_64_32S against `.data' can not be used when making a shared object; recompile with -fPIC\r\n/media/bharath/d_drive/Work/AVB/next-Open-avb/lib/igb/libigb.a: error adding symbols: Bad value\r\ncollect2: error: ld returned 1 exit status\r\nmake[2]: *** [libgstplugin.la] Error 1\r\nmake[2]: Leaving directory `/media/bharath/d_drive/Work/AVB/next-Open-avb/examples/gstreamer-avb-plugins/gst-plugin/src'\r\nmake[1]: *** [all-recursive] Error 1\r\nmake[1]: Leaving directory `/media/bharath/d_drive/Work/AVB/next-Open-avb/examples/gstreamer-avb-plugins/gst-plugin'\r\nmake: *** [all] Error 2\r\nautoreconf: make failed with exit status: 2\r\nautogen.sh failed\r\n\r\n./configure is running properly but having issue with autogen.sh.\r\nAny help would be appreciated.\r\nThanks in advance.\r\n\r\nRegards,\r\nBharath S"},"comment":{"url":"https://api.github.com/repos/AVnu/Open-AVB/issues/comments/130538030","html_url":"https://github.com/AVnu/Open-AVB/issues/220#issuecomment-130538030","issue_url":"https://api.github.com/repos/AVnu/Open-AVB/issues/220","id":130538030,"user":{"login":"rohan-lt","id":13535454,"avatar_url":"https://avatars.githubusercontent.com/u/13535454?v=3","gravatar_id":"","url":"https://api.github.com/users/rohan-lt","html_url":"https://github.com/rohan-lt","followers_url":"https://api.github.com/users/rohan-lt/followers","following_url":"https://api.github.com/users/rohan-lt/following{/other_user}","gists_url":"https://api.github.com/users/rohan-lt/gists{/gist_id}","starred_url":"https://api.github.com/users/rohan-lt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rohan-lt/subscriptions","organizations_url":"https://api.github.com/users/rohan-lt/orgs","repos_url":"https://api.github.com/users/rohan-lt/repos","events_url":"https://api.github.com/users/rohan-lt/events{/privacy}","received_events_url":"https://api.github.com/users/rohan-lt/received_events","type":"User","site_admin":false},"created_at":"2015-08-13T05:17:43Z","updated_at":"2015-08-13T05:17:43Z","body":"Hi all\r\n\r\n\r\nthe above mentioned problem is resolved using sudo -i.\r\ntalker is able to transmit the data using avbsink.\r\n\r\nbut on listener side we are using avbplaybin and it is not recieving any file, AS code is running but it is stuck at set state returned 2.\r\n\r\n\r\nroot@EMMYS1776:/home/pcadmin/Downloads/AVB_fresh/examples/gstreamer-avb-plugins/gst-plugin# gst-launch-1.0 avbplaybin talkerip=192.168.35.48 port=7600 interface=eth2\r\nSetting pipeline to PAUSED ...\r\nPipeline is PREROLLED ...\r\nSetting pipeline to PLAYING ...\r\nNew clock: GstSystemClock\r\nattaching to 0000:03:00.0\r\nset state returned 2\r\n\r\n\r\nkindly help us what is missing or what need to be fixed in it.\r\n\r\nThnaks & Regards\r\nRohan Gupta\r\n"}}