Error on make: LINE_MAX undeclared

Jacques Dirac jacquesdirac at gmail.com
Wed Jul 27 13:15:41 UTC 2011


Hi,

When running make (after ./configure), I get the error:

libtool: compile:  i586-linux-gcc -DHAVE_CONFIG_H -I.
-I../../../modules/pam_localuser -I../.. -I../../../libpam/include
-I../../../libpamc/include -g -O2 -MT pam_localuser.lo -MD -MP -MF
.deps/pam_localuser.Tpo -c
../../../modules/pam_localuser/pam_localuser.c  -fPIC -DPIC -o
.libs/pam_localuser.o
../../../modules/pam_localuser/pam_localuser.c: In function
'pam_sm_authenticate':
../../../modules/pam_localuser/pam_localuser.c:66: error: 'LINE_MAX'
undeclared (first use in this function)
../../../modules/pam_localuser/pam_localuser.c:66: error: (Each
undeclared identifier is reported only once
../../../modules/pam_localuser/pam_localuser.c:66: error: for each
function it appears in.)
m

I'm using:
- pam v1.1.4
- gcc v4.4.4
- glibc v2.11.2
- Linux v2.6.35.12

Seems that this has something to do with limits.h (glibc) and POSIX,
but I don't understand it :-(.

What can I do to fix?

Hope someone can help me!




More information about the Pam-list mailing list