Undefined reference to 'crypt' when compiling
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
make-dfsg (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
When trying to compile a program on Ubuntu 12.04, which uses crypt() and linking with -lcrypt as specified in the CRYPT(3) man page, compilation fails with: Undefined reference to `crypt'
The program works flawless on many earlier Linux versions including multiple Fedora versions and Ubuntu 10.04.
Reporting this against libc6 because that's the package libcrypt belongs to in Ubuntu 10.04.
ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: libc6 2.15-0ubuntu10
ProcVersionSign
Uname: Linux 3.2.0-24-generic i686
NonfreeKernelMo
ApportVersion: 2.0.1-0ubuntu8
Architecture: i386
Date: Thu Jul 12 18:06:23 2012
EcryptfsInUse: Yes
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Release i386 (20110427.1)
ProcEnviron:
LANGUAGE=en_US:en
TERM=xterm
PATH=(custom, user)
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: eglibc
UpgradeStatus: Upgraded to precise on 2012-05-08 (64 days ago)
affects: | gcc-defaults (Ubuntu) → make (Ubuntu) |
affects: | make (Ubuntu) → make-dfsg (Ubuntu) |
Status changed to 'Confirmed' because the bug affects multiple users.