Menu

#341 Warning: Warning: gpac is too old, update to...

v1.0 (example)
closed-duplicate
nobody
None
5
2015-09-15
2014-11-19
SourceBugs
No

Hi,

I grabbed the latest revision 5517, then I grabbed a different revison from Arch Linux's ftp repo, 5324.

When I tried to compile the latest nightly from x264, x264 gave me this message;

Warning: gpac is too old, update to 2007-06-21 UTC or later

How can I fix this? I don't get why it's saying it's to old when it's not...

thank you

Discussion

1 2 > >> (Page 1 of 2)
  • SourceBugs

    SourceBugs - 2014-11-19

    I forgot to mention I wanted to compile in x264 mp4 support, but with gpac installed x264 says durning compile time for the option;

    mp4: no

     

    Last edit: SourceBugs 2014-11-19
  • Romain Bouqueau

    Romain Bouqueau - 2014-11-19

    Hi,

    I don't have this issue. Can you give us your exact platform/os, command-line, x264 source revision etc. so that we can reproduce?

    Cheers,

     
  • SourceBugs

    SourceBugs - 2014-11-19

    Hi,

    Sorry I didn't give more detail specs before.

    Slackware 14.1 x86_64
    x264-snapshot-20141118-2245

    Compile options for x264;

    LDFLAGS="$SLKLDFLAGS" \

    CXXFLAGS="$SLKCFLAGS" \

    CFLAGS="$SLKCFLAGS" \

    /configure \

    --prefix=/usr \

    --libdir=/usr/lib${LIBDIRSUFFIX} \

    --enable-shared \

    --enable-pic \

    --enable-strip \

    $ARCHOPTS \

    --host=$ARCH-slackware-linux \

    2>&1 | tee $OUTPUT/configure-${PRGNAM}.log

    make $NUMJOBS 2>&1 | tee $OUTPUT/make-${PRGNAM}.log

     
  • Romain Bouqueau

    Romain Bouqueau - 2014-11-19

    Ok thx. And how did you build gpac? Where did you get it from?

     
  • SourceBugs

    SourceBugs - 2014-11-19

    https://github.com/gpac/gpac
    ftp://ftp.archlinux.org/other/community/gpac/

     
  • SourceBugs

    SourceBugs - 2014-11-19

    Forgot to mention I also got a version from here I tried too;

    http://slackbuilds.org/repository/14.1/multimedia/gpac/

    So I actually tried 3 different versions of gpac, all with this message.

    Sorry, forgot to show you my build script I use to compile gpac, see the attachment for the gpac build script...

     

    Last edit: SourceBugs 2014-11-19
  • SourceBugs

    SourceBugs - 2014-11-21

    Hi Romain,

    Any ideas yet?

    thanks

     
  • Romain Bouqueau

    Romain Bouqueau - 2014-11-21

    I just made a test and it works here.

    I grabbed the latest gpac, then:
    make distclean && ../gpac_full/trunk/gpac/configure --use-zlib=no --use-ffmpeg=no --use-png=no --verbose && make -j8 && make install && make install-lib

    Then I grabbed the latest x264, then:
    ./configure --extra-cflags=-I/usr/local/include --extra-ldflags="-L/usr/local/lib -ljpeg"
    (the extra flags are needed probably because I am on MSYS2 for the test)

    It outputs:
    $ ./configure --extra-cflags=-I/usr/local/include --extra-ldflags="-L/usr/local/lib -ljpeg"
    platform: X86_64
    system: WINDOWS
    cli: yes
    libx264: internal
    shared: no
    static: no
    asm: yes
    interlaced: yes
    avs: avisynth
    lavf: no
    ffms: no
    mp4: gpac
    gpl: yes
    thread: posix
    opencl: yes
    filters: crop select_every
    debug: no
    gprof: no
    strip: no
    PIC: no
    bit depth: 8
    chroma format: all

    You can run 'make' or 'make fprofiled' now.

    How can I help you further?

     
  • Romain Bouqueau

    Romain Bouqueau - 2014-11-21

    By the way, what does the x264 config.log says?

     
  • SourceBugs

    SourceBugs - 2014-11-21

    I can just grab the latest from github?

    https://github.com/gpac/gpac

    git clone https://github.com/gpac/gpac.git

    I've attached the config.log for x264

     

    Last edit: SourceBugs 2014-11-21
  • SourceBugs

    SourceBugs - 2014-11-22

    I grabbed from Github and it's the same problem with x264;

    Warning: gpac is too old, update to 2007-06-21 UTC or later

    I'm attaching my gpac.SlackBuild script and for x264, so you can see the compile options I'm using. I see no reason why I should be getting this error and mp4 support not getting put into x264, hmm

    thanks

     

    Last edit: SourceBugs 2014-11-22
  • Romain Bouqueau

    Romain Bouqueau - 2014-11-22

    Have you read the config.log file??

    Failed commandline was:
    --------------------------------------------------
    gcc conftest.c -m64 -O2 -fPIC -Wall -I. -I$(SRCPATH) -std=gnu99 -mpreferred-stack-boundary=5        -lgpac_static -lz -L.  -lavformat -lavcodec -lavutil -lswscale    -lswscale -lavutil    -m64 -L/usr/lib64 -lm -lpthread -o conftest
    /usr/lib64/gcc/x86_64-slackware-linux/4.8.2/../../../../x86_64-slackware-linux/bin/ld: /usr/lib/libgpac_static.a(downloader.o): undefined reference to symbol 'SSL_write'
    /usr/lib64/gcc/x86_64-slackware-linux/4.8.2/../../../../x86_64-slackware-linux/bin/ld: note: 'SSL_write' is defined in DSO /usr/lib64/libssl.so.1 so try adding it to the linker command line
    /usr/lib64/libssl.so.1: could not read symbols: Invalid operation
    collect2: error: ld returned 1 exit status
    --------------------------------------------------
    

    Could you investigate about the libssl issue? ("/usr/lib64/libssl.so.1: could not read symbols: Invalid operation")

     
  • SourceBugs

    SourceBugs - 2014-11-23

    I will investigate this, but what about this line?

    /usr/lib/libgpac_static.a(downloader.o): undefined reference to symbol 'SSL_write'

    What is gpac doing here?

     

    Last edit: SourceBugs 2014-11-23
  • Romain Bouqueau

    Romain Bouqueau - 2014-11-23

    SSL is not needed for the MP4 muxer.

    But GPAC is far beyond a muxer, see gpac.io. It contains a scriptable player, some streaming tools, and is able to handle several containers and other technologies.

    Please use the configure script file to select the features you need. Let us know if you need help.

     
  • SourceBugs

    SourceBugs - 2014-11-23

    I don't understand, why is OpenSSL is being called up when compiling x264?

    What does x264 have to do with OpenSSL as it relates to gpac, I don't get why this is happening...

    So now I went back and compiled gpac without ssl; --disable-ssl

    Now x264 is still complaing gpac is to old and I see different errors in the x264 config.log

    Please see this new config.log

    I still don't get where this problem is coming from, something still not right in gpac source or x264 as it relates to the age of gpac?

    thank you

     

    Last edit: SourceBugs 2014-11-23
  • SourceBugs

    SourceBugs - 2014-11-23

    Maybe I'm starting to make some progress, but I can't believe how hard it is to get x264 to compile in gpac support.

    Please see 'config' this is the new config.log if I --disable-openssl
    in gpac, this is what I end up with now.

    'dlclose@@GLIBC_2.2.5' is defined in DSO /lib64/libdl.so.2 so try
    adding it to the linker command line

    So then I add this flag to x264; --extra-ldflags=-ldl and recompile
    and this is what I get now in the config.log I'm attaching.

    At the very bottom of the config.log I now see this;

    collect2: error: ld returned 1 exit status

    Failed program was:
    ..#include <gpac isomedia.h="">
    int main () { gf_isom_set_pixel_aspect_ratio(0,0,0,0,0); return 0; }</gpac>

    I don't have ffmpeg installed, it's my understanding it's optional.

    Sheesh the latest gpac is getting to big, to much stuff going on and pain to compile now.

    I really wish gpac would of stayed more to the original and simpler...

     

    Last edit: SourceBugs 2014-11-23
  • Romain Bouqueau

    Romain Bouqueau - 2014-11-24

    Don't blame any of these projects, they haven't changed for years.

    There is something's wrong with your configuration as you would normally not need all these manipulations.

    Why don't you link dynamically?

    change this line in the configure script from this:

    MP4_LDFLAGS="-lgpac_static"

    to this:

    MP4_LDFLAGS="-lgpac"

    If this works, we have to figure out why the right flags are no retrieved.

     
  • SourceBugs

    SourceBugs - 2014-11-25

    Please don't blame me the packager either, I don't see that there is anything wrong on my end.

    What configuration are you talking about?

    I've been compiling gpac for several years, have a look at my gpac.SlackBUild script I'm attaching, this is dated from August 2012, and you'll see there is nothing in it that I was doing 2 years ago different from now, I compiled 0.5.0 and x264 in the past just fine.

    But since that time I've also used 2 different verisons of Slackware.

    So, really what has changed? It's certainly not my build script, so then, there's been a OS change in system libs, gcc, etc., affecting this? Or something messed up in x264? Or something in the gpac code has changed.

    It seems to me that the gpac code has changed, because I just went back and tested this with gpac-0.5.0 and it worked just fine with x264.

    Please see also the new x264 config.log that I compiled against 0.5.0. It didn't complain about gpac being to old, and at the bottom shows support was added. :)

     

    Last edit: SourceBugs 2014-11-25
  • Romain Bouqueau

    Romain Bouqueau - 2014-11-25

    First I notice that the attached config.log works. Good news :)

    Secondly I don't know what has changed on your system. But lines like '-libm' in your link command-lines were pretty weird.

    Thirdly: if x264 uses a statically build version of gpac, but it seems like either ou pkgconfig is incorrect or x264 doesn't use it correctly. What did the x264 guys say on this?

     
  • SourceBugs

    SourceBugs - 2014-11-25

    Where is this '-libm' that are you are seeing?

    gpace has the configure option; --enable-static-bin which I did not use, so I'm assuming without it, it's a dynamic build?

    I was told;

    'If you built it as a static library then it will link to
    the static library'.

    So x264 is going to link to what you want to use, dynamic or static...

    Romain I did not compile gpac static with the option;

    --enable-static-bin

    So according to the x264 guys I'd have to compile gpac static for x264 to use it static, but I didn't....

    I went back this time thinking maybe if I compile it static;

    --enable-static-bin

    Maybe x264 won't complain, but it did, this still does not work in the latest gpac...

    hmm

     

    Last edit: SourceBugs 2014-11-26
  • SourceBugs

    SourceBugs - 2014-11-26

    Please show me where you see this -libm? I have looked through 3 of the logs I submitted and I see nothing.

    Please let me know when you have the issues 5 & 6 commited to git so I can test.

    According to x264 guys, gpac can be static or dynamic linked, please don't make gpac only static build...

     

    Last edit: SourceBugs 2014-11-26
  • SourceBugs

    SourceBugs - 2014-12-10

    Hi Romain,

    Any progress made so far?

     
1 2 > >> (Page 1 of 2)

Log in to post a comment.

MongoDB Logo MongoDB