PerlGameDev / SDL

Rehashing the old perl SDL binding on cpan.org
http://search.cpan.org/dist/SDL
GNU General Public License v2.0
81 stars 29 forks source link

build failure with perl-5.27.11 on FreeBSD-11.1 #288

Open jkeenan opened 6 years ago

jkeenan commented 6 years ago

cpanm build.log (gzipped) attached.

Thank you very much. Jim Keenan Alien-SDL-1.446.build.log.gz

jkeenan commented 5 years ago

Still failing when tried against perl-5.31.0 on FreeBSD-12. Excerpt from cpanm build.log:

{
  author => "FROGGS",
  dist => "SDL",
  distname => "SDL-2.548",
  distversion => 2.548,
  grade => "FAIL",
  prereqs => undef,
  test_output => [
    "Building and testing SDL-2.548",
    "[Alien::SDL] Build option used:",
    "\tSource code build",
    "    SDL(v1.2.15) SDL_image(v1.2.11) ogg(v1.3.0) vorbis(v1.3.3) SDL_mixer(v1.2.12) SDL_ttf(v2.0.11) SDL_gfx(v2.0.25) SDL_Pango(v1.2) ",
    "Building SDL",
    "cc -Isrc -I/home/jkeenan/var/tad/testing/perl-5.31.0/lib/5.31.0/amd64-freebsd-thread-multi/CORE -DPIC -fPIC -c -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include -D_FORTIFY_SOURCE=2 -O2 -pipe -fstack-protector -fno-strict-aliasing -o src/support/win32.o src/support/win32.c",
...
    "cc -shared -L/usr/local/lib -fstack-protector-strong -o blib/arch/auto/SDL/Image/Image.so lib/SDL/Image.o src/support/win32.o -L/home/jkeenan/var/tad/testing/perl-5.31.0/lib/site_perl/5.31.0/auto/share/dist/Alien-SDL/1.446_315c9bb0/lib -Wl,-rpath,/home/jkeenan/var/tad/testing/perl-5.31.0/lib/site_perl/5.31.0/auto/share/dist/Alien-SDL/1.446_315c9bb0/lib -lSDL -pthread -liconv -lm -lvgl -lusbhid -pthread -L/usr/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib -Wl,-rpath,/usr/lib -lSDL -lSDL_image",
    "/usr/bin/ld: error: can't create dynamic relocation R_X86_64_64 against local symbol in readonly segment; recompile object files with -fPIC",
    ">>> defined in /home/jkeenan/var/tad/testing/perl-5.31.0/lib/site_perl/5.31.0/auto/share/dist/Alien-SDL/1.446_315c9bb0/lib/libSDL_image.a(IMG.o)",
    ">>> referenced by IMG.c",
    ">>>               IMG.o:(IMG_Linked_Version) in archive /home/jkeenan/var/tad/testing/perl-5.31.0/lib/site_perl/5.31.0/auto/share/dist/Alien-SDL/1.446_315c9bb0/lib/libSDL_image.a",
    "",
    "/usr/bin/ld: error: can't create dynamic relocation R_X86_64_32S against local symbol in readonly segment; recompile object files with -fPIC",
    ">>> defined in /home/jkeenan/var/tad/testing/perl-5.31.0/lib/site_perl/5.31.0/auto/share/dist/Alien-SDL/1.446_315c9bb0/lib/libSDL_image.a(IMG.o)",
    ">>> referenced by IMG.c",
    ">>>               IMG.o:(IMG_Linked_Version) in archive /home/jkeenan/var/tad/testing/perl-5.31.0/lib/site_perl/5.31.0/auto/share/dist/Alien-SDL/1.446_315c9bb0/lib/libSDL_image.a",
    "",
    "/usr/bin/ld: error: can't create dynamic relocation R_X86_64_32S against local symbol in readonly segment; recompile object files with -fPIC",
    ">>> defined in /home/jkeenan/var/tad/testing/perl-5.31.0/lib/site_perl/5.31.0/auto/share/dist/Alien-SDL/1.446_315c9bb0/lib/libSDL_image.a(IMG.o)",
    ">>> referenced by IMG.c",
    ">>>               IMG.o:(IMG_Linked_Version) in archive /home/jkeenan/var/tad/testing/perl-5.31.0/lib/site_perl/5.31.0/auto/share/dist/Alien-SDL/1.446_315c9bb0/lib/libSDL_image.a",
    "",
    "/usr/bin/ld: error: can't create dynamic relocation R_X86_64_32S against local symbol in readonly segment; recompile object files with -fPIC",
    ">>> defined in /home/jkeenan/var/tad/testing/perl-5.31.0/lib/site_perl/5.31.0/auto/share/dist/Alien-SDL/1.446_315c9bb0/lib/libSDL_image.a(IMG.o)",
    ">>> referenced by IMG.c",
    ">>>               IMG.o:(IMG_Linked_Version) in archive /home/jkeenan/var/tad/testing/perl-5.31.0/lib/site_perl/5.31.0/auto/share/dist/Alien-SDL/1.446_315c9bb0/lib/libSDL_image.a",
    "",
    "/usr/bin/ld: error: can't create dynamic relocation R_X86_64_32S against local symbol in readonly segment; recompile object files with -fPIC",
    ">>> defined in /home/jkeenan/var/tad/testing/perl-5.31.0/lib/site_perl/5.31.0/auto/share/dist/Alien-SDL/1.446_315c9bb0/lib/libSDL_image.a(IMG.o)",
    ">>> referenced by IMG.c",
    ">>>               IMG.o:(IMG_Init) in archive /home/jkeenan/var/tad/testing/perl-5.31.0/lib/site_perl/5.31.0/auto/share/dist/Alien-SDL/1.446_315c9bb0/lib/libSDL_image.a",
    "",
    "/usr/bin/ld: error: can't create dynamic relocation R_X86_64_PC32 against symbol: IMG_InitJPG in readonly segment; recompile object files with -fPIC",
    ">>> defined in /home/jkeenan/var/tad/testing/perl-5.31.0/lib/site_perl/5.31.0/auto/share/dist/Alien-SDL/1.446_315c9bb0/lib/libSDL_image.a(IMG_jpg.o)",
    ">>> referenced by IMG.c",
    ">>>               IMG.o:(IMG_Init) in archive /home/jkeenan/var/tad/testing/perl-5.31.0/lib/site_perl/5.31.0/auto/share/dist/Alien-SDL/1.446_315c9bb0/lib/libSDL_image.a",
    "",
    "/usr/bin/ld: error: can't create dynamic relocation R_X86_64_32S against local symbol in readonly segment; recompile object files with -fPIC",
    ">>> defined in /home/jkeenan/var/tad/testing/perl-5.31.0/lib/site_perl/5.31.0/auto/share/dist/Alien-SDL/1.446_315c9bb0/lib/libSDL_image.a(IMG.o)",
    ">>> referenced by IMG.c",
    ">>>               IMG.o:(IMG_Init) in archive /home/jkeenan/var/tad/testing/perl-5.31.0/lib/site_perl/5.31.0/auto/share/dist/Alien-SDL/1.446_315c9bb0/lib/libSDL_image.a",
    "",
    "/usr/bin/ld: error: can't create dynamic relocation R_X86_64_PC32 against symbol: IMG_InitPNG in readonly segment; recompile object files with -fPIC",
    ">>> defined in /home/jkeenan/var/tad/testing/perl-5.31.0/lib/site_perl/5.31.0/auto/share/dist/Alien-SDL/1.446_315c9bb0/lib/libSDL_image.a(IMG_png.o)",
    ">>> referenced by IMG.c",
    ">>>               IMG.o:(IMG_Init) in archive /home/jkeenan/var/tad/testing/perl-5.31.0/lib/site_perl/5.31.0/auto/share/dist/Alien-SDL/1.446_315c9bb0/lib/libSDL_image.a",
    "",
    "/usr/bin/ld: error: can't create dynamic relocation R_X86_64_32S against local symbol in readonly segment; recompile object files with -fPIC",
    ">>> defined in /home/jkeenan/var/tad/testing/perl-5.31.0/lib/site_perl/5.31.0/auto/share/dist/Alien-SDL/1.446_315c9bb0/lib/libSDL_image.a(IMG.o)",
    ">>> referenced by IMG.c",
    ">>>               IMG.o:(IMG_Init) in archive /home/jkeenan/var/tad/testing/perl-5.31.0/lib/site_perl/5.31.0/auto/share/dist/Alien-SDL/1.446_315c9bb0/lib/libSDL_image.a",
    "",
    "/usr/bin/ld: error: can't create dynamic relocation R_X86_64_PC32 against symbol: IMG_InitTIF in readonly segment; recompile object files with -fPIC",
    ">>> defined in /home/jkeenan/var/tad/testing/perl-5.31.0/lib/site_perl/5.31.0/auto/share/dist/Alien-SDL/1.446_315c9bb0/lib/libSDL_image.a(IMG_tif.o)",
    ">>> referenced by IMG.c",
    ">>>               IMG.o:(IMG_Init) in archive /home/jkeenan/var/tad/testing/perl-5.31.0/lib/site_perl/5.31.0/auto/share/dist/Alien-SDL/1.446_315c9bb0/lib/libSDL_image.a",
    "",
    "/usr/bin/ld: error: can't create dynamic relocation R_X86_64_32S against local symbol in readonly segment; recompile object files with -fPIC",
    ">>> defined in /home/jkeenan/var/tad/testing/perl-5.31.0/lib/site_perl/5.31.0/auto/share/dist/Alien-SDL/1.446_315c9bb0/lib/libSDL_image.a(IMG.o)",
    ">>> referenced by IMG.c",
    ">>>               IMG.o:(IMG_Init) in archive /home/jkeenan/var/tad/testing/perl-5.31.0/lib/site_perl/5.31.0/auto/share/dist/Alien-SDL/1.446_315c9bb0/lib/libSDL_image.a",
    "",
    "/usr/bin/ld: error: can't create dynamic relocation R_X86_64_PC32 against symbol: IMG_InitWEBP in readonly segment; recompile object files with -fPIC",
    ">>> defined in /home/jkeenan/var/tad/testing/perl-5.31.0/lib/site_perl/5.31.0/auto/share/dist/Alien-SDL/1.446_315c9bb0/lib/libSDL_image.a(IMG_webp.o)",
    ">>> referenced by IMG.c",
    ">>>               IMG.o:(IMG_Init) in archive /home/jkeenan/var/tad/testing/perl-5.31.0/lib/site_perl/5.31.0/auto/share/dist/Alien-SDL/1.446_315c9bb0/lib/libSDL_image.a",
    "",
    "/usr/bin/ld: error: can't create dynamic relocation R_X86_64_32S against local symbol in readonly segment; recompile object files with -fPIC",
    ">>> defined in /home/jkeenan/var/tad/testing/perl-5.31.0/lib/site_perl/5.31.0/auto/share/dist/Alien-SDL/1.446_315c9bb0/lib/libSDL_image.a(IMG.o)",
    ">>> referenced by IMG.c",
    ">>>               IMG.o:(IMG_Init) in archive /home/jkeenan/var/tad/testing/perl-5.31.0/lib/site_perl/5.31.0/auto/share/dist/Alien-SDL/1.446_315c9bb0/lib/libSDL_image.a",
    "",
    "/usr/bin/ld: error: can't create dynamic relocation R_X86_64_32S against local symbol in readonly segment; recompile object files with -fPIC",
    ">>> defined in /home/jkeenan/var/tad/testing/perl-5.31.0/lib/site_perl/5.31.0/auto/share/dist/Alien-SDL/1.446_315c9bb0/lib/libSDL_image.a(IMG.o)",
    ">>> referenced by IMG.c",
    ">>>               IMG.o:(IMG_Init) in archive /home/jkeenan/var/tad/testing/perl-5.31.0/lib/site_perl/5.31.0/auto/share/dist/Alien-SDL/1.446_315c9bb0/lib/libSDL_image.a",
    "",
    "/usr/bin/ld: error: can't create dynamic relocation R_X86_64_32S against local symbol in readonly segment; recompile object files with -fPIC",
    ">>> defined in /home/jkeenan/var/tad/testing/perl-5.31.0/lib/site_perl/5.31.0/auto/share/dist/Alien-SDL/1.446_315c9bb0/lib/libSDL_image.a(IMG.o)",
    ">>> referenced by IMG.c",
    ">>>               IMG.o:(IMG_Init) in archive /home/jkeenan/var/tad/testing/perl-5.31.0/lib/site_perl/5.31.0/auto/share/dist/Alien-SDL/1.446_315c9bb0/lib/libSDL_image.a",
    "",
    "/usr/bin/ld: error: can't create dynamic relocation R_X86_64_32S against local symbol in readonly segment; recompile object files with -fPIC",
    ">>> defined in /home/jkeenan/var/tad/testing/perl-5.31.0/lib/site_perl/5.31.0/auto/share/dist/Alien-SDL/1.446_315c9bb0/lib/libSDL_image.a(IMG.o)",
    ">>> referenced by IMG.c",
    ">>>               IMG.o:(IMG_Quit) in archive /home/jkeenan/var/tad/testing/perl-5.31.0/lib/site_perl/5.31.0/auto/share/dist/Alien-SDL/1.446_315c9bb0/lib/libSDL_image.a",
    "",
    "/usr/bin/ld: error: can't create dynamic relocation R_X86_64_PC32 against symbol: IMG_QuitJPG in readonly segment; recompile object files with -fPIC",
    ">>> defined in /home/jkeenan/var/tad/testing/perl-5.31.0/lib/site_perl/5.31.0/auto/share/dist/Alien-SDL/1.446_315c9bb0/lib/libSDL_image.a(IMG_jpg.o)",
    ">>> referenced by IMG.c",
    ">>>               IMG.o:(IMG_Quit) in archive /home/jkeenan/var/tad/testing/perl-5.31.0/lib/site_perl/5.31.0/auto/share/dist/Alien-SDL/1.446_315c9bb0/lib/libSDL_image.a",
    "",
    "/usr/bin/ld: error: can't create dynamic relocation R_X86_64_32S against local symbol in readonly segment; recompile object files with -fPIC",
    ">>> defined in /home/jkeenan/var/tad/testing/perl-5.31.0/lib/site_perl/5.31.0/auto/share/dist/Alien-SDL/1.446_315c9bb0/lib/libSDL_image.a(IMG.o)",
    ">>> referenced by IMG.c",
    ">>>               IMG.o:(IMG_Quit) in archive /home/jkeenan/var/tad/testing/perl-5.31.0/lib/site_perl/5.31.0/auto/share/dist/Alien-SDL/1.446_315c9bb0/lib/libSDL_image.a",
    "",
    "/usr/bin/ld: error: can't create dynamic relocation R_X86_64_PC32 against symbol: IMG_QuitPNG in readonly segment; recompile object files with -fPIC",
    ">>> defined in /home/jkeenan/var/tad/testing/perl-5.31.0/lib/site_perl/5.31.0/auto/share/dist/Alien-SDL/1.446_315c9bb0/lib/libSDL_image.a(IMG_png.o)",
    ">>> referenced by IMG.c",
    ">>>               IMG.o:(IMG_Quit) in archive /home/jkeenan/var/tad/testing/perl-5.31.0/lib/site_perl/5.31.0/auto/share/dist/Alien-SDL/1.446_315c9bb0/lib/libSDL_image.a",
    "",
    "/usr/bin/ld: error: can't create dynamic relocation R_X86_64_32S against local symbol in readonly segment; recompile object files with -fPIC",
    ">>> defined in /home/jkeenan/var/tad/testing/perl-5.31.0/lib/site_perl/5.31.0/auto/share/dist/Alien-SDL/1.446_315c9bb0/lib/libSDL_image.a(IMG.o)",
    ">>> referenced by IMG.c",
    ">>>               IMG.o:(IMG_Quit) in archive /home/jkeenan/var/tad/testing/perl-5.31.0/lib/site_perl/5.31.0/auto/share/dist/Alien-SDL/1.446_315c9bb0/lib/libSDL_image.a",
    "",
    "/usr/bin/ld: error: too many errors emitted, stopping now (use -error-limit=0 to see all errors)",
    "cc: error: linker command failed with exit code 1 (use -v to see invocation)",
    "error building blib/arch/auto/SDL/Image/Image.so from lib/SDL/Image.o src/support/win32.o at /home/jkeenan/var/tad/testing/perl-5.31.0/lib/5.31.0/ExtUtils/CBuilder/Base.pm line 332.",
    "-> FAIL Installing SDL failed. See /home/jkeenan/var/tad/testing/perl-5.31.0/.cpanm/work/1562787494.14114/build.log for details. Retry with --force to force install it.",
  ],
  via => "App::cpanminus::reporter 0.17 (1.7044)",
}

Can you investigate?

Thank you very much. Jim Keenan