Linking libgstffmpet.la against static library

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Linking libgstffmpet.la against static library

Patrick Ale
Hi all,

First of all, sorry if I ask a question that has been asked many times before. Yes I googled and all I found is people reporting the problem but no fix was offered (for what I could see).

My problem is related to compiling the gst-ffmpeg 0.10.13 source. All seems to go fine untill the linking phase.

Making all in ffmpeg
gmake[3]: Entering directory `/home/pale/SOURCE/gstreamer/gst-ffmpeg-0.10.13/ext/ffmpeg'
  CCLD   libgstffmpeg.la

*** Warning: Linking the shared library libgstffmpeg.la against the
*** static library ../../gst-libs/ext/libav/libavformat/libavformat.a is not portable!

*** Warning: Linking the shared library libgstffmpeg.la against the
*** static library ../../gst-libs/ext/libav/libavcodec/libavcodec.a is not portable!

*** Warning: Linking the shared library libgstffmpeg.la against the
*** static library ../../gst-libs/ext/libav/libavutil/libavutil.a is not portable!

After this it ends with:
ld: fatal: relocations remain against allocatable but non-writable sections
collect2: ld returned 1 exit status
gmake[3]: *** [libgstffmpeg.la] Error 1
gmake[3]: Leaving directory `/home/pale/SOURCE/gstreamer/gst-ffmpeg-0.10.13/ext/ffmpeg'


Any idea what I am doing wrong and preferable, how do I fix this?


Thanks :)


Patrick




_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Linking libgstffmpet.la against static library

Stefan Sauer
On 01/22/2012 01:58 PM, Patrick Ale wrote:
Hi all,

First of all, sorry if I ask a question that has been asked many times before. Yes I googled and all I found is people reporting the problem but no fix was offered (for what I could see).

My problem is related to compiling the gst-ffmpeg 0.10.13 source. All seems to go fine untill the linking phase.

Making all in ffmpeg
gmake[3]: Entering directory `/home/pale/SOURCE/gstreamer/gst-ffmpeg-0.10.13/ext/ffmpeg'
  CCLD   libgstffmpeg.la

*** Warning: Linking the shared library libgstffmpeg.la against the
*** static library ../../gst-libs/ext/libav/libavformat/libavformat.a is not portable!

*** Warning: Linking the shared library libgstffmpeg.la against the
*** static library ../../gst-libs/ext/libav/libavcodec/libavcodec.a is not portable!

*** Warning: Linking the shared library libgstffmpeg.la against the
*** static library ../../gst-libs/ext/libav/libavutil/libavutil.a is not portable!

After this it ends with:
ld: fatal: relocations remain against allocatable but non-writable sections
collect2: ld returned 1 exit status
gmake[3]: *** [libgstffmpeg.la] Error 1
gmake[3]: Leaving directory `/home/pale/SOURCE/gstreamer/gst-ffmpeg-0.10.13/ext/ffmpeg'

on what platform and using what toolchain version are you doing the build? What are the configure flags you are using?

Stefan



Any idea what I am doing wrong and preferable, how do I fix this?


Thanks :)


Patrick



_______________________________________________ gstreamer-devel mailing list [hidden email] http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel


_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Linking libgstffmpet.la against static library

Patrick Ale
Hi,

Mja, the information I gave you guys is less than minimal I realized, sorry for that.

I am trying to compile gst-ffmpeg-0.10.13 on Solaris 11, which ships with 0.10.32.
GCC I use is 3.4.3
pale@solaris:~$ /usr/sfw/bin/gcc -v
Reading specs from /usr/sfw/lib/gcc/i386-pc-solaris2.11/3.4.3/specs
Configured with: /builds/hudson/workspace/nightly/build/i386/components/gcc3/gcc-3.4.3/configure --prefix=/usr/sfw --mandir=/usr/sfw/share/man --infodir=/usr/sfw/share/info --without-gnu-ld --with-ld=/usr/bin/ld --enable-languages=c,c++,f77,objc --enable-shared --with-gnu-as --with-as=/usr/gnu/bin/as
Thread model: posix
gcc version 3.4.3 (csl-sol210-3_4-20050802)

I see here that the 'ld' used is /usr/bin/ld which is not the GNU ld but the Solaris one. GNU ld is installed on my system in /usr/gnu/bin. Could this be the issue? If yes, how do I tell ./configure to use the GNU ld?

My binutils version is 2.19.0

Some extra info after me playing around after sending my initial email:

When I go to the gst-libs/ext/libav directory and run:
/configure --prefix=/usr --disable-ffserver --disable-ffplay --disable-ffmpeg --disable-ffprobe --enable-static --enable-pic --disable-encoder=flac --disable-decoder=cavs --disable-protocols --disable-devices --disable-network --disable-hwaccels --disable-filters --disable-doc --enable-optimizations --enable-postproc --enable-gpl --enable-shared --enable-pic

## --enable-shared and --enable-pic are added by me, the rest of the configure statements are a result of running ./configure --prefix=/usr from $HOME/SOURCES/gstreamer/gst-ffmpeg-0.10.32/
gmake && gmake install

; then gst-ffmpeg compiles and installs when I issue a './configure --prefix=/usr --with-system-ffmpeg' from $HOME/SOURCES/gstreamer/gst-ffmpeg-0.10.32. However, trying to play a matroska file with ATSC A/52 sound and h264 video core dumps totem then.


Please let me know if you require extra information.



Patrick





On Tue, Jan 24, 2012 at 4:04 PM, Stefan Sauer <[hidden email]> wrote:
On 01/22/2012 01:58 PM, Patrick Ale wrote:
Hi all,

First of all, sorry if I ask a question that has been asked many times before. Yes I googled and all I found is people reporting the problem but no fix was offered (for what I could see).

