help-autogen
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Help-autogen] save-opts crashes


From: uaca
Subject: [Help-autogen] save-opts crashes
Date: Tue, 28 Sep 2004 20:18:49 +0200
User-agent: Mutt/1.5.6+20040722i

Hello

I'm using the following global .def file (full version at the end)

        
AutoGen Definitions options;
prog-name     = trafgen;
prog-title    = "Traffic generator. Generates traffic sent with the ever_dag 
API.";
long-opts;
homerc         =  $HOME, ".";
environrc;
/* rcfile        = "trafgenrc"; */
/* test_main; */

config-header = trafgen_extra_headers.h;
        

copyright = {
    date  = "2004";
    owner = "Ulises Alonso";
    eaddr = 'address@hidden';
    type  = GPL;
};

detail;

[...]

And when I launch the program with --save-opts some pointer gets crazy:

address@hidden:~/trafgen$ ./trafgen --save-opts
trafgen WARNING:  cannot save options - error 2 (No such file or directory) 
creating address@hidden@/.

A trace shows what is trying to do:

stat64(".", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
open("./.trafgenrc", O_RDONLY)          = -1 ENOENT (No such file or directory)
stat64("/home/ulisses", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
open("/home/ulisses/.trafgenrc", O_RDONLY) = -1 ENOENT (No such file or 
directory)
stat64("/home/ulisses", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
open("/home/ulisses/.trafgenrc", O_RDONLY) = -1 ENOENT (No such file or 
directory)
stat64(".", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
open("./.trafgenrc", O_RDONLY)          = -1 ENOENT (No such file or directory)
stat64(".", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64("address@hidden@/.", 0xbffff8ac)       = -1 ENOENT (No such file or 
directory)
unlink("address@hidden@/.")                   = -1 ENOENT (No such file or 
directory)
open("address@hidden@/.", O_WRONLY|O_CREAT|O_TRUNC, 0666) = -1 ENOENT (No such 
file or directory)

Why this can happen if my program only executes the following sentences?

  int optct = optionProcess( &trafgenOptions, argc, argv );

  return 0;

is supossed autoops make it all for me? or I have to add some code?

I tried to change command line options, specifying rcfile, etc... without any
changes.

I'm using Debian's 3.0 autogen 5.3.5-1

What I'm missing? any help would be greatly appreciated

Thanks in advance

        Ulisses

                Debian GNU/Linux: a dream come true
-----------------------------------------------------------------------------
"Computers are useless. They can only give answers."            Pablo Picasso

"Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it." - Brian W. Kernighan






reply via email to

[Prev in Thread] Current Thread [Next in Thread]