This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Problems compiling Linux-PAM-0.66 (possible hassle with egcs or glibc)
- To: egcs-bugs at egcs dot cygnus dot com, bug-glibc at gnu dot org
- Subject: Problems compiling Linux-PAM-0.66 (possible hassle with egcs or glibc)
- From: CaT <cat at zip dot com dot au>
- Date: Thu, 13 May 1999 17:58:16 +1000 (EST)
I just sent the letter below (well that's the relevant bit ;) to the
pam mailinglist. After a brief exchange it was said that either glibc
or egcs might be the problem here. The include file involved is
string.h and I could not find what was wrong with it, _pam.macros.h
or pam_access.c that would cause this.
As such I was wondering if either of you guys could help out here.
I use glibc2.1 with egcs 1.1.2 and linux 2.2.7ac4. The pam source
code was acquired from the 0.66 tarball that's on any of the linux
mirrors.
Any and all help would be greatly appreciated. I'd like to get this
sucker to compile. :/
CaT wrote the following:
>
> *sob*
>
> Well I've tried and tried and I can't get the sucker to compile. As such
> I've got some questions:
>
> 1. Is the following a result of something I am doing or a problem with pam?
>
> 1349.root@kinder:/felix/src/Linux-PAM>> make
> make[1]: Entering directory `/felix/src/Linux-PAM/modules'
> modules for linux are:
> pam_access pam_deny pam_filter pam_group pam_limits pam_mail pam_permit pam_radius pam_rootok pam_shells pam_tally pam_unix pam_wheel
> pam_cracklib pam_env pam_ftp pam_lastlog pam_listfile pam_nologin pam_pwdb pam_rhosts pam_securetty pam_stress pam_time pam_warn
> :--------
>
> make[2]: Entering directory `/felix/src/Linux-PAM/modules/pam_access'
> mkdir -p ./dynamic
> gcc -O3 -fomit-frame-pointer -march=pentiumpro -pipe -g -DLINUX_PAM -ansi -D_POSIX_SOURCE -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wtraditional -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -pedantic -I/felix/src/Linux-PAM/include -fPIC -Dlinux -Di386 -DCONFILE=\"/etc/security/access.conf\" -DPAM_DYNAMIC -c pam_access.c -o dynamic/pam_access.o
> In file included from pam_access.c:46:
> /felix/src/Linux-PAM/include/security/_pam_macros.h:12: parse error before `__extension__'
> /felix/src/Linux-PAM/include/security/_pam_macros.h:12: `__len' undeclared here (not in a function)
> /felix/src/Linux-PAM/include/security/_pam_macros.h:12: initializer element is not constant
> /felix/src/Linux-PAM/include/security/_pam_macros.h:12: parse error before `if'
> /felix/src/Linux-PAM/include/security/_pam_macros.h:12: warning: type defaults to `int' in declaration of `__retval'
> /felix/src/Linux-PAM/include/security/_pam_macros.h:12: conflicting types for `__retval'
> /felix/src/Linux-PAM/include/security/_pam_macros.h:12: previous declaration of `__retval'
> /felix/src/Linux-PAM/include/security/_pam_macros.h:12: ANSI C forbids data definition with no type or storage class
> /felix/src/Linux-PAM/include/security/_pam_macros.h:12: parse error before `}'
> make[2]: *** [dynamic/pam_access.o] Error 1
> make[2]: Leaving directory `/felix/src/Linux-PAM/modules/pam_access'
> make[1]: *** [all] Error 1
> make[1]: Leaving directory `/felix/src/Linux-PAM/modules'
>
> --- 8< ---
>
> my default.defs file is:
>
> 1351.root@kinder:/felix/src/Linux-PAM>> more default.defs
> # this file indicates the compiler and the various hardware/OS dependent
> # flags for installation. It also defines the various destinations of
> # installed files on the system.
> #
> # This file is the default version. Please look in .../defs/ for your
> # preferred OS/vendor.
>
> OS=linux
> ARCH=i386 # should be changed for alpha
> CC=gcc
> INSTALL=install
> MKDIR=mkdir -p
> CFLAGS=-O3 -fomit-frame-pointer -march=pentiumpro -pipe -g
> ULIBS=#-lefence
> LD=ld
> LD_D=gcc -shared -Xlinker -x
> LD_L=$(LD) -x -shared
> USESONAME=yes
> SOSWITCH=-soname
> NEEDSONAME=no
> LDCONFIG=/sbin/ldconfig
> AR=ar -cr
> RANLIB=ranlib
> FAKEROOT=
> PREFIX=/sw/Linux-PAM-0.66
> SUPLEMENTED=$(PREFIX)/sbin
> LIBDIR=$(PREFIX)/lib
> SECUREDIR=$(LIBDIR)/security
> INCLUDED=/usr/include/security
> CONFIGED=/etc
> SCONFIGED=/etc/security
--
CaT (cat@zip.net.au) URL: http://www.zip.com.au/dev/null
For a bad joke read:
http://www2.hunterlink.net.au/~ddhrg/censorship_legislation.html