🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: ahn.tech.linux
Article #1089

Problems with PAM example

#1089
From: m.baron
Date: Thu, 08 Feb 2001 09:44
69 lines
3072 bytes
--------------=_4D48009F5AEC0842CC08
Content-Description: filename="text1.txt"
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Hi

I want to make an application that uses PAM. I downloaded the three
turorials:
- application developers guide
- system administrators guide
- module writers guide

In application developers guide I found an example, but when I compile
the code
the following error appears:
/tmp/ccuFSiKK.o(.data+0x0): undefined reference to
`misc_conv(int, pam_message const **, pam_response **, void *)'
collect2: ld returned 1 exit status
This is the command I gave:
  mba@sirius:~/PAM > cc check_user.cpp -lpam -lpam_misc

Does anybody know how I can overcome this problem?

greetings

Mike Baron
--------------=_4D48009F5AEC0842CC08
Content-Description: filename="text1.html"
Content-Type: text/html
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
	<META HTTP-EQUIV=3D"CONTENT-TYPE" CONTENT=3D"text/html; charset=3Diso-8=
859-1">
	<TITLE>Problems with PAM example</TITLE>
	<META NAME=3D"GENERATOR" CONTENT=3D"StarOffice/5.2 (Linux)">
	<META NAME=3D"CREATED" CONTENT=3D"20010208;10441600">
	<META NAME=3D"CHANGEDBY" CONTENT=3D" ">
	<META NAME=3D"CHANGED" CONTENT=3D"20010208;10443500">
</HEAD>
<BODY>
<PRE>Hi

I want to make an application that uses PAM. I downloaded the three
turorials:
- application developers guide
- system administrators guide
- module writers guide

In application developers guide I found an example, but when I compile
the code
the following error appears:
/tmp/ccuFSiKK.o(.data+0x0): undefined reference to
`misc_conv(int, pam_message const **, pam_response **, void *)'
collect2: ld returned 1 exit status
This is the command I gave:
  mba@sirius:~/PAM &gt; cc check_user.cpp -lpam -lpam_misc

Does anybody know how I can overcome this problem?

greetings

Mike Baron</PRE>
</BODY>
</HTML>
--------------=_4D48009F5AEC0842CC08--
Technical Details
Message-ID: <20010208.9443600@supernova.trinite.intranet>
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!hermes.visi.com!news-out.visi.com!news.tele.dk!193.190.198.17!newsfeeds.belnet.be!news.belnet.be!transit.news.xs4all.nl!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11033e,bae8cf552e7d856c,start
X-Google-Attributes: gid11033e,public
X-Google-ArrivalTime: 2001-02-08 01:46:05 PST
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!hermes.visi.com!news-out.visi.com!news.tele.dk!193.190.198.17!newsfeeds.belnet.be!news.belnet.be!transit.news.xs4all.nl!not-for-mail
From: <m.baron@trinite.nl>
Newsgroups: ahn.tech.linux
Subject: Problems with PAM example
Date: Thu, 08 Feb 2001 09:44:36 GMT
Organization: XS4ALL Internet BV
Lines: 69
Message-ID: <20010208.9443600@supernova.trinite.intranet>
NNTP-Posting-Host: stat39-205.dial.xs4all.nl
Mime-Version: 1.0
Content-Type: multipart/alternative; boundary=
 "------------=_4D48009F5AEC0842CC08"
Content-Transfer-Encoding: 7bit
X-Trace: news1.xs4all.nl 981625456 24576 194.109.39.205 (8 Feb 2001 09:44:16 GMT)
X-Complaints-To: abuse@xs4all.nl
NNTP-Posting-Date: 8 Feb 2001 09:44:16 GMT
X-Priority: 3 (Normal)
X-Newsreader: Mozilla/3.0 (compatible; StarOffice/5.2;Linux)