msys2 / MSYS2-packages

Package scripts for MSYS2.
https://packages.msys2.org
BSD 3-Clause "New" or "Revised" License
1.29k stars 489 forks source link

Building elinks-git fails with undefined references to SCM_* symbols #1101

Open sskras opened 6 years ago

sskras commented 6 years ago

Today I tried rebuilding elinks-git package in MSYS2 (first timer):

$ git clone "https://github.com/Alexpux/MSYS2-packages"
$ cd MSYS2-packages/
$ cd elinks-git/
$ makepkg -sCLf
==> ERROR: Cannot find the strip binary required for object file stripping.

After encountering this error, I installed packages mentioned in Wiki and rerun the build:

$ pacman -S base-devel
  [...]
$ pacman -S msys2-devel
  [...]
$ makepkg -sCLf
  [...]
lib.o:hooks.c:(.text+0x70a56): undefined reference to `scm_makfrom0str'
lib.o:hooks.c:(.text+0x70a56): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `scm_makfrom0str'
lib.o:hooks.c:(.text+0x70a6d): undefined reference to `SCM_STRINGP'
lib.o:hooks.c:(.text+0x70a6d): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `SCM_STRINGP'
lib.o:hooks.c:(.text+0x70a86): undefined reference to `SCM_STRING_LENGTH'
lib.o:hooks.c:(.text+0x70a86): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `SCM_STRING_LENGTH'
lib.o:hooks.c:(.text+0x70a90): undefined reference to `SCM_STRING_UCHARS'
lib.o:hooks.c:(.text+0x70a90): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `SCM_STRING_UCHARS'
lib.o:hooks.c:(.text+0x70b39): undefined reference to `scm_makfrom0str'
lib.o:hooks.c:(.text+0x70b39): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `scm_makfrom0str'
lib.o:hooks.c:(.text+0x70b50): undefined reference to `SCM_STRINGP'
lib.o:hooks.c:(.text+0x70b50): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `SCM_STRINGP'
lib.o:hooks.c:(.text+0x70b74): undefined reference to `SCM_STRING_LENGTH'
lib.o:hooks.c:(.text+0x70b74): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `SCM_STRING_LENGTH'
lib.o:hooks.c:(.text+0x70b7e): undefined reference to `SCM_STRING_UCHARS'
lib.o:hooks.c:(.text+0x70b7e): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `SCM_STRING_UCHARS'
lib.o:hooks.c:(.text+0x70c26): undefined reference to `scm_mem2string'
lib.o:hooks.c:(.text+0x70c26): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `scm_mem2string'
lib.o:hooks.c:(.text+0x70c30): undefined reference to `scm_makfrom0str'
lib.o:hooks.c:(.text+0x70c30): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `scm_makfrom0str'
lib.o:hooks.c:(.text+0x70c4a): undefined reference to `SCM_STRINGP'
lib.o:hooks.c:(.text+0x70c4a): additional relocation overflows omitted from the output
lib.o:hooks.c:(.text+0x70c56): undefined reference to `SCM_STRING_LENGTH'
lib.o:hooks.c:(.text+0x70c61): undefined reference to `SCM_STRING_UCHARS'
lib.o:hooks.c:(.text+0x70ce8): undefined reference to `scm_makfrom0str'
lib.o:hooks.c:(.text+0x70cff): undefined reference to `SCM_STRINGP'
lib.o:hooks.c:(.text+0x70d24): undefined reference to `SCM_STRING_UCHARS'
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:41: elinks.exe] Error 1
make[1]: Leaving directory '/home/saukrs/src/MSYS2-packages/elinks-git/src/elinks-git/src'
make: *** [Makefile.lib:268: all-recursive] Error 1
==> ERROR: A failure occurred in build().
    Aborting...

It fails with undefined references in the middle of output and at the end. Seems like they are related to Guile lib. My versions:

$ pacman -Ss guile
msys/guile 2.2.3-1 [installed]
    a portable, embeddable Scheme implementation written in C
msys/libguile 2.2.3-1 (libraries) [installed]
    a portable, embeddable Scheme implementation written in C
msys/libguile-devel 2.2.3-1 (development) [installed]
    a portable, embeddable Scheme implementation written in C
ErichDonGubler commented 6 years ago

Guile was recently updated...I wonder if elinks can handle the new dependency?

Jayji commented 6 years ago

elinks.exe: error while loading shared libraries: msys-guile-2.0-22.dll: cannot open shared object file: No such file or directory

revelator commented 6 years ago

Incompatible with the latest guile it seems. Also croaks on the ruby version msys2 uses.

revelator commented 6 years ago

I managed to create a version of lua that works on msys and can be used with elinks, also introduced a few changes from debian so that it now supports full color output.