vcpkg icon indicating copy to clipboard operation
vcpkg copied to clipboard

[libxcrypt] Build error on x64-linux

Open ajithandro opened this issue 1 year ago • 3 comments

Package: libxcrypt:[email protected]#1

Host Environment

  • Host: x64-linux
  • Compiler: GNU 11.4.0
  • vcpkg-tool version: 2024-07-10-d2dfc73769081bdd9b782d08d27794780b7a99b9 vcpkg-scripts version: 1318ab14a 2024-07-16 (7 days ago)

To Reproduce

vcpkg install --allow-unsupported

Failure logs

libxcrypt currently requires the following libraries from the system package manager:
    autoconf automake libtool pkg-config
These can be installed on Debian systems via sudo apt install autoconf automake libtool pkg-config
-- Downloading https://github.com/besser82/libxcrypt/archive/v4.4.36.tar.gz -> besser82-libxcrypt-v4.4.36.tar.gz...
-- Extracting source /usr/src/qfield/build-arm64-android/_deps/vcpkg-src/downloads/besser82-libxcrypt-v4.4.36.tar.gz
-- Using source at /usr/src/qfield/build-arm64-android/_deps/vcpkg-src/buildtrees/libxcrypt/src/v4.4.36-645fb55159.clean
-- Getting CMake variables for x64-linux-rel
-- Generating configure for x64-linux
CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:127 (message):
    Command failed: /usr/bin/autoreconf -vfi
    Working Directory: /usr/src/qfield/build-arm64-android/_deps/vcpkg-src/buildtrees/libxcrypt/src/v4.4.36-645fb55159.clean/
    Error code: 1
    See logs for more information:
      /usr/src/qfield/build-arm64-android/_deps/vcpkg-src/buildtrees/libxcrypt/autoconf-x64-linux-out.log
      /usr/src/qfield/build-arm64-android/_deps/vcpkg-src/buildtrees/libxcrypt/autoconf-x64-linux-err.log

Call Stack (most recent call first):
  scripts/cmake/vcpkg_configure_make.cmake:731 (vcpkg_execute_required_process)
  ports/libxcrypt/portfile.cmake:25 (vcpkg_configure_make)
  scripts/ports.cmake:192 (include)



/usr/src/qfield/build-arm64-android/_deps/vcpkg-src/buildtrees/libxcrypt/autoconf-x64-linux-out.log
libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, 'build-aux/m4-autogen'.
libtoolize: copying file 'build-aux/m4-autogen/ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'build-aux/m4'.
libtoolize: copying file 'build-aux/m4/libtool.m4'
libtoolize: copying file 'build-aux/m4/ltoptions.m4'
libtoolize: copying file 'build-aux/m4/ltsugar.m4'
libtoolize: copying file 'build-aux/m4/ltversion.m4'
libtoolize: copying file 'build-aux/m4/lt~obsolete.m4'
/usr/src/qfield/build-arm64-android/_deps/vcpkg-src/buildtrees/libxcrypt/autoconf-x64-linux-err.log
autoreconf: export WARNINGS=
autoreconf: Entering directory '.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal --force -I build-aux/m4
autoreconf: configure.ac: tracing
autoreconf: running: libtoolize --copy --force
autoreconf: configure.ac: not using Intltool
autoreconf: configure.ac: not using Gtkdoc
autoreconf: running: aclocal --force -I build-aux/m4
autoreconf: running: /usr/bin/autoconf --force
configure.ac:60: error: possibly undefined macro: LT_SYS_SYMBOL_USCORE
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.
autoreconf: error: /usr/bin/autoconf failed with exit status: 1

Additional context

vcpkg.json
{
  "vcpkg-configuration": {
    "overlay-ports": [
      "vcpkg/ports"
    ],
    "overlay-triplets": [
      "vcpkg/triplets"
    ]
  },
  "name": "qfield",
  "version-string": "dev",
  "description": "A simplified and touch optimized frontend for QGIS.",
  "homepage": "https://github.com/opengisch/qfield",
  "dependencies": [
    "catch2",
    {
      "name": "ffmpeg",
      "default-features": false,
      "features": [
        "avcodec",
        "avdevice",
        "avformat",
        {
          "name": "openh264",
          "platform": "linux | windows"
        },
        "swresample",
        "swscale"
      ],
      "platform": "linux | android | windows"
    },
    {
      "name": "gdal",
      "default-features": false
    },
    "nu-book-zxing-cpp",
    {
      "name": "qca",
      "host": true,
      "default-features": false
    },
    {
      "name": "qca",
      "default-features": false,
      "features": [
        "ossl"
      ]
    },
    "qgis",
    {
      "name": "qgis",
      "host": true,
      "default-features": false
    },
    {
      "name": "qtbase",
      "default-features": false
    },
    {
      "name": "qtbase",
      "default-features": false,
      "features": [
        "gles3"
      ],
      "platform": "!windows & !osx & !android"
    },
    {
      "name": "qtcharts",
      "features": [
        "qml"
      ]
    },
    "qtconnectivity",
    "qtdeclarative",
    "qtimageformats",
    "qtlocation",
    {
      "name": "qtmultimedia",
      "features": [
        {
          "name": "ffmpeg",
          "platform": "linux | android | windows"
        },
        "qml"
      ]
    },
    {
      "name": "qtsensors",
      "features": [
        "qml"
      ]
    },
    {
      "name": "qtserialport",
      "platform": "!ios"
    },
    {
      "name": "qttools",
      "host": true,
      "default-features": false
    },
    "qtwebview",
    {
      "name": "sentry-cocoa",
      "platform": "ios | osx"
    },
    {
      "name": "sentry-native",
      "platform": "!android & !ios & !osx"
    },
    "spix-qt6"
  ]
}

ajithandro avatar Jul 24 '24 06:07 ajithandro

Please make sure you have installed libtool in the linux machine. You could install it by below command:

In Debian/Ubuntu:
sudo apt-get install libtool

Cheney-W avatar Jul 24 '24 09:07 Cheney-W

I recently had this issue and it was solved by installing libtool as @Cheney-W mentioned and also libltdl-dev.

caiopiccirillo avatar Jul 29 '24 13:07 caiopiccirillo

This is an automated message. Per our repo policy, stale issues get closed if there has been no activity in the past 28 days. The issue will be automatically closed in 14 days. If you wish to keep this issue open, please add a new comment.

github-actions[bot] avatar Aug 27 '24 01:08 github-actions[bot]

This might help

sudo apt install libltdl-dev

OrkunTokdemir avatar Sep 12 '24 08:09 OrkunTokdemir

Please make sure you have installed libtool in the linux machine. You could install it by below command:

In Debian/Ubuntu:
sudo apt-get install libtool

I think this solved, and the issue can be closed.

dg0yt avatar Aug 09 '25 15:08 dg0yt