sleuthkit / scalpel

Scalpel is an open source data carving tool. It is not being actively maintained.
627 stars 99 forks source link

bootstrap fails on Ubuntu 14.04 #17

Open digininja opened 9 years ago

digininja commented 9 years ago

I just tried to build Scalpel on Ubuntu 14.04 and got the following error:

 ./bootstrap
libtoolize: putting auxiliary files in `.'.
libtoolize: copying file `./ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `m4'.
libtoolize: copying file `m4/libtool.m4'
libtoolize: copying file `m4/ltoptions.m4'
libtoolize: copying file `m4/ltsugar.m4'
libtoolize: copying file `m4/ltversion.m4'
libtoolize: copying file `m4/lt~obsolete.m4'
configure.ac:7: warning: AM_INIT_AUTOMAKE: two- and three-arguments forms are deprecated.  For more info, see:
configure.ac:7: http://www.gnu.org/software/automake/manual/automake.html#Modernize-AM_005fINIT_005fAUTOMAKE-invocation
Makefile.am:12: warning: source file 'src/scalpel_exec.cpp' is in a subdirectory,
Makefile.am:12: but option 'subdir-objects' is disabled
automake: warning: possible forward-incompatibility.
automake: At least a source file is in a subdirectory, but the 'subdir-objects'
automake: automake option hasn't been enabled.  For now, the corresponding output
automake: object file(s) will be placed in the top-level directory.  However,
automake: this behaviour will change in future Automake versions: they will
automake: unconditionally cause object files to be placed in the same subdirectory
automake: of the corresponding sources.
automake: You are advised to start using 'subdir-objects' option throughout your
automake: project, to avoid future incompatibilities.

I added this line to Makefile.am

AUTOMAKE_OPTIONS = subdir-objects

And then got

$ ./bootstrap
libtoolize: putting auxiliary files in `.'.
libtoolize: copying file `./ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `m4'.
libtoolize: copying file `m4/libtool.m4'
libtoolize: copying file `m4/ltoptions.m4'
libtoolize: copying file `m4/ltsugar.m4'
libtoolize: copying file `m4/ltversion.m4'
libtoolize: copying file `m4/lt~obsolete.m4'
configure.ac:7: warning: AM_INIT_AUTOMAKE: two- and three-arguments forms are deprecated.  For more info, see:
configure.ac:7: http://www.gnu.org/software/automake/manual/automake.html#Modernize-AM_005fINIT_005fAUTOMAKE-invocation

At this point I think I'll hand it over to people who understand the bootstrap process as I've never worked with it before.

The copy of Scaplel from the repo works fine so this is only affecting building from source.

esaunders commented 9 years ago

In the output above I see warnings related to deprecation and forward incompatibility but I don't see why these would prevent you from subsequently running configure and make. Do you get a 'configure' script after running bootstrap?

digininja commented 9 years ago

You're right, I looked at that and assumed it was a failure, I just tried the rest of the build process and it worked fine.

Can I cover the embarrassment and change the ticket to a warning that it may not build in the future?

On 5 May 2015 at 21:14, esaunders notifications@github.com wrote:

In the output above I see warnings related to deprecation and forward incompatibility but I don't see why these would prevent you from subsequently running configure and make. Do you get a 'configure' script after running bootstrap?

— Reply to this email directly or view it on GitHub https://github.com/sleuthkit/scalpel/issues/17#issuecomment-99208269.

esaunders commented 9 years ago

Sure :-)