Hi All, When I hit make I get:
sv.c:(.text+0x33a8): undefined reference to `pthread_setspecific' sv.c:(.text+0x33ee): undefined reference to `pthread_setspecific' sv.o: In function `Perl_sv_catpvf_nocontext': sv.c:(.text+0x7ff7): undefined reference to `pthread_getspecific' sv.o: In function `Perl_sv_catpvf_mg_nocontext': sv.c:(.text+0x80f7): undefined reference to `pthread_getspecific' sv.o: In function `Perl_newSVpvf_nocontext': sv.c:(.text+0x8556): undefined reference to `pthread_getspecific' sv.o: In function `Perl_clone_params_new': sv.c:(.text+0xc1c7): undefined reference to `pthread_getspecific' sv.c:(.text+0xc1dd): undefined reference to `pthread_setspecific' sv.c:(.text+0xc238): undefined reference to `pthread_setspecific' sv.o: In function `perl_clone': sv.c:(.text+0x17372): undefined reference to `pthread_setspecific' sv.o: In function `Perl_sv_setpvf_nocontext': sv.c:(.text+0x1ae85): undefined reference to `pthread_getspecific' sv.o: In function `Perl_sv_setpvf_mg_nocontext': sv.c:(.text+0x1b075): undefined reference to `pthread_getspecific' util.o: In function `Perl_croak_no_mem': util.c:(.text+0xa38): undefined reference to `pthread_getspecific' util.o: In function `Perl_safesysmalloc': util.c:(.text+0xad7): undefined reference to `pthread_getspecific' util.o: In function `Perl_safesysrealloc': util.c:(.text+0x107f): undefined reference to `pthread_getspecific' util.o:util.c:(.text+0x11c8): more undefined references to `pthread_getspecific' follow util.o: In function `Perl_set_context': util.c:(.text+0x3a2e): undefined reference to `pthread_setspecific' util.o: In function `Perl_xs_handshake': util.c:(.text+0x6dec): undefined reference to `pthread_getspecific' util.o: In function `Perl_get_context': util.c:(.text+0x3a17): undefined reference to `pthread_getspecific' mg.o: In function `Perl_csighandler': mg.c:(.text+0x228b): undefined reference to `pthread_getspecific' mg.o: In function `Perl_sighandler': mg.c:(.text+0x653b): undefined reference to `pthread_getspecific' reentr.o: In function `Perl_reentrant_retry': reentr.c:(.text+0x5b): undefined reference to `pthread_getspecific' pp.o:pp.c:(.text+0x13dd): more undefined references to `pthread_getspecific' follow collect2: error: ld returned 1 exit status It's the same if I configure without threads. Maybe that's because my workaround for an earlier problem was not so great... Despite having been very careful and the earlier "specs" thing looking correct, I was getting: $ readelf -l a.out | grep Requesting [Requesting program interpreter: /tools/lib64/ld-linux-x86-64.so.2] in chapter 6.20 so I ran: $ gcc -dumpspecs | sed -e 's@/tools@@g' > `dirname $(gcc --print-libgcc-file-name)`/specs That created /usr/lib/gcc/x86_64-pc-linux-gnu/7.2.0/specs and the problem went away. All the other tests in this section were fine to start with and remained so. Could there be a connection between these two things? BTW, I hacked past the perl pthread thing by adding -lpthread to the Makefile, but in the following chapter about XML::Parser the same problem arises and this time you can't hack the makefile cos it's generated every time.
-- http://lists.linuxfromscratch.org/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page Do not top post on this list. A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? http://en.wikipedia.org/wiki/Posting_style