My problem is related to compiling the gst-ffmpeg 0.10.13 source. All seems to go fine untill the linking phase.

Making all in ffmpeg
gmake[3]: Entering directory `/home/pale/SOURCE/gstreamer/gst-ffmpeg-0.10.13/ext/ffmpeg'
  CCLD   libgstffmpeg.la

*** Warning: Linking the shared library libgstffmpeg.la against the
*** static library ../../gst-libs/ext/libav/libavformat/libavformat.a is not portable!

*** Warning: Linking the shared library libgstffmpeg.la against the
*** static library ../../gst-libs/ext/libav/libavcodec/libavcodec.a is not portable!

*** Warning: Linking the shared library libgstffmpeg.la against the
*** static library ../../gst-libs/ext/libav/libavutil/libavutil.a is not portable!

After this it ends with:
ld: fatal: relocations remain against allocatable but non-writable sections
collect2: ld returned 1 exit status
gmake[3]: *** [libgstffmpeg.la] Error 1
gmake[3]: Leaving directory `/home/pale/SOURCE/gstreamer/gst-ffmpeg-0.10.13/ext/ffmpeg'

on what platform and using what toolchain version are you doing the build? What are the configure flags you are using?

Stefan



Any idea what I am doing wrong and preferable, how do I fix this?


Thanks :)


Patrick



_______________________________________________ gstreamer-devel mailing list [hidden email] http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel


_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel



_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Linking libgstffmpet.la against static library

Stefan Sauer
On 01/25/2012 09:56 AM, Patrick Ale wrote:
Hi,

Mja, the information I gave you guys is less than minimal I realized, sorry for that.

I am trying to compile gst-ffmpeg-0.10.13 on Solaris 11, which ships with 0.10.32.
GCC I use is 3.4.3
pale@solaris:~$ /usr/sfw/bin/gcc -v
Reading specs from /usr/sfw/lib/gcc/i386-pc-solaris2.11/3.4.3/specs
Configured with: /builds/hudson/workspace/nightly/build/i386/components/gcc3/gcc-3.4.3/configure --prefix=/usr/sfw --mandir=/usr/sfw/share/man --infodir=/usr/sfw/share/info --without-gnu-ld --with-ld=/usr/bin/ld --enable-languages=c,c++,f77,objc --enable-shared --with-gnu-as --with-as=/usr/gnu/bin/as
Thread model: posix
gcc version 3.4.3 (csl-sol210-3_4-20050802)

I see here that the 'ld' used is /usr/bin/ld which is not the GNU ld but the Solaris one. GNU ld is installed on my system in /usr/gnu/bin. Could this be the issue? If yes, how do I tell ./configure to use the GNU ld?

two options:
LD=/usr/gnu/bin/ld ./configure
./configure --with-ld=/usr/gnu/bin/ld

Stefan

My binutils version is 2.19.0

Some extra info after me playing around after sending my initial email:

When I go to the gst-libs/ext/libav directory and run:
/configure --prefix=/usr --disable-ffserver --disable-ffplay --disable-ffmpeg --disable-ffprobe --enable-static --enable-pic --disable-encoder=flac --disable-decoder=cavs --disable-protocols --disable-devices --disable-network --disable-hwaccels --disable-filters --disable-doc --enable-optimizations --enable-postproc --enable-gpl --enable-shared --enable-pic

## --enable-shared and --enable-pic are added by me, the rest of the configure statements are a result of running ./configure --prefix=/usr from $HOME/SOURCES/gstreamer/gst-ffmpeg-0.10.32/
gmake && gmake install

; then gst-ffmpeg compiles and installs when I issue a './configure --prefix=/usr --with-system-ffmpeg' from $HOME/SOURCES/gstreamer/gst-ffmpeg-0.10.32. However, trying to play a matroska file with ATSC A/52 sound and h264 video core dumps totem then.


Please let me know if you require extra information.



Patrick





On Tue, Jan 24, 2012 at 4:04 PM, Stefan Sauer <[hidden email]> wrote:
On 01/22/2012 01:58 PM, Patrick Ale wrote:
Hi all,

First of all, sorry if I ask a question that has been asked many times before. Yes I googled and all I found is people reporting the problem but no fix was offered (for what I could see).

My problem is related to compiling the gst-ffmpeg 0.10.13 source. All seems to go fine untill the linking phase.

Making all in ffmpeg
gmake[3]: Entering directory `/home/pale/SOURCE/gstreamer/gst-ffmpeg-0.10.13/ext/ffmpeg'
  CCLD   libgstffmpeg.la

*** Warning: Linking the shared library libgstffmpeg.la against the
*** static library ../../gst-libs/ext/libav/libavformat/libavformat.a is not portable!

*** Warning: Linking the shared library libgstffmpeg.la against the
*** static library ../../gst-libs/ext/libav/libavcodec/libavcodec.a is not portable!

*** Warning: Linking the shared library libgstffmpeg.la against the
*** static library ../../gst-libs/ext/libav/libavutil/libavutil.a is not portable!

After this it ends with:
ld: fatal: relocations remain against allocatable but non-writable sections
collect2: ld returned 1 exit status
gmake[3]: *** [libgstffmpeg.la] Error 1
gmake[3]: Leaving directory `/home/pale/SOURCE/gstreamer/gst-ffmpeg-0.10.13/ext/ffmpeg'

on what platform and using what toolchain version are you doing the build? What are the configure flags you are using?

Stefan



Any idea what I am doing wrong and preferable, how do I fix this?


Thanks :)


Patrick



_______________________________________________ gstreamer-devel mailing list [hidden email] http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel


_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel


_______________________________________________ gstreamer-devel mailing list [hidden email] http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel


_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel