I used dos2unix to remove the "^M^" from the lines, than it worked.
Regards,
Rudi Gabler
Rich Jamieson wrote:
> Hi,
> Im trying to compile Microsoft's UNIX Kerberos samples and Im getting
> the errors shown below.
> Anyone got any ideas ??
>
> I obtained the code from:
>
>http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnw2k/html/kerberossamp.asp
>
> and downloaded the file: 5324.exe which I gunzipped, then untared on
> my Solaris system.
>
> And Im using:
> "NETSCAPE DIRECTORY SDK 4.1 FOR C"
> "MIT kerberos 5-1.2.2"
> "Solaris 2.6"
> "gcc version 2.95.1 19990816 (release)"
>
> Any help much appreciated.
>
> PS - Im particularly interested in the "netjoin" and "kpasswd" samples
> - anyone know if there are any newer/better versions of these
> available ?
>
> regards,
>
> Richard Jamieson.
>
> ############
> $ make
> Making all in krb5passwd
> make[1]: Entering directory
> `/work/RJ/MIT/src/W2000_Example_Kadmin_code/5324.new/krb5passwd'
> gcc -c -DHAVE_CONFIG_H -I. -I.. -I../locator
> -I/work/RJ/MIT/src/krb5-1.2.2.464/src/include -I/wor
> k/RJ/MIT/src/krb5-1.2.2.464/src/include/krb5
> -I/work/RJ/MIT/src/krb5-1.2.2.464/src/lib/krb5/asn.1
> -I/work/RJ/MIT/src/krb5-1.2.2.464/src/lib/krb5/krb
> -I/opt/MITkrb5/include -O -g kpasswd_encode.
> c
> kpasswd_encode.c: In function `encode_krb5_setpw':
> kpasswd_encode.c:96: parse error before `*'
> kpasswd_encode.c:96: declaration for parameter `krb5_setpw' but no
> such parameter
> kpasswd_encode.c:101: invalid type argument of `->'
> kpasswd_encode.c:102: invalid type argument of `->'
> kpasswd_encode.c:103: invalid type argument of `->'
> kpasswd_encode.c:105: invalid type argument of `->'
> kpasswd_encode.c:105: invalid type argument of `->'
> make[1]: *** [kpasswd_encode.o] Error 1
> make[1]: Leaving directory
> `/work/RJ/MIT/src/W2000_Example_Kadmin_code/5324.new/krb5passwd'
> Making all in locator
> make[1]: Entering directory
> `/work/RJ/MIT/src/W2000_Example_Kadmin_code/5324.new/locator'
> make[1]: Nothing to be done for `all'.
> make[1]: Leaving directory
> `/work/RJ/MIT/src/W2000_Example_Kadmin_code/5324.new/locator'
> Making all in AD
> make[1]: Entering directory
> `/work/RJ/MIT/src/W2000_Example_Kadmin_code/5324.new/AD'
> make[1]: Nothing to be done for `all'.
> make[1]: Leaving directory
> `/work/RJ/MIT/src/W2000_Example_Kadmin_code/5324.new/AD'
> Making all in kpasswd
> make[1]: Entering directory
> `/work/RJ/MIT/src/W2000_Example_Kadmin_code/5324.new/kpasswd'
> make[1]: *** No rule to make target `../krb5passwd/libkrb5passwd.a',
> needed by `kpasswd'. Stop.
> make[1]: Leaving directory
> `/work/RJ/MIT/src/W2000_Example_Kadmin_code/5324.new/kpasswd'
> Making all in ksetpw
> make[1]: Entering directory
> `/work/RJ/MIT/src/W2000_Example_Kadmin_code/5324.new/ksetpw'
> make[1]: *** No rule to make target `../krb5passwd/libkrb5passwd.a',
> needed by `ksetpw'. Stop.
> make[1]: Leaving directory
> `/work/RJ/MIT/src/W2000_Example_Kadmin_code/5324.new/ksetpw'
> Making all in netjoin
> make[1]: Entering directory
> `/work/RJ/MIT/src/W2000_Example_Kadmin_code/5324.new/netjoin'
> gcc -c -DHAVE_CONFIG_H -I/work/RJ/MIT/src/LDAP/include
> -I/opt/MITkrb5/include -I.. -I../locator -
> I../AD -I../krb5passwd -O -g netjoin.c
> netjoin.c: In function `main':
> netjoin.c:133: `ldap_debug' undeclared (first use in this function)
> netjoin.c:133: (Each undeclared identifier is reported only once
> netjoin.c:133: for each function it appears in.)
> make[1]: *** [netjoin.o] Error 1
> make[1]: Leaving directory
> `/work/RJ/MIT/src/W2000_Example_Kadmin_code/5324.new/netjoin'
> Making all in adduser
> make[1]: Entering directory
> `/work/RJ/MIT/src/W2000_Example_Kadmin_code/5324.new/adduser'
> gcc -c -DHAVE_CONFIG_H -I/work/RJ/MIT/src/LDAP/include
> -I/opt/MITkrb5/include -I.. -I../locator -
> I../AD -I../krb5passwd -O -g adduser.c
> adduser.c: In function `main':
> adduser.c:162: `ldap_debug' undeclared (first use in this function)
> adduser.c:162: (Each undeclared identifier is reported only once
> adduser.c:162: for each function it appears in.)
> make[1]: *** [adduser.o] Error 1
> make[1]: Leaving directory
> `/work/RJ/MIT/src/W2000_Example_Kadmin_code/5324.new/adduser'
> Making all in pwdump
> make[1]: Entering directory
> `/work/RJ/MIT/src/W2000_Example_Kadmin_code/5324.new/pwdump'
> gcc -c -DHAVE_CONFIG_H -DDEF_SHELL=\"/bin/sh\"
> -I/work/RJ/MIT/src/LDAP/include -I/opt/MITkrb5/inc
> lude -I.. -I../locator -I../AD -I../krb5passwd -O -g pwdump.c
> pwdump.c: In function `main':
> pwdump.c:143: `ldap_debug' undeclared (first use in this function)
> pwdump.c:143: (Each undeclared identifier is reported only once
> pwdump.c:143: for each function it appears in.)
> make[1]: *** [pwdump.o] Error 1
> make[1]: Leaving directory
> `/work/RJ/MIT/src/W2000_Example_Kadmin_code/5324.new/pwdump'
> Making all in utils
> make[1]: Entering directory
> `/work/RJ/MIT/src/W2000_Example_Kadmin_code/5324.new/utils'
> make[1]: Nothing to be done for `all'.
> make[1]: Leaving directory
> `/work/RJ/MIT/src/W2000_Example_Kadmin_code/5324.new/utils'
> $
> ###################