On 6/2/20 7:06 PM, Joe Locash via blfs-dev wrote:
Subject says it all...
sed -i 's/^Bookmark/extern Bookmark/' sh_util/gpshare.c
Hi Joe,
I'd like to personally apologize, I just discovered while rebuilding
ncftp on another system that, because I install LLVM many packages
before NcFTP, my builds are using Clang instead of GCC.
After forcing GCC to be used with CC=gcc before configuring the package,
I get the following error:
Compiling ncftpget: [ERROR]
gcc -D_REENTRANT -O2 -W -Wall -Wno-format-y2k -DLINUX=56013
-DLINUX_GLIBC=231
00 -Dsh_util -DO_S="linux-x86_64-glibc2.31" -DSYSCONFDIR="/etc"
-DHAVE_CONFIG
_H -DLINUX=56013 -DLINUX_GLIBC=23100 -I/sources/ncftp-3.2.6
-I../libncftp -I.
./Strn -I../sio -I/sources/ncftp-3.2.6
-I/sources/ncftp-3.2.6/libncftp -I/sou
rces/ncftp-3.2.6/sio -I/sources/ncftp-3.2.6/Strn gpshare.o bookmark.o
preffw.
o spoolutil.o util.o gl_getline.o version.o ncftpget.c -o
../bin/ncftpget -L.
./libncftp -L../Strn -L../sio -L/sources/ncftp-3.2.6/libncftp
-L/sources/ncft
p-3.2.6/sio -L/sources/ncftp-3.2.6/Strn -lncftp -lStrn -lsio
/usr/bin/ld: bookmark.o:(.bss+0x20): multiple definition of `gBm';
gpshare.o:
(.bss+0x0): first defined here
collect2: error: ld returned 1 exit status
Thank you for reporting this problem! I've implemented your sed at
r23250, and it should be in the next rendering of the book.
I also gave credit to you in the changelog entry.
Thank you again,
- Doug
--
http://lists.linuxfromscratch.org/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page