Re: Autotools build system

al davis <[email protected]>
Newsgroups gmane.comp.gnu.gnucap.devel
Message-ID <[email protected]>
On Sunday 21 June 2009, David Fang wrote:
> You are probably missing libtool's development headers.  If
> you're using a package manager, can you make sure that
> packages like 'libltdl-dev' are installed?

ok .. installed it ..

(an unchecked dependency??)

now ..

.......

al@floyd:/home/al/gnucap/gnucap-2009-06-11/gnucap-2009-06-11>./autogen.sh 
Running libtoolize...
libtoolize: putting auxiliary files in `.'.
libtoolize: `libltdl/config/compile' exists: use `--force' to overwrite
libtoolize: `libltdl/config/config.guess' exists: use `--force' to overwrite
libtoolize: `libltdl/config/config.sub' exists: use `--force' to overwrite
libtoolize: `libltdl/config/depcomp' exists: use `--force' to overwrite
libtoolize: `libltdl/config/install-sh' exists: use `--force' to overwrite
.......
.......
libtoolize: `libltdl/ltdl.h' exists: use `--force' to overwrite
libtoolize: `libltdl/slist.c' exists: use `--force' to overwrite
libtoolize: You should add the contents of the following files to `aclocal.m4':
libtoolize:   `libltdl/m4/argz.m4'
libtoolize:   `libltdl/m4/ltdl.m4'
libtoolize: or else add `AC_CONFIG_MACRO_DIR([libltdl/m4])' to configure.ac.
libtoolize: Remember to add `LT_CONFIG_LTDL_DIR([libltdl])' to `configure.ac'.
libtoolize: Consider using `AC_CONFIG_AUX_DIR([libltdl/config])' in configure.ac.
libtoolize: Consider adding `-I m4' to ACLOCAL_AMFLAGS in Makefile.am.
Running aclocal...
/usr/share/aclocal/gtk--.m4:10: warning: underquoted definition of AM_PATH_GTKMM
/usr/share/aclocal/gtk--.m4:10:   run info '(automake)Extending aclocal'
/usr/share/aclocal/gtk--.m4:10:   or see http://sources.redhat.com/automake/automake.html#Extending-aclocal
configure.ac:43: error: `libltdl' is already registered with AC_CONFIG_SUBDIRS.
../../lib/autoconf/status.m4:1093: AC_CONFIG_SUBDIRS is expanded from...
configure.ac:43: the top level
autom4te: /usr/bin/m4 failed with exit status: 1
aclocal: autom4te failed with exit status: 1


ok .. let's start over ...
al@floyd:/home/al/gnucap/gnucap-2009-06-11/gnucap-2009-06-11>make clean
make: *** No rule to make target `clean'.  Stop.

ok .. let's REALLY start over ...

al@floyd:/home/al/gnucap/gnucap-2009-06-11>rm -rf gnucap-2009-06-11
al@floyd:/home/al/gnucap/gnucap-2009-06-11>tar xvf gnucap-2009-06-11.tar.gz 
gnucap-2009-06-11/
gnucap-2009-06-11/src/
gnucap-2009-06-11/src/ap_skip.cc
........
........
al@floyd:/home/al/gnucap/gnucap-2009-06-11>cd gnucap-2009-06-11
al@floyd:/home/al/gnucap/gnucap-2009-06-11/gnucap-2009-06-11>patch -p1 <../gnucap-2009-06-11.patch 
patching file Makefile.am
patching file autogen.sh
patching file configure.ac
patching file modelgen/Makefile.am
patching file src/Makefile.am
patching file src/c_attach.cc
patching file src/main.cc
al@floyd:/home/al/gnucap/gnucap-2009-06-11/gnucap-2009-06-11>./autogen.sh 
Running aclocal...
/usr/share/aclocal/gtk--.m4:10: warning: underquoted definition of AM_PATH_GTKMM
/usr/share/aclocal/gtk--.m4:10:   run info '(automake)Extending aclocal'
/usr/share/aclocal/gtk--.m4:10:   or see http://sources.redhat.com/automake/automake.html#Extending-aclocal
configure.ac:43: error: `libltdl' is already registered with AC_CONFIG_SUBDIRS.
../../lib/autoconf/status.m4:1093: AC_CONFIG_SUBDIRS is expanded from...
configure.ac:43: the top level
autom4te: /usr/bin/m4 failed with exit status: 1
aclocal: autom4te failed with exit status: 1
al@floyd:/home/al/gnucap/gnucap-2009-06-11/gnucap-2009-06-11>

In case it might actually work ...

al@floyd:/home/al/gnucap/gnucap-2009-06-11/gnucap-2009-06-11>./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
......

(why does it check for gawk?????????)

......
** Configuration summary for gnucap 2009-06-11:

   prefix:                   /usr/local
   CPPFLAGS:                  -DNDEBUG
   CFLAGS:                   
   CXXFLAGS:                 -g -O2
   LDFLAGS:                   -rdynamic
   LIBS:                     -ldl -lreadline -ltermcap 


al@floyd:/home/al/gnucap/gnucap-2009-06-11/gnucap-2009-06-11>make



g++ -DHAVE_CONFIG_H -I. -I..   -DNDEBUG  -g -O2 -MT c__cmd.o -MD -MP -MF .deps/c__cmd.Tpo -c -o c__cmd.o c__cmd.cc
mv -f .deps/c__cmd.Tpo .deps/c__cmd.Po
g++ -DHAVE_CONFIG_H -I. -I..   -DNDEBUG  -g -O2 -MT c_attach.o -MD -MP -MF .deps/c_attach.Tpo -c -o c_attach.o c_attach.cc
c_attach.cc:26:29: error: ../libltdl/ltdl.h: No such file or directory
c_attach.cc: In member function 'virtual void<unnamed>::CMD_DLOPEN::do_it(CS&, CARD_LIST*)':
c_attach.cc:88: error: 'lt_dlhandle_struct' was not declared in this scope
c_attach.cc:88: error: expected primary-expression before 'const'
c_attach.cc:88: error: expected ';' before 'const'
c_attach.cc:89: error: 'mh' was not declared in this scope
make[2]: *** [c_attach.o] Error 1
make[2]: Leaving directory `/home/al/gnucap/gnucap-2009-06-11/gnucap-2009-06-11/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/al/gnucap/gnucap-2009-06-11/gnucap-2009-06-11'
make: *** [all] Error 2
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.