undefined `crypt'

From: O'NEEL Bruce (bruce.oneel@obs.unige.ch)
Date: Tue Dec 07 1999 - 08:57:05 MET


Hi,
  Probably adding a -lcrypt to your link line.

g++ -g -O2  -o ../bin/rootd ROOTD_daemon.o ROOTD_error.o ROOTD_net.o
ROOTD_rootd.o  -lm -ldl -rdynamic -lcrypt

shoudl do it.

cheers

bruce



M.Matsyuk writes:
 > Dear rooters,
 > I'm trying to make ROOT 2.23 from source for Debian 2.1r3.
 > I have got:
 > 
 > g++ -g -O2  -o ../bin/rootd ROOTD_daemon.o ROOTD_error.o ROOTD_net.o
 > ROOTD_rootd.o  -lm -ldl -rdynamic
 > ROOTD_rootd.o: In function `RootdPass(char const *)':
 > /usr/cern/root/src/ROOTD_rootd.cxx:720: undefined reference to `crypt'
 > collect2: ld returned 1 exit status
 > 
 > What to do?
 > Kernal version is 2.0.36. My g++ version is (g++ -v):
 > 
 > Reading specs from /usr/lib/gcc-lib/i486-linux/egcs-2.91.60/specs
 > gcc version egcs-2.91.60 Debian 2.1 (egcs-1.1.1 release)
 > 
 > Mikhail
 > 

-- 
Reality is 80m polygons - Alvy Ray Smith
Bruce O'Neel                       phone:  +41 22 950 91 22 (direct)
INTEGRAL Science Data Centre               +41 22 950 91 00 (switchb.)
Chemin d'Ecogia 16                 fax:    +41 22 950 91 33
CH-1290 VERSOIX                    e-mail: Bruce.Oneel@obs.unige.ch
Switzerland                        WWW:    http://isdc.unige.ch/



This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:43:44 MET