Hello,

I downloaded and built the RPM from source at <ftp://ftp.gnu.org/gnu/autogen/rel5.13/>. All the 'make check' tests passed and it built me an RPM which I then installed on my openSUSE 12.1 x86_64 box.

I then attempted to run the new AutoOpts on the attached test-opt.def:

> autogen --version
autogen (GNU AutoGen) 5.13
> autoopts-config --version
 36:0:11
> autogen test-opt.def
which: no CLexe in (...:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/X11R6/bin:/usr/games)
/bin/sh: line 143: -v: command not found
which: no in in (...:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/X11R6/bin:/usr/games)
/bin/sh: line 143: -v: command not found
which: no CLexe in (...:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/X11R6/bin:/usr/games)
/bin/sh: line 143: -v: command not found
which: no in in (...:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/X11R6/bin:/usr/games)
/bin/sh: line 143: -v: command not found
In file included from test.h:32:0,
                 from test.c:33:
/usr/src/packages/BUILD/autogen-5.13/autoopts/autoopts/options.h:354:5: error: unknown type name 'uintptr_t' /usr/src/packages/BUILD/autogen-5.13/autoopts/autoopts/options.h:355:5: error: unknown type name 'uintptr_t' /usr/src/packages/BUILD/autogen-5.13/autoopts/autoopts/options.h:1022:1: error: unknown type name 'uintptr_t'
Killing AutoGen 24345:  cannot compile
AutoGen aborting on signal 2 (Interrupt) in state EMITTING
processing template /usr/share/autogen/usage.tlib
            on line 182
       for function EXPR (12)
Aborted

Hmmm.... I did get test-opt.c and test-opt.h files, but test-opt.c looks truncated.
even:

> CC='gcc' CFLAGS='-std=gnu9x' autogen test-opt.def

aborts in the manner described above.

I then tried:

> autogen -T getopt.tpl test-opt.def
which: no CLexe in (...:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/X11R6/bin:/usr/games)
/bin/sh: line 143: -v: command not found
which: no in in (...:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/X11R6/bin:/usr/games)
/bin/sh: line 143: -v: command not found

The getopt-test.[ch] files generated look otherwise OK.

Leo
AutoGen Definitions options;
prog-name     = test;
prog-title    = "Some title";
package = "somepackage";
settable;
help-value = 'h';
short-usage;
no-libopts;

main = { main-type = main; };

copyright = {
    date  = "2011";
    owner = "Some Owner";
    eaddr ="someem...@somewhere.com";
    type = note;
    text = <<- EODoc
Some statement of ownership or freedom. 
EODoc;
};

explain = <<- EOExplain
This program does something.
EOExplain;

detail = <<- EODetail
This program does something.
EODetail;

export = '#include <string.h>';

flag = {
    name      = d-option;
    descrip   = "The option.";
    value     = d;        
    min = 1;
    arg-type  = string;   
    doc = <<- EODoc
The option to do something.
EODoc;
    flag_code   = <<-  EOCode
    /* The spiffy code */
EOCode;
};

/* End of test-opt.def */
------------------------------------------------------------------------------
Cloud Services Checklist: Pricing and Packaging Optimization
This white paper is intended to serve as a reference, checklist and point of 
discussion for anyone considering optimizing the pricing and packaging model 
of a cloud services business. Read Now!
http://www.accelacomm.com/jaw/sfnl/114/51491232/
_______________________________________________
Autogen-users mailing list
Autogen-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/autogen-users

Reply via email to