Eric Blake wrote:
> I am in the process of attempting to provide autogen as an official cygwin
> package.  In the process, I had to apply the following patches to even get
> ./configure to complete.  In particular, note that POSIX requires
> sigjmp_buf to be an array type, so your check for sigsetjmp was violating
> POSIX and creating an invalid C program
Hi Eric,

As Bernard pointed out, it is not invalid C, but instead an argument
mismatch.
It was used correctly in my program, but not the config test.  Fixed. 
Thank you.
(I removed the "address of"  operator.)  WRT ACLOCAL_AMFLAGS in the
Makefile.am file:  I do not read the autotools documentation any more.
I did it once after Gary Vaughan was done auto-tooling my project, but I
don't
catch up with new stuff until something whacks me the upside of my head.
(I still use "configure.in" instead of "configure.ac", for example.  I
keep meaning
to fix that....)  Anyway, thank you for pointing this out (whacking my
head) :).
> But after those patches, I am stuck.  The build process fails with:
>
> make[5]: Leaving directory `/home/eblake/autogen-5.8.7-1/build/agen5'
> top_builddir=.. top_srcdir=/home/eblake/autogen-5.8.7-1/src/autogen-5.8.7
> PATH=`cd ../columns >/dev/null && pwd`:$PATH ; export top_builddir
> top_srcdir PATH ; /home/eblake/autogen-5.8.7-1/build/agen5/autogen.exe
> -L/home/eblake/autogen-5.8.7-1/src/autogen-5.8.7/autoopts
> /home/eblake/autogen-5.8.7-1/src/autogen-5.8.7/getdefs/opts.def
> AutoGen aborting on signal 11 (Segmentation fault) in state DONE
> processing template
>
> where everything hangs.  I guess I'll have to try a debug build, and step
> through autogen to see why it is crashing, unless you have ideas of what I
> should check first.
Duplicate the above command line, but add these two options to autogen:
   --trace=everything --traceout=tracefile.txt

Once autogen reaches the "DONE" state, it does not do a whole lot.
viz., it calls "exit(3C)".  I suppose you could have it call _exit()
instead???  Don't know.  I've not seen a done state seg fault before.
You'll need to trace the code in "doneCheck" that gets called by
the exit code.  I'm not a CygWin  person, so let me know what needs
fixing.  Thanks! - Bruce

P.S. you might want to play with a pre-release.  It includes your two
     patches, but otherwise the deltas are in different code.  Thus,
     it also might not matter:

     http://autogen.sourceforge.net/data/autogen-5.8.8pre6.tar.gz

static void
inner_main( int argc, char** argv )
{
    initialize( argc, argv );

    procState = PROC_STATE_LOAD_DEFS;
    ag_scmStrings_init();
    readDefines();

    /*
     *  Activate the AutoGen specific Scheme functions.
     *  Then load, process and unload the main template
     */
    procState = PROC_STATE_LOAD_TPL;

    {
        tTemplate* pTF = loadTemplate( pzTemplFileName );

        procState = PROC_STATE_EMITTING;
        processTemplate( pTF );

        procState = PROC_STATE_CLEANUP;
        cleanup( pTF );
    }

    procState = PROC_STATE_DONE;
    exit( EXIT_SUCCESS );
}


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Autogen-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/autogen-users

Reply via email to