[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Building from CVS / autoconf, automake, and rk_* Macros



On Thu, 20 Oct 2005 14:07:45 -0400
Michael B Allen <mba2000@ioplex.com> wrote:

> I've been reading about auto* tools but unfortunately I'm still largely
> ignorant of such things. Below is dialog of trying and failing to build

I managed to get a lot farther so I thought I'd send an update in case
someone felt complelled to answer my now obsolete previous query. But
I do have a complier error regarding DES_random_key someone has insight
into that.

Mike

For posterity here is the current procedure:

$ export CVSROOT=/var/cvs
$ cvs co -d mechglue -r mechglue-branch heimdal
$ cd mechglue
$ vi cf/Makefile.am.common
  and add 'INCLUDES = ' to suppress error messages:
  lib/gssapi/Makefile.am:5: INCLUDES must be set with `=' before using `+='
  lib/mechglue/Makefile.am:5: INCLUDES must be set with `=' before using `+='
  lib/spnego/Makefile.am:5: INCLUDES must be set with `=' before using `+='
$ ln -s /usr/share/libtool/ltmain.sh ltmain.sh
$ aclocal -I cf
$ autoconf
$ autoheader
$ automake --add-missing
configure.in: installing `./install-sh'
configure.in: installing `./missing'
appl/dceutils/Makefile.am: installing `./compile'
configure.in: installing `./ylwrap'
configure.in:21: installing `./config.guess'
configure.in:21: installing `./config.sub
$ ./configure --enable-shared
<snip lots of output> 
config.status: creating appl/dceutils/Makefile
config.status: creating doc/Makefile
config.status: creating tools/Makefile
config.status: creating include/config.h
creating include/version.h
$ make
<snip lots of compiler output> 
/libroken.so -lcrypt /usr/lib/libgdbm.so -lresolv -Wl,--rpath -Wl,/usr/heimdal/lib
creating kdc
gcc  -DHAVE_CONFIG_H -I. -I. -I../include  -I../include -I../lib/roken -I../lib/roken   -I./../lib/krb5 -D_FILE_OFFSET_BITS=64 -Wall -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast -Wmissing-declarations -Wnested-externs -g -O2 -c kstash.c
kstash.c:46: error: 'DES_random_key' redeclared as different kind of symbol
../include/des.h:224: error: previous declaration of 'DES_random_key' was here
kstash.c:46: error: 'DES_random_key' redeclared as different kind of symbol
../include/des.h:224: error: previous declaration of 'DES_random_key' was here
make[1]: *** [kstash.o] Error 1 
make[1]: Leaving directory `/tmp/cvs/mechglue/kdc'
make: *** [all-recursive] Error 1