-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 На Wed, 28 Jun 2006 10:30:04 -0400 "Frank Y.F. Luo" <luoy@xxxxxxxxxx> записано: > I need to port pam_mkhome module to solaris, so first I have to make > sure it compiles under solaris, > > so I did nothing but unzip, configure, make, then errors here: > > ... > make[2]: Entering directory > `/export/home/l/lu/luoy/project/sun-pam/Linux-PAM-0.99.4.0/libpam' > if /bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H > -I. -I. -I.. -DDEFAULT_MODULE_PATH=\"/lib/security/\" > -DLIBPAM_COMPILE -I./include -DPAM_VERSION=\"0.99.4.0\" -g -O2 -W > -Wall -Wbad-function-cast -Wcast-align -Wcast-qual > -Wmissing-declarations -Wmissing-prototypes -Wpointer-arith > -Wreturn-type -Wstrict-prototypes -Wwrite-strings -Winline -Wshadow > -MT pam_modutil_cleanup.lo -MD -MP -MF > ".deps/pam_modutil_cleanup.Tpo" -c -o pam_modutil_cleanup.lo > pam_modutil_cleanup.c; \ then mv -f ".deps/pam_modutil_cleanup.Tpo" > ".deps/pam_modutil_cleanup.Plo"; else rm -f > ".deps/pam_modutil_cleanup.Tpo"; exit 1; fi > gcc -DHAVE_CONFIG_H -I. -I. -I.. > -DDEFAULT_MODULE_PATH=\"/lib/security/\" -DLIBPAM_COMPILE -I./include > -DPAM_VERSION=\"0.99.4.0\" -g -O2 -W -Wall -Wbad-function-cast > -Wcast-align -Wcast-qual -Wmissing-declarations -Wmissing-prototypes > -Wpointer-arith -Wreturn-type -Wstrict-prototypes -Wwrite-strings > -Winline -Wshadow -MT pam_modutil_cleanup.lo -MD -MP -MF > .deps/pam_modutil_cleanup.Tpo -c pam_modutil_cleanup.c -fPIC -DPIC > -o .libs/pam_modutil_cleanup.o > In file included from pam_modutil_private.h:14, > from pam_modutil_cleanup.c:7: > ./include/security/pam_modutil.h:31: error: parse error before "gid_t" > ./include/security/pam_modutil.h:31: warning: function declaration > isn't a prototype > ./include/security/pam_modutil.h:44: error: parse error before "gid_t" > ./include/security/pam_modutil.h:44: warning: function declaration > isn't a prototype > ./include/security/pam_modutil.h:54: error: parse error before "gid_t" > ./include/security/pam_modutil.h:54: warning: function declaration > isn't a prototype > make[2]: *** [pam_modutil_cleanup.lo] Error 1 > make[2]: Leaving directory > `/export/home/l/lu/luoy/project/sun-pam/Linux-PAM-0.99.4.0/libpam' > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory > `/export/home/l/lu/luoy/project/sun-pam/Linux-PAM-0.99.4.0' > make: *** [all] Error 2 > > Any idea? Actually any comment about porting pam_mkhome to solaris > will be welcome. > Try to grep /usr/include for gid_t and include this file in pam_modutil_private.h before pam_modutil.h. I suppose it might be /sys/types.h or smth. about. - -- Stanislav Sedov MBSD labs, Inc. <ssedov@xxxxxxxxxxx> Россия, Москва http://mbsd.msk.ru - -------------------------------------------------------------------- If the facts don't fit the theory, change the facts. -- A. Einstein - -------------------------------------------------------------------- PGP fingerprint: F21E D6CC 5626 9609 6CE2 A385 2BF5 5993 EB26 9581 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (FreeBSD) iD8DBQFEotyIK/VZk+smlYERAg+zAJ4wYeSArYhtg35AtWIO0uKTePaM9gCff4+W PZvd3tO0q5zRdbNacHs3kV0= =qiJd -----END PGP SIGNATURE----- _______________________________________________ Pam-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/pam-list