[Bug 1023973] [NEW] Undefined reference to 'crypt' when compiling

Kasper Dupont 1023973 at bugs.launchpad.net
Thu Jul 12 16:23:23 UTC 2012


Public bug reported:

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
ProcVersionSignature: Ubuntu 3.2.0-24.39-generic 3.2.16
Uname: Linux 3.2.0-24-generic i686
NonfreeKernelModules: nvidia
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: eglibc (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: apport-bug i386 precise

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to eglibc in Ubuntu.
https://bugs.launchpad.net/bugs/1023973

Title:
  Undefined reference to 'crypt' when compiling

Status in “eglibc” package in Ubuntu:
  New

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
  ProcVersionSignature: Ubuntu 3.2.0-24.39-generic 3.2.16
  Uname: Linux 3.2.0-24-generic i686
  NonfreeKernelModules: nvidia
  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)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/eglibc/+bug/1023973/+subscriptions




More information about the foundations-bugs mailing list