Compile Issue, Ubuntu 12.04.1, undefined reference to crypt in authen.c

1,343 views
Skip to first unread message

ni...@g.timico.net

unread,
Sep 13, 2013, 4:39:41 AM9/13/13
to event-driv...@googlegroups.com
Hi All

I am having problems compiling the latest version of tac_plus on ubuntu 12.04.1.

The procedure i follow is:
# tar -jxvf DEVEL.201307280818.tar.bz2
# cd PROJECTS
# make

The error i get is:
cc -o tac_plus acct.o authen.o author.o buffer.o config.o dump.o main.o mavis.o packet.o report.o utils.o context.o '-Wl,-rpath,$ORIGIN/../lib64' "-L/root/PROJECTS/build/linux-3.2.0-53-generic-x86_64/mavis" "-Wl,-rpath,/usr/local/lib64" -lmavis    
authen.o: In function `compare_pwdat':
authen.c:(.text+0xac8): undefined reference to `crypt'
collect2: ld returned 1 exit status
make[2]: *** [tac_plus] Error 1
make[2]: Leaving directory `/root/PROJECTS/build/linux-3.2.0-53-generic-x86_64/tac_plus'
make[1]: *** [build] Error 2
make[1]: Leaving directory `/root/PROJECTS/tac_plus'
make: *** [dirs] Error 1


.. /usr/local/lib64 doesn't exist?
.. any help would be appreciated

Thanks

Nick


Marc Huber

unread,
Sep 13, 2013, 11:23:51 AM9/13/13
to event-driv...@googlegroups.com
Hi Nick,

On 13.09.13 10:39, ni...@g.timico.net wrote:
> authen.c:(.text+0xac8): undefined reference to `crypt'
> collect2: ld returned 1 exit status
the build process should auto-detect the need for -lcrypt. Is libc6-dev
actually installed? If so, please

find /usr/lib -name libcrypt.\*

and reconfigure

./configure --libarchdir=<directory where libcrypt.so is installed> ...

Cheers,

Marc

Reply all
Reply to author
Forward
0 new messages