How best to troubleshoot a source package configure script?

Time4Tea

I've been trying to compile the GnuTLS package from source, as part of a BLFS (Linux From Scratch) system. Here is the LFS page for it.

I have installed all of the required and recommended packages that are listed on that page; however, when I ran ./configure at the top of the source tree for GnuTLS, according to the script output, it didn't seem to find several of those packages, for example valgrind, libunistring, libtasn1.

So, I am just wondering what is the best way to troubleshoot this, if a configure script doesn't seem to work correctly? I had a look at config.log, but that didn't seem very helpful (at least in the case of valgrind). I also tried to have a look through the configure script itself, but it's a 40,000+ line monster.

Ok, I think I've been a bit silly and misunderstood the configure script. The configure summary said this:

configure: summary of build options:

  version:              3.5.14 shared 44:6:14
  Host/Target system:   x86_64-pc-linux-gnu
  Build system:         x86_64-pc-linux-gnu
  Install prefix:       /usr
  Compiler:             gcc
  Valgrind:             no 
  CFlags:               -g -O2
  Library types:        Shared=yes, Static=no
  Local libopts:        yes
  Local libtasn1:       no
  Local unistring:      no
  Use nettle-mini:      no
  Documentation:        yes (manpages: yes)

Which I took to mean that it hadn't found those packages (I interpreted 'Local' as meaning 'on my computer'). However, searching in more detail through the output, I found these:

checking for LIBTASN1... yes
checking whether to use the included minitasn1... no

checking for libunistring... yes
checking how to link with libunistring... /usr/lib/libunistring.so

It seems that it did actually find those packages, and 'Local' in the summary must have been referring to GnuTLS' own built-in version of those libraries. It was a bit confusing, but it makes sense now. For valgrind, I see this:

checking for valgrind... valgrind
checking whether self tests are run under valgrind... no

So, again it seems to have found it, although it doesn't seem to want to use it for the self tests, for some reason.

Anyway, I'll go ahead and build it and see if it tests ok.

Stephen Kitt

config.log should contain the exact reason why configure failed, but it can be hard to find it. To do so, you should start from the end of config.log; there you’ll see a dump of the full configure state at the point where it stopped, which is daunting, but if you skip past that, you should find the error which broke configure. Look for Running config.status, and scroll up...

In the case of an Autoconf-generated setup, there’s not much point in reading configure itself; it’s much more useful to look at its source code, configure.ac (or configure.in if it’s an old piece of software), along with any .m4 file which is pulled in.

この記事はインターネットから収集されたものであり、転載の際にはソースを示してください。

侵害の場合は、連絡してください[email protected]

編集
0

コメントを追加

0

関連記事

分類Dev

how to troubleshoot libertine x apps?

分類Dev

How to troubleshoot Quickly packaging failures

分類Dev

How to solve dpkg-source source problem when building a package?

分類Dev

How to directly download a source package installation package tarball from a URL?

分類Dev

How to build a specific package from a Debian source package?

分類Dev

How to apt-get install package from different package source

分類Dev

How to use a NuGet package within a PowerShell script?

分類Dev

R: How to best import infix operators like %>% into my package?

分類Dev

Gradle: How can I configure repositories in buildscript block of external script

分類Dev

How can I configure and allow pipes in my bash script?

分類Dev

How to configure Python script to change body for Splunk email alert?

分類Dev

How to troubleshoot photo import failure with Shotwell?

分類Dev

How to troubleshoot when phpseclib key login fails?

分類Dev

CUPS: How to troubleshoot "No printers found" condition?

分類Dev

How to use Beautifulsoup to get the latest version of a source package

分類Dev

CFLAGS in configure script

分類Dev

How to create a deb package for a python3 script?

分類Dev

How can I add a timestamp into a script in package.json?

分類Dev

python how to get a running script's file name in import package

分類Dev

How can I deploy a PS1 script with a nuget package

分類Dev

How to consume `.env.local` in `package.json` script

分類Dev

How to script SOAP based web service using SUDS python package

分類Dev

How to run a script only during first install of a package and not during upgrades?

分類Dev

How to force remove a package if dpkg removal script fails?

分類Dev

Best Package for Sparse Matrix Multiplication

分類Dev

Entity Framework Core: `SqlNullValueException: Data is Null.` How to troubleshoot?

分類Dev

How to troubleshoot systemd's "contradicts existing jobs" error message

分類Dev

Package is not found in the following primary source

分類Dev

How can I pip install pyx package from externally hosted source?

Related 関連記事

  1. 1

    how to troubleshoot libertine x apps?

  2. 2

    How to troubleshoot Quickly packaging failures

  3. 3

    How to solve dpkg-source source problem when building a package?

  4. 4

    How to directly download a source package installation package tarball from a URL?

  5. 5

    How to build a specific package from a Debian source package?

  6. 6

    How to apt-get install package from different package source

  7. 7

    How to use a NuGet package within a PowerShell script?

  8. 8

    R: How to best import infix operators like %>% into my package?

  9. 9

    Gradle: How can I configure repositories in buildscript block of external script

  10. 10

    How can I configure and allow pipes in my bash script?

  11. 11

    How to configure Python script to change body for Splunk email alert?

  12. 12

    How to troubleshoot photo import failure with Shotwell?

  13. 13

    How to troubleshoot when phpseclib key login fails?

  14. 14

    CUPS: How to troubleshoot "No printers found" condition?

  15. 15

    How to use Beautifulsoup to get the latest version of a source package

  16. 16

    CFLAGS in configure script

  17. 17

    How to create a deb package for a python3 script?

  18. 18

    How can I add a timestamp into a script in package.json?

  19. 19

    python how to get a running script's file name in import package

  20. 20

    How can I deploy a PS1 script with a nuget package

  21. 21

    How to consume `.env.local` in `package.json` script

  22. 22

    How to script SOAP based web service using SUDS python package

  23. 23

    How to run a script only during first install of a package and not during upgrades?

  24. 24

    How to force remove a package if dpkg removal script fails?

  25. 25

    Best Package for Sparse Matrix Multiplication

  26. 26

    Entity Framework Core: `SqlNullValueException: Data is Null.` How to troubleshoot?

  27. 27

    How to troubleshoot systemd's "contradicts existing jobs" error message

  28. 28

    Package is not found in the following primary source

  29. 29

    How can I pip install pyx package from externally hosted source?

ホットタグ

アーカイブ