Hi,
I would like to ask you the following.
I created 2 new files with the authentication-object and I am going to integrate these to NATFW NSLP. The problem is that I can not re-create the file Makefile.in because the file configure.ac is missing.
I updated Makefile.am with my files and when I run automake I got
root@workstation5:~/nsis0.5.0-dev/nslp/natfw# automake automake: `configure.ac' or `configure.in' is required
Are you using some script to create Makefile.in?
Regards,
Sergio Lembo
Hi Sergio,
I would like to ask you the following.
I created 2 new files with the authentication-object and I am going to integrate these to NATFW NSLP. The problem is that I can not re-create the file Makefile.in because the file configure.ac is missing.
I updated Makefile.am with my files and when I run automake I got
root@workstation5:~/nsis0.5.0-dev/nslp/natfw# automake automake: `configure.ac' or `configure.in' is required
Are you using some script to create Makefile.in?
You have to run "automake" in the base directory (~/nsis0.5.0-dev/ in your case). We use a script that runs this sequence of commands: # autoconf # aclocal # autoheader # automake
That should do the trick. This will generate the Makefile.in out of the Makefile.am and the configure script (out of the configure.in). The configure script will then generate the real Makefile out of the Makefile.in. (So make your to run "configure" again after running the autoconf/automake sequence)
If you only add one or two entries to Makefile.am, normally (at least if used with the CVS version) you do not need to invoke automake manually. A simple "make" will do the trick, but I am not sure if the released version behaves in the same way.
I hope this helps and I would appreciate any feedback whether this worked or not.
Christian Dickmann
Hi Christian,
** Attempt 1) automake and then make
I made a simple test. Just deleted Makefile.in in
~/nsis0.5.0-dev/nslp/natfw
(no changes in code and no changes in Makefile.am)
then I ran the sequence
root@workstation5:~/nsis-0.5.0-dev# autoconf root@workstation5:~/nsis-0.5.0-dev# aclocal root@workstation5:~/nsis-0.5.0-dev# autoheader root@workstation5:~/nsis-0.5.0-dev# automake Makefile.am: required file `./INSTALL' not found Makefile.am: required file `./NEWS' not found Makefile.am: required file `./AUTHORS' not found Makefile.am: required file `./COPYING' not found root@workstation5:~/nsis-0.5.0-dev#
root@workstation5:~/nsis-0.5.0-dev# ./configure
and then
root@workstation5:~/nsis-0.5.0-dev# make
Now everything was Ok.
( Although in one attemp I got the following output
make[3]: *** No rule to make target `am--refresh'. Stop. make[2]: *** [Makefile] Error 2 )
Then I added my files in Makefile.am and repeated again the above -> everything Ok.
I do not have so much experience with automake, I am using version 1.9.6 and although everything is working I do not know if it could bring some side effects. Check the attempt below.
** Attempt 2) just make
As above, deleted Makefile.in and ran make (no automake). I got:
root@workstation5:~/nsis-0.5.0-dev# make
..... .....
make[3]: Entering directory `/root/nsis-0.5.0-dev/nslp/natfw' cd ../.. && \ /bin/sh /root/nsis-0.5.0-dev/missing --run automake-1.7 --gnu nslp/natfw/Makefile /root/nsis-0.5.0-dev/missing: line 46: automake-1.7: command not found WARNING: `automake-1.7' is missing on your system. You should only need it if you modified `Makefile.am', `acinclude.m4' or `configure.in'. You might want to install the `Automake' and `Perl' packages. Grab them from any GNU archive site. cd ../.. && /bin/sh ./config.status nslp/natfw/Makefile depfiles config.status: creating nslp/natfw/Makefile config.status: executing depfiles commands make[3]: Leaving directory `/root/nsis-0.5.0-dev/nslp/natfw' make[3]: Entering directory `/root/nsis-0.5.0-dev/nslp/natfw' make[3]: *** No rule to make target `all'. Stop. make[3]: Leaving directory `/root/nsis-0.5.0-dev/nslp/natfw' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/root/nsis-0.5.0-dev/nslp' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/root/nsis-0.5.0-dev' make: *** [all] Error 2 root@workstation5:~/nsis-0.5.0-dev
Could you check the version of your automake. Our version is:
root@workstation5:~/nsis5061127/nslp/natfw# automake --version automake (GNU automake) 1.9.6
Regards,
Sergio
Hi,
** Attempt 1) automake and then make
I made a simple test. Just deleted Makefile.in in
~/nsis0.5.0-dev/nslp/natfw
(no changes in code and no changes in Makefile.am)
then I ran the sequence
root@workstation5:~/nsis-0.5.0-dev# autoconf root@workstation5:~/nsis-0.5.0-dev# aclocal root@workstation5:~/nsis-0.5.0-dev# autoheader root@workstation5:~/nsis-0.5.0-dev# automake Makefile.am: required file `./INSTALL' not found Makefile.am: required file `./NEWS' not found Makefile.am: required file `./AUTHORS' not found Makefile.am: required file `./COPYING' not found root@workstation5:~/nsis-0.5.0-dev#
root@workstation5:~/nsis-0.5.0-dev# ./configure
and then
root@workstation5:~/nsis-0.5.0-dev# make
Now everything was Ok.
( Although in one attemp I got the following output
make[3]: *** No rule to make target `am--refresh'. Stop. make[2]: *** [Makefile] Error 2 )
Then I added my files in Makefile.am and repeated again the above -> everything Ok.
I do not have so much experience with automake, I am using version 1.9.6 and although everything is working I do not know if it could bring some side effects. Check the attempt below.
** Attempt 2) just make
As above, deleted Makefile.in and ran make (no automake). I got:
root@workstation5:~/nsis-0.5.0-dev# make
..... .....
make[3]: Entering directory `/root/nsis-0.5.0-dev/nslp/natfw' cd ../.. && \ /bin/sh /root/nsis-0.5.0-dev/missing --run automake-1.7 --gnu nslp/natfw/Makefile /root/nsis-0.5.0-dev/missing: line 46: automake-1.7: command not found WARNING: `automake-1.7' is missing on your system. You should only need it if you modified `Makefile.am', `acinclude.m4' or `configure.in'. You might want to install the `Automake' and `Perl' packages. Grab them from any GNU archive site. cd ../.. && /bin/sh ./config.status nslp/natfw/Makefile depfiles config.status: creating nslp/natfw/Makefile config.status: executing depfiles commands make[3]: Leaving directory `/root/nsis-0.5.0-dev/nslp/natfw' make[3]: Entering directory `/root/nsis-0.5.0-dev/nslp/natfw' make[3]: *** No rule to make target `all'. Stop. make[3]: Leaving directory `/root/nsis-0.5.0-dev/nslp/natfw' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/root/nsis-0.5.0-dev/nslp' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/root/nsis-0.5.0-dev' make: *** [all] Error 2 root@workstation5:~/nsis-0.5.0-dev
Could you check the version of your automake. Our version is:
root@workstation5:~/nsis5061127/nslp/natfw# automake --version automake (GNU automake) 1.9.6
Yes, we use version 1.7. So I guess you need to rerun automake (attempt 1) if you use a different automake version. After that (or if you use 1.7 in the first place) attempt 2 should be fine. Please note, that we use 1.7 for a reason. We encountered problems with newer versions and so we keep using 1.7. If you use debian then you can choose which version of automake you want to install (apt-get install automake1.7).
BTW: You do not need to delete the Makefile.in.
Christian
Hi,
Thank you for your answer.
About
BTW: You do not need to delete the Makefile.in.
I deleted Makefile.in in order to verify that I was able to create it again.
A I succeeded, I modified then Makefile.am with new entries and included these to the code-project.
Now I am using in directory nslp/natfw a Makefile.in created with automake 1.9.6.
Regards,
Sergio
nsis_imp@informatik.uni-goettingen.de