#252 Build error

closed-invalid
nobody
None
1
2012-07-09
2012-07-06
David Reade
No

Using CentOS 5.8 x64, I cannot build the release version (0.5.0) or the latest subversion release. Attached is the build log.

Discussion

  • David Reade
    David Reade
    2012-07-06

    Build Log

     
    Attachments
  • David Reade
    David Reade
    2012-07-06

    To fix the "skipping incompatible" messages, I replaced "EXTRALIBS+=-L$(prefix)/lib" with "EXTRALIBS+=-L$(prefix)/lib64" in src/Makefile, but the build still fails

    If I specify "--disable-3d", the build process bypasses the bit where it would usually fail, but then fails for:

    make[2]: Entering directory `/usr/local/src/gpac/modules/sdl_out'
    gcc -O3 -Wall -fno-strict-aliasing -Wno-pointer-sign -fPIC -DPIC -fvisibility="hidden" -DGPAC_HAVE_CONFIG_H -I"/usr/local/src/gpac" -I"/usr/local/src/gpac/include" -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o sdl_out.o sdl_out.c
    gcc -O3 -Wall -fno-strict-aliasing -Wno-pointer-sign -fPIC -DPIC -fvisibility="hidden" -DGPAC_HAVE_CONFIG_H -I"/usr/local/src/gpac" -I"/usr/local/src/gpac/include" -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o audio.o audio.c
    gcc -O3 -Wall -fno-strict-aliasing -Wno-pointer-sign -fPIC -DPIC -fvisibility="hidden" -DGPAC_HAVE_CONFIG_H -I"/usr/local/src/gpac" -I"/usr/local/src/gpac/include" -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o video.o video.c
    gcc -shared -Wl,--warn-common -Wl,-z,defs -o ../../bin/gcc/gm_sdl_out.so sdl_out.o audio.o video.o -L/usr/lib64 -lSDL -lpthread -L../../bin/gcc -lgpac
    video.o: In function `SDL_DeleteVideo':
    video.c:(.text+0xec): undefined reference to `gf_mx_del'
    video.o: In function `SDL_NewVideo':
    video.c:(.text+0x173): undefined reference to `gf_mx_new'
    video.o: In function `SDLVid_SetBackbufferSize':
    video.c:(.text+0x8c5): undefined reference to `gf_modules_get_option'
    video.o: In function `SDLVid_ResizeWindow':
    video.c:(.text+0x119a): undefined reference to `gf_mx_p'
    video.c:(.text+0x1205): undefined reference to `gf_modules_get_option'
    video.c:(.text+0x1253): undefined reference to `gf_modules_get_option'
    video.c:(.text+0x12ea): undefined reference to `gf_mx_v'
    video.c:(.text+0x133f): undefined reference to `gf_mx_v'
    video.o: In function `SDLVid_Flush':
    video.c:(.text+0x182f): undefined reference to `gf_stretch_bits'
    video.o: In function `SDLVid_SetFullScreen':
    video.c:(.text+0x1c26): undefined reference to `gf_mx_p'
    video.c:(.text+0x1c54): undefined reference to `gf_modules_get_option'
    video.c:(.text+0x1e3a): undefined reference to `gf_mx_v'
    collect2: ld returned 1 exit status
    make[2]: *** [gm_sdl_out.so] Error 1
    make[2]: Leaving directory `/usr/local/src/gpac/modules/sdl_out'
    make[1]: *** [plugs] Error 2
    make[1]: Leaving directory `/usr/local/src/gpac/modules'
    make: *** [all] Error 2

     
  • David Reade
    David Reade
    2012-07-06

    • priority: 5 --> 9
     
  • Jean Le Feuvre
    Jean Le Feuvre
    2012-07-09

    Just tried with a fresh CentOS 5.8 install, I cannot reproduce your problem, build works fine with or without 3D support. Could you post your config.h and config.mak files ?

     
  • David Reade
    David Reade
    2012-07-09

    • priority: 9 --> 1
    • status: open --> closed-invalid
     
  • David Reade
    David Reade
    2012-07-09

    It seems to be my system that's the problem. Tried on a fresh CentOS VM and it compiles first time no problem with nothing disabled.

    My apologies - the ticket can be closed.