Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • CMake CMake
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 3,810
    • Issues 3,810
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 9
    • Merge requests 9
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • External wiki
    • External wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar

An update will be applied May 24th, between 12PM and 1PM EDT (UTC -400). The site may be slow during that time.

  • CMake
  • CMakeCMake
  • Issues
  • #22809

Closed
Open
Created Oct 26, 2021 by G Onufer@gco

libarchive: build fails on Solaris 11.4

The static function b64_encode conflicts with a similar function in <string.h> causing cmake to fail compilation.

/usr/include/string.h:

extern ssize_t b64_encode(char *_RESTRICT_KYWD outbuf, size_t outbufsz,
    const void *_RESTRICT_KYWD inbuf, size_t inbufsz, const char *alpha,
    uint64_t flags);

Also, cmake fails to link on Solaris 11.4 due to undefined symbol makedev:

[ 92%] Linking CXX executable ../bin/ctest
Undefined                       first referenced
 symbol                             in file
makedev                             ../Utilities/cmlibarchive/libarchive/libcmlibarchive.a(archive_pack_dev.c.o)
ld: fatal: symbol referencing errors
collect2: error: ld returned 1 exit status
*** Error code 1

It doesn't appear to include <sys/mkdev.h> to get the correct definitions.

(cmake 3.14.0)

Edited Oct 27, 2021 by Brad King
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking