LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 11-25-2003, 02:36 PM   #1
vrillusions
Member
 
Registered: Feb 2003
Location: Ohio, USA
Distribution: Ubuntu, Debian, CentOS
Posts: 99

Rep: Reputation: 25
compiling vlock for 9.1


I'm trying to get vlock to work. I use that laptop at work alot... at an ISP... around a bunch of people that know linux. So needless to say just using the lock in KDE isn't going to stop them from going to the shell connections. In mandrake, it had vlock already compiled and I just had to install the package and I was good to go. Here, I think the shadow passwords is what's messing me up. I found a precompiled version, but for an old distro at http://homepages.paradise.net.nz/~ca.../packages.html I tried to run that and it said it couldn't do it for mine, probably because it was trying to read the regular password and not the shadow file. So I tried to compile it on my own. Found the distro at http://linux.maruhn.com/sec/vlock.html (went for one of the .tar.gz files) and then tried to compile it and it couldn't find the crypt() function, again because I am using shadow files instead. I also had to disable PAM options in it. What is PAM used for? Has anyone ever gotten it compiled and can just link to it or say how you did it? thanks.
 
Old 11-25-2003, 04:20 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
From my understanding PAM still isn't part
of Slackware, PAM is the "pluggable authentication
module" that would allow you to for instance authen-
ticate against a user-database in PostgreSQL, or
OpenLDAP ...

I can't say anything about 9.1, but it compiles
fine in 8.1, with no modifications (and I use the
shadow-password suite, too) ...


Cheers,
Tink
 
Old 11-28-2003, 04:42 PM   #3
vrillusions
Member
 
Registered: Feb 2003
Location: Ohio, USA
Distribution: Ubuntu, Debian, CentOS
Posts: 99

Original Poster
Rep: Reputation: 25
ok, here's the entire session from me trying to compile it (sorry for it being a little long). also, that time I edited the make file, I removed the PAM references. I can post the makefile here too if that would help.

Code:
root@oriana /tmp$ wget --passive-ftp ftp://ftp.nnov.net/pub/software/linu...ock-1.3.tar.gz
--17:33:17--  ftp://ftp.nnov.net/pub/software/linu...ock-1.3.tar.gz
           => `vlock-1.3.tar.gz'
Resolving ftp.nnov.net... done.
Connecting to ftp.nnov.net[81.18.128.209]:21... connected.
Logging in as anonymous ... Logged in!
==> SYST ... done.    ==> PWD ... done.
==> TYPE I ... done.  ==> CWD /pub/software/linux/console ... done.
==> PASV ... done.    ==> RETR vlock-1.3.tar.gz ... done.
Length: 17,188 (unauthoritative)

100%[====================================>] 17,188         9.66K/s    ETA 00:00

17:33:22 (9.66 KB/s) - `vlock-1.3.tar.gz' saved [17188]

root@oriana /tmp$ ls
kde-todd  ksocket-todd  mcop-todd  vlock-1.3.tar.gz  xmms_todd.0
root@oriana /tmp$ tar xvzf vlock-1.3.tar.gz
vlock-1.3/
vlock-1.3/Makefile
vlock-1.3/COPYING
vlock-1.3/signals.c
vlock-1.3/README
vlock-1.3/help.c
vlock-1.3/input.c
vlock-1.3/terminal.c
vlock-1.3/version.h
vlock-1.3/vlock.1
vlock-1.3/vlock.c
vlock-1.3/vlock.h
vlock-1.3/vlock.lsm
vlock-1.3/vlock.pamd
vlock-1.3/vlock.spec
root@oriana /tmp$ make
make: *** No targets specified and no makefile found.  Stop.
root@oriana /tmp$ cd vlock-1.3
root@oriana /tmp/vlock-1.3$ make
gcc -O2 -DUSE_PAM   -c -o vlock.o vlock.c
gcc -O2 -DUSE_PAM   -c -o signals.o signals.c
gcc -O2 -DUSE_PAM   -c -o help.o help.c
gcc -O2 -DUSE_PAM   -c -o terminal.o terminal.c
gcc -O2 -DUSE_PAM   -c -o input.o input.c
input.c:63:31: security/pam_appl.h: No such file or directory
input.c:64:31: security/pam_misc.h: No such file or directory
input.c:66: variable `PAM_conversation' has initializer but incomplete type
input.c:67: `misc_conv' undeclared here (not in a function)
input.c:67: warning: excess elements in struct initializer
input.c:67: warning: (near initialization for `PAM_conversation')
input.c:69: warning: excess elements in struct initializer
input.c:69: warning: (near initialization for `PAM_conversation')
input.c: In function `correct_password':
input.c:90: `pam_handle_t' undeclared (first use in this function)
input.c:90: (Each undeclared identifier is reported only once
input.c:90: for each function it appears in.)
input.c:90: `pamh' undeclared (first use in this function)
input.c:102: `PAM_SUCCESS' undeclared (first use in this function)
input.c:104: `PAM_USER_PROMPT' undeclared (first use in this function)
input.c:117: `PAM_USER' undeclared (first use in this function)
/usr/include/bits/sigset.h: At top level:
input.c:66: storage size of `PAM_conversation' isn't known
make: *** [input.o] Error 1
root@oriana /tmp/vlock-1.3$ vi Makefile
root@oriana /tmp/vlock-1.3$ make
gcc -O2   -c -o input.o input.c
gcc   vlock.o signals.o help.o terminal.o input.o   -o vlock
input.o(.text+0x28): In function `correct_password':
: undefined reference to `crypt'
input.o(.text+0x7a): In function `correct_password':
: undefined reference to `crypt'
collect2: ld returned 1 exit status
make: *** [vlock] Error 1
root@oriana /tmp/vlock-1.3$
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Various Compiling Errors (GCC compiling Openal, GUIlib, xmms-wma) gregorya Linux - Software 2 08-27-2004 05:03 AM
Compiling in ACPI support on Compaq 2135CA (system crashes while compiling) Dag Linux - Laptop and Netbook 20 07-30-2004 07:56 PM
getting vlock for slackware vrillusions Linux - Software 2 05-24-2004 03:03 PM
vlock substitute? Narooze Linux - Software 4 01-05-2004 04:27 PM
[script] a better vlock vrillusions Linux - Software 0 09-09-2003 03:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 10:51 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration