Le 14/02/2020 à 14:05, Tadeus Prastowo via lfs-dev a écrit : > Hi, > > I found that at > http://www.linuxfromscratch.org/lfs/view/development/chapter05/perl.html, > I needed to add `-Dnoextensions=Time/HiRes' because otherwise, the > compilation failed with the following message due to the extension > placing `-lrt' in the file ext.libs that in turn required the Glibc's > thread support, which was not built yet in Chapter 5:
Normally, it is built (and used by gcc-pass2). > > cc -o perl -fstack-protector-strong perlmain.o lib/auto/B/B.a > lib/auto/Compress/Raw/Bzip2/Bzip2.a lib/auto/Compress/Raw/Zlib/Zlib.a > lib/auto/Cwd/Cwd.a lib/auto/Data/Dumper/Dumper.a > lib/auto/Devel/PPPort/PPPort.a lib/auto/Devel/Peek/Peek.a > lib/auto/Digest/MD5/MD5.a lib/auto/Digest/SHA/SHA.a > lib/auto/Encode/Encode.a lib/auto/Fcntl/Fcntl.a > lib/auto/File/DosGlob/DosGlob.a lib/auto/File/Glob/Glob.a > lib/auto/Filter/Util/Call/Call.a lib/auto/Hash/Util/Util.a > lib/auto/Hash/Util/FieldHash/FieldHash.a > lib/auto/I18N/Langinfo/Langinfo.a lib/auto/IO/IO.a > lib/auto/IPC/SysV/SysV.a lib/auto/List/Util/Util.a > lib/auto/MIME/Base64/Base64.a lib/auto/Math/BigInt/FastCalc/FastCalc.a > lib/auto/Opcode/Opcode.a lib/auto/POSIX/POSIX.a > lib/auto/PerlIO/encoding/encoding.a lib/auto/PerlIO/mmap/mmap.a > lib/auto/PerlIO/scalar/scalar.a lib/auto/PerlIO/via/via.a > lib/auto/SDBM_File/SDBM_File.a lib/auto/Socket/Socket.a > lib/auto/Storable/Storable.a lib/auto/Sys/Hostname/Hostname.a > lib/auto/Sys/Syslog/Syslog.a > lib/auto/Tie/Hash/NamedCapture/NamedCapture.a > lib/auto/Time/HiRes/HiRes.a lib/auto/Time/Piece/Piece.a > lib/auto/Unicode/Collate/Collate.a > lib/auto/Unicode/Normalize/Normalize.a > lib/auto/attributes/attributes.a lib/auto/mro/mro.a lib/auto/re/re.a > lib/auto/threads/threads.a lib/auto/threads/shared/shared.a > lib/auto/Encode/Byte/Byte.a lib/auto/Encode/CN/CN.a > lib/auto/Encode/EBCDIC/EBCDIC.a lib/auto/Encode/JP/JP.a > lib/auto/Encode/KR/KR.a lib/auto/Encode/Symbol/Symbol.a > lib/auto/Encode/TW/TW.a lib/auto/Encode/Unicode/Unicode.a libperl.a > `cat ext.libs` -lm /LFS-tools/lib/libcrypt.a > /home/eus/LFS-system/LFS-tools/bin/../lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: > /lib/x86_64-linux-gnu/libpthread.so.0: undefined reference to There is something wrong in your setup: no library in /lib should be used at this stage... > `__libc_dl_error_tsd@GLIBC_PRIVATE' > /home/eus/LFS-system/LFS-tools/bin/../lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: > /lib/x86_64-linux-gnu/libpthread.so.0: undefined reference to > `__libc_vfork@GLIBC_PRIVATE' > collect2: error: ld returned 1 exit status > make: *** [makefile:371: perl] Error 1 > Pierre -- http://lists.linuxfromscratch.org/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
