Skip to content

Cross-compilation for FreeBSD doesn't detect crypt support #22295

@rhelmot

Description

@rhelmot

On FreeBSD, libcrypt is included in the base system, so perl should always be able to find and link against its implementation of crypt. The configure script reports figuring out that it can link with -lcrypt and should be looking for the crypt symbol, and the crypt symbol is in fact in that library, but it can't figure out that it HAS_CRYPT. Possibly to do with the fact that there is no crypt.h header, but rather crypt is defined in unistd.h?

I am able to build perl with this feature successfully by applying the -Dd_crypt configure flag, but I feel like this should be able to be discovered automatically since it only involves compiling and linking.

Build logs for the bad build (from nix) can be found in perl.log.gz.

Metadata

Metadata

Assignees

No one assigned

    Labels

    distro-freebsdtype-buildRelates to building perl or a distribution we bundle.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions