I'm attempting to build Version 8.2.5 on a Ubuntu 18.04.1 LTS (GNU/Linux 4.15.0-43-generic i686) system.
I've followed the instructions to compile the code found on this website but I get the following errors:
QuoteDisplay Moreconfigure: WARNING: unrecognized options: --disable-static, --enable-shared
/home/john/http://LibreELEC.tv/build.LibreELEC-RPi2.arm-8.2.5/make-4.2.1/configure: lin
e 9807: /home/john/http://LibreELEC.tv/build.LibreELEC-RPi2.arm-8.2.5/toolchain/bin/pkg
-config: No such file or directory
configure: WARNING: unrecognized options: --disable-static, --enable-shared
glob/libglob.a(glob.o): In function `glob_in_dir':
glob.c:(.text+0x2f6): undefined reference to `__alloca'
glob.c:(.text+0x477): undefined reference to `__alloca'
glob.c:(.text+0x636): undefined reference to `__alloca'
glob.c:(.text+0x69b): undefined reference to `__alloca'
glob/libglob.a(glob.o): In function `glob64':
glob.c:(.text+0xa21): undefined reference to `__alloca'
glob/libglob.a(glob.o):glob.c:(.text+0x113e): more undefined references to `__al
loca' follow
collect2: error: ld returned 1 exit status
make[3]: *** [make] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all] Error 2
make: *** [image] Error 2
From the research I've done, it appears that the problem may be related to the following comment I found in the glob.c file:
QuoteDisplay More/* Comment out all this code if we are using the GNU C Library, and are not
actually compiling the library itself. This code is part of the GNU C
Library, but also included in many other GNU distributions. Compiling
and linking in this code is a waste when using the GNU C library
(especially if it is a shared library). Rather than having every GNU
program understand `configure --with-gnu-libc' and omit the object files,
it is simpler to just do this in the source for each such file. */
If I should be using the glob function from the GNU C Library instead of compiling glob.c, how would I make that happen?
Or if I have to compile the glob.c file, how would I reconcile the reference to the __alloca function?
The command I used to compile was:
QuotePROJECT=RPi2 ARCH=arm CUSTOM_VERSION="JM_8.2.5" make image
I've also attached my logs for your inspection:
Thank you in advance for your assistance.