Mediatomb 0.12.1 on WL-500gP

stemme
2010-09-27
2013-05-30
  • stemme
    stemme
    2010-09-27

    I'm trying to compile mediatomb on my router, but have no success at all.
    configure runs and gives this summary:

    CONFIGURATION SUMMARY ----
    sqlite3               : yes
    mysql                 : disabled
    libjs                 : missing
    libmagic              : yes
    inotify               : missing
    libexif               : yes
    id3lib                : yes
    taglib                : missing
    libmp4v2              : missing
    ffmpeg                : yes
    ffmpegthumbnailer     : missing
    lastfmlib             : missing
    external transcoding  : yes
    curl                  : missing
    YouTube               : missing
    libextractor          : disabled
    db-autocreate         : yes
    

    But the make doesn't work, I get an error as shown below:

    g++ -DHAVE_CONFIG_H -I. -I.. -I../tombupnp/upnp/inc    -I../src -I../tombupnp/ixml/inc -I../tombupnp/threadutil/inc -I../tombupnp/upnp/inc -I..           -pthread    -I/opt/include    -g -O2 -MT libmediatomb_a-autoscan.o -MD -MP -MF .deps/libmediatomb_a-autoscan.Tpo -c -o libmediatomb_a-autoscan.o `test -f '../src/autoscan.cc' || echo './'`../src/autoscan.cc
    ../src/autoscan.cc: In member function 'void AutoscanDirectory::setLocation(zmm::String)':
    ../src/autoscan.cc:371: internal compiler error: Segmentation fault
    

    what can I do to compile mediatomb?
    static binarys would be nice…

     
  • Jin
    Jin
    2010-10-18

    You need a newer gcc version I guess… Also possible that your gcc was not compiled properly for your platform; but this is a gcc issue, not a problem in MediaTomb…

     
  • stemme
    stemme
    2010-10-18

    hmm

    gcc -v
    Using built-in specs.
    Target: mipsel-linux-uclibc
    Configured with: /home/slug/optware/oleg/toolchain/buildroot/toolchain_build_mipsel/gcc-4.1.1/configure --prefix=/opt --build=i386-pc-linux-gnu --host=mipsel-linux-uclibc --target=mipsel-linux-uclibc --enable-languages=c,c++ --with-gxx-include-dir=/opt/include/c++ --disable-__cxa_atexit --enable-target-optspace --with-gnu-ld --enable-shared --enable-threads --disable-multilib
    Thread model: posix
    gcc version 4.1.1
    
     
  • Jin
    Jin
    2010-10-19

    It is very well possible that the problem is in the toolchain (i.e. something went wrong when the toolchain was generated) or that there is a bug in the compiler.

    You could also try to use strace and figure out why exactly the compiler is crashing, maybe you are running out of memory?

     
  • stemme
    stemme
    2010-10-20

    Thats strace, I've no idea what to do with it..

    stat("RCS", 0x7fff6168)                 = -1 ENOENT (No such file or directory)
    stat("RCS", 0x7fff6168)                 = -1 ENOENT (No such file or directory)
    stat(".", {st_mode=S_IFDIR|0775, st_size=4096, ...}) = 0
    open(".", O_RDONLY)                     = 3
    fcntl(3, F_SETFD, FD_CLOEXEC)           = 0
    getdents64(3, /* 33 entries */, 4096)   = 1040
    getdents64(3, /* 0 entries */, 4096)    = 0
    close(3)                                = 0
    stat("SCCS", 0x7fff6168)                = -1 ENOENT (No such file or directory)
    stat64(0x464c18, 0x7fff6308)            = -1 ENOENT (No such file or directory)
    stat64(0x464c18, 0x7fff6308)            = -1 ENOENT (No such file or directory)
    stat64(0x44f22d, 0x7fff42c0)            = 0
    time(NULL)                              = 1287593852
    stat64(0x44f1f0, 0x7fff41e0)            = 0
    stat64(0x44f17a, 0x7fff4100)            = 0
    stat64(0x44f1a7, 0x7fff4100)            = 0
    stat64(0x44f19a, 0x7fff4100)            = 0
    stat64(0x44f209, 0x7fff4100)            = 0
    stat64(0x44f21f, 0x7fff41e0)            = 0
    stat64(0x44f148, 0x7fff4100)            = 0
    stat64(0x44f236, 0x7fff41e0)            = 0
    stat64(0x44f243, 0x7fff4100)            = 0
    stat64(0x44f1b4, 0x7fff4020)            = 0
    pipe([4470960, 4467924])                = 3
    close(4)                                = 0
    fcntl64(3, F_SETFD, FD_CLOEXEC)         = 0
    rt_sigprocmask(SIG_BLOCK, [HUP INT QUIT TERM XCPU XFSZ], NULL, 16) = 0
    fork()                                  = 7574
    --- SIGCHLD (Child exited) @ 0 (0) ---
    sigreturn()                             = 7574
    rt_sigprocmask(SIG_SETMASK, [], NULL, 16) = 0
    wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 7574
    rt_sigprocmask(SIG_BLOCK, [HUP INT QUIT TERM XCPU XFSZ], NULL, 16) = 0
    rt_sigprocmask(SIG_SETMASK, [], NULL, 16) = 0
    stat64(0x44f236, 0x7fff4188)            = 0
    write(1, "make  all-recursive\n", 20)   = 20
    rt_sigprocmask(SIG_BLOCK, [HUP INT QUIT TERM XCPU XFSZ], NULL, 16) = 0
    fork()                                  = 7575
    rt_sigprocmask(SIG_SETMASK, [], NULL, 16) = 0
    wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 2}], 0, NULL) = 7575
    --- SIGCHLD (Child exited) @ 0 (0) ---
    

    thanks so far jin