SHARE
TWEET

Perl configure error for LFS setup

a guest May 25th, 2019 80 in 146 days
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. I was trying to compile Perl for Linux From Scratch setup.
  2. Host system: Manjaro 18 Xfce 32bit
  3. Here is command I typed which was given by LFS Stable Book 8.4:
  4. > 'sh Configure -des Dprefix=/tools -Dlibs=-lm -Uloclibpth -Ulonincpth'
  5. Choises are automated. I didn't give any yes, no, linux etc answers.
  6.  
  7. Rest is the output of above command:
  8. First let's make sure your kit is complete.  Checking...
  9. Would you like to see the instructions? [n]  
  10. Locating common programs...
  11. Checking compatibility between /tools/bin/echo and builtin echo (if any)...
  12. Symbolic links are supported.
  13. Checking how to test for symbolic links...
  14. You can test for symbolic links with 'test -h'.
  15. Checking for cross-compile
  16. No targethost for running compiler tests against defined, running locally
  17. Good, your tr supports [:lower:] and [:upper:] to convert case.
  18. Using [:upper:] and [:lower:] to convert case.
  19. aix           dragonfly       irix_5        openbsd       sunos_4_1  
  20. aix_3         dynix           irix_6        opus          super-ux  
  21. aix_4         dynixptx        irix_6_0      os2           svr4  
  22. altos486      epix            irix_6_1      os390         svr5  
  23. amigaos       esix4           isc           os400         ti1500  
  24. atheos        fps             isc_2         posix-bc      ultrix_4  
  25. aux_3         freebsd         linux-android     qnx           umips  
  26. bitrig        freemint        linux         riscos        unicos  
  27. bsdos         gnu             lynxos        sco           unicosmk  
  28. catamount     gnukfreebsd     midnightbsd       sco_2_3_0     unisysdynix  
  29. convexos      gnuknetbsd      mips          sco_2_3_1     utekv  
  30. cxux          greenhills      mirbsd        sco_2_3_2     uwin  
  31. cygwin        haiku           mpc           sco_2_3_3     vos  
  32. darwin        hpux            ncr_tower     sco_2_3_4  
  33. dcosx         i386            netbsd        solaris_2  
  34. dec_osf       interix         newsos4       stellar  
  35. dos_djgpp     irix_4          nonstopux     sunos_4_0  
  36. Which of these apply, if any? [linux]  
  37. Operating system name? [linux]  
  38. Operating system version? [4.14.119-1-manjaro]  
  39. Installation prefix to use? (~name ok) [/usr/local]  
  40. AFS does not seem to be running...
  41. What installation prefix should I use for installing files? (~name ok) [/usr/local]  
  42. Getting the current patchlevel...
  43. Build a threading Perl? [n]  
  44. Build Perl for multiplicity? [n]  
  45. Use which C compiler? [cc]  
  46. Checking for GNU cc in disguise and/or its version number...
  47. Now, how can we feed standard input to your C preprocessor...
  48. Directories to use for library searches?
  49. [/mnt/lfs/tools/bin/../lib/gcc/i686-pc-linux-gnu/8.2.0/include-fixed /tools/lib /usr/local/lib /lib /usr/lib]  
  50. What is the file extension used for shared libraries? [so]  
  51. Make shared library basenames unique? [n]  
  52. Build Perl for SOCKS? [n]  
  53. Try to use long doubles if available? [n]  
  54. Checking for optional libraries...
  55. What libraries to use? [-lpthread -lnsl -lgdbm -ldb -ldl -lm -lcrypt -lutil -lc -lgdbm_compat]  
  56. What optimizer/debugger flag should be used? [-O2]  
  57. Any additional cc flags? [-fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include]  
  58. Let me guess what the preprocessor flags are...
  59. Any additional ld flags (NOT including libraries)? [ -fstack-protector-strong -L/usr/local/lib]  
  60. Checking your choice of C compiler and flags for coherency...
  61. I've tried to compile and run the following simple program:
  62.  
  63. #include <stdio.h>
  64. int main() { printf("Ok\n"); return(0); }
  65.  
  66. I used the command:
  67.  
  68.     cc -o try -O2 -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include -fstack-protector-strong -L/usr/local/lib try.c -lpthread -lnsl -lgdbm -ldb -ldl -lm -lcrypt -lutil -lc -lgdbm_compat
  69.      ./try
  70.  
  71. and I got the following output:
  72.  
  73. /mnt/lfs/tools/bin/../lib/gcc/i686-pc-linux-gnu/8.2.0/../../../../i686-pc-linux-gnu/bin/ld: cannot find -lnsl
  74. /mnt/lfs/tools/bin/../lib/gcc/i686-pc-linux-gnu/8.2.0/../../../../i686-pc-linux-gnu/bin/ld: cannot find -lgdbm
  75. /mnt/lfs/tools/bin/../lib/gcc/i686-pc-linux-gnu/8.2.0/../../../../i686-pc-linux-gnu/bin/ld: cannot find -ldb
  76. collect2: error: ld returned 1 exit status
  77. I can't compile the test program.
  78. You have a BIG problem.  Shall I abort Configure [y]  
  79. Ok.  Stopping Configure.
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